Exam 5: Control Statements: Part 1

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following is not a simple type in C#

(Multiple Choice)
4.9/5
(36)

When you know how many times a loop will execute in advance,a ________loop should be used.

(Multiple Choice)
4.8/5
(34)

Sequential execution is when statements execute one after the other in the order in which they appear in the program.

(True/False)
4.7/5
(46)

C and C++ are _______ typed languages.

(Multiple Choice)
4.9/5
(22)

What is the size in bits of an int

(Multiple Choice)
4.8/5
(34)

A while statement allows you to specify that an action should repeat while:

(Multiple Choice)
4.9/5
(30)

Which of the following segments will call the method readData four times

(Multiple Choice)
4.9/5
(26)

Counter-controlled repetition is often called definite repetition because the number of repetitions is known before the loop begins executing.

(True/False)
4.8/5
(31)

Which statement is false

(Multiple Choice)
4.9/5
(30)

The if statement is a repetition statement.

(True/False)
4.8/5
(30)

if is a _________ statement.

(Multiple Choice)
4.7/5
(30)

A transfer of control occurs when:

(Multiple Choice)
4.8/5
(30)

Which of the following is a double-selection control statement

(Multiple Choice)
4.9/5
(36)

Local variables must be ________.

(Multiple Choice)
4.8/5
(31)

Which of the following operators associates from left to right

(Multiple Choice)
4.8/5
(37)

Using top-down,stepwise refinement results in pseudocode that can be straightforwardly evolved into a C# program.

(True/False)
4.9/5
(31)

It is essential to have an understanding of a problem before writing a program to solve it.

(True/False)
4.7/5
(35)

C#'s type is capable of holding the value true or false.

(Multiple Choice)
4.8/5
(34)

Repetition in which the number of iterations is unknown before the loop begins executing is called ________.

(Multiple Choice)
5.0/5
(31)

What is output by the following C# code segment Int temp = 200; If (temp > 90) { Console.WriteLine("This porridge is too hot."); } If (temp < 70) { Console.WriteLine("This porridge is too cold."); } If (temp == 80) { Console.WriteLine("This porridge is just right!"); }

(Multiple Choice)
4.8/5
(29)
Showing 21 - 40 of 94
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)