Exam 5: Control Structures Ii Repetition
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures Ii Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes44 Questions
Exam 13: Operator Overloading and Templates41 Questions
Exam 14: Exception Handling43 Questions
Exam 15: Recursion43 Questions
Exam 16: Linked Lists40 Questions
Exam 17: Stacks and Queue43 Questions
Exam 18: Searching and Sorting Algorithms40 Questions
Exam 19: Binary Trees43 Questions
Exam 20: Graph Algorithms48 Questions
Exam 21: Standard Template Library41 Questions
Select questions type
The ____________________ statement is typically used for two purposes:• To exit early from a loop.
• To skip the remainder of a switch structure.
(Short Answer)
4.8/5
(36)
Which of the following statements generates a random number between 0 and 50?
(Multiple Choice)
4.9/5
(37)
What is the value of x after the following statements execute? 

(Multiple Choice)
4.8/5
(37)
The function eof is a member of the data type ____________________.
(Short Answer)
4.9/5
(46)
Suppose sum, num, and j are int variables, and the input is 4 7 12 9 -1.What is the output of the following code? 

(Multiple Choice)
4.7/5
(31)
In the case of the sentinel-controlled while loop, the first item is read before the while loop is entered.
(True/False)
4.9/5
(39)
Assume all variables are properly declared.The output of the following C++ code is 2 3 4 5.


(True/False)
4.9/5
(40)
Suppose sum and num are int variables, and the input is 18 25 61 6 -1.What is the output of the following code? 

(Multiple Choice)
4.7/5
(32)
The statement in the body of a while loop acts as a decision maker.
(True/False)
4.7/5
(37)
A semicolon at the end of the for statement (just before the body of the loop) is a(n) ____________________ error.
(Short Answer)
4.9/5
(33)
A(n) ____-controlled while loop uses a bool variable to control the loop.
(Multiple Choice)
4.9/5
(32)
In a sentinel-controlled while loop, the body of the loop continues to execute until the EOF symbol is read.
(True/False)
4.9/5
(43)
Suppose j, sum, and num are int variables, and the input is 26 34 61 4 -1.What is the output of the code? 

(Multiple Choice)
4.9/5
(32)
The ____ statement can be used to eliminate the use of certain (flag) variables.
(Multiple Choice)
4.9/5
(38)
What is the initial statement in the following for loop? (Assume that all variables are properly declared.) 

(Multiple Choice)
4.8/5
(41)
When a continue statement is executed in a ____, the update statement always executes.
(Multiple Choice)
4.8/5
(37)
Which of the following loops is guaranteed to execute at least once?
(Multiple Choice)
4.9/5
(29)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)