Exam 4: Control Structures I (Selection)
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Input/Output50 Questions
Exam 4: Control Structures I (Selection)50 Questions
Exam 5: Control Structures II (Repetition)50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the string Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records (structs)50 Questions
Exam 10: Classes and Data Abstraction50 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Linked Lists50 Questions
Exam 17: Stacks and Queues50 Questions
Exam 18: Searching and Sorting Algorithms50 Questions
Exam 19: Binary Trees50 Questions
Exam 20: Graphs50 Questions
Exam 21: Standard Template Library (STL)50 Questions
Select questions type
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)
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)
grade = "pass";
else
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)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)