Test: Flow Control In C# Trivia Questions Quiz

5 Questions | Total Attempts: 124

Settings
Please wait...
Test: Flow Control In C# Trivia Questions Quiz

The trivia questions below are designed to test your knowledge when it comes to the flow of C#, and as promised, there will be many more of them. Do you think that what you have covered so far is enough to keep you prepared for the finals? Take this brief quiz and find out if you just might need to get a tutor.


Questions and Answers
  • 1. 
    Programmers use their knowledge about a problem to choose how to solve it. If a programmer chose a  for loop, they probably knew what information about the problem being solved?
    • A. 

      How long each step of the solution would run

    • B. 

      How many times a specific step of the solution should be repeated

    • C. 

      How many different kinds of steps would be in the solution

    • D. 

      What user the problem should be solved for

  • 2. 
    Which of the following iteration constructs is most specialized for use with collections?
    • A. 

      The for() loops

    • B. 

      The foreach() loop

    • C. 

      The do{}while() loop

    • D. 

      The while() loop

  • 3. 
    Which of the following iteration constructs evaluate their conditions after executing the statements they control?
    • A. 

      Do(){}

    • B. 

      While(){}

  • 4. 
    Given the for loop with the conditional “(int i 0; i <10; ... )”, what is the third sub-statement that would allow the loop to execute ten times?
    • A. 

      ++i

    • B. 

      I++

    • C. 

      I--

  • 5. 
    What is the software called that translates code into something meaningful the computer can understand?
    • A. 

      Converter

    • B. 

      Transliterator

    • C. 

      Translator

    • D. 

      Compiler