adplus-dvertising
frame-decoration

Question

Which of the following while clause will stop the loop when the value in the age variable is less than the number 0?

a.

while age < 0

b.

while (age < 0)

c.

while age >= 0;

d.

while (age >= 0)

Answer: (d).while (age >= 0)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following while clause will stop the loop when the value in the age variable is less than the number 0?

Similar Questions

Discover Related MCQs

Q. The most efficient data type for a variable that stores the number 4.6e20 is the _____ data type

Q. Which of the following is a C++ object?

Q. Which of the following can be used to declare the main function?

Q. The highest level of cohesion is

Q. The two statements that can be used to change the flow of control are

Q. If p and q are assigned the values 2 and 3 respectively then the statement p = q++

Q. Which of the following is the insertion operator?

Q. If you want only one memory location to be reserved for a class variable, no matter how many objects are instantiated, you should declare the variable as

Q. Which of the following are valid characters constants?

Q. To create and execute a C++ program, you need to have access to

Q. Many programmers separate a class into two files: _____

Q. Files whose names end in .h are called _____ files

Q. Assume that a program contains a programmer-defined void function. When C++ encounters the function's closing brace (}), C++ returns to the statement _____

Q. A _____ is a single item of information about a person, place, or thing

Q. Which (if any) of the following is NOT a programmer-defined type

Q. A file pointer always contains the address of the file

Q. In a simple 'if' statement with no 'else'. What happens if the condition following the 'if is false?

Q. Which of the following is not a programming control structure?

Q. The bitwise OR operator is a

Q. The continue statement should be written only