Exam 4: Control Structures I (Selection)

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

The ____________________ of relational and logical operators is said to be from left to right.

(Short Answer)
4.8/5
(39)

Putting a semicolon after the parentheses following the expression in an if statement (that is,before the statement)is a(n)____________________ error.

(Short Answer)
4.9/5
(43)

If the expression in an assert statement evaluates to true,the program terminates.

(True/False)
4.9/5
(34)

Which of the following is a relational operator?

(Multiple Choice)
4.7/5
(29)

What is the value of x after the following statements execute? int x; X = (5 <= 3 && 'A' < 'F')? 3 : 4

(Multiple Choice)
4.9/5
(38)

Suppose that x is an int variable.Which of the following expressions always evaluates to true?

(Multiple Choice)
4.9/5
(36)

When one control statement is located within another,it is said to be ____.

(Multiple Choice)
4.8/5
(42)

Consider the following statements. int score; string grade; if (score >= 65) \quad grade = "pass"; else \quad grade = "fail"; If score is equal to 75,the value of grade is "____________________".

(Short Answer)
4.8/5
(32)

Which of the following will cause a logical error if you are attempting to compare x to 5?

(Multiple Choice)
4.9/5
(33)

A compound statement functions as if it was a single statement.

(True/False)
5.0/5
(45)
Showing 41 - 50 of 50
close modal

Filters

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