C++ Programming
STATEMENTS MCQs
Total Questions : 10
None.
There are four types of loop. They are while, do while, nested, for loop.
for loop with a semicolon is called as body less for loop. It is used only for incrementing the
variable values. So in this program the value is incremented and printed as 10.
Output:
$ g++ stat2.cpp
$ a.out
10
There is not a condition in the for loop, So it will loop continuously.
Because the break statement need to be presented inside a loop or a switch statement.
None.
The switch statement is used to choose the certain code to execute, So it is also called as
selective structure.
Inthis program, We are printing the numbers in reverse order but by using break statement we
stopped printing on 3.
Output:
$ g++ stat.cpp
$ a.out
543
In the conditional operator,it will predicate the output using the given condition.
There are five sequence of statements. They are Preprocessor directives,Comments,Declarations,
Function Declarations,Executable statements.
Recent Questions
Q. The Most Important Consideration In Power Amplifier Is _____....
Q. Choose The Odd One Out.
Q. AirAsia Group Of Which Country Has Changed The Name Of Its L....
Q. Direction Of Twist 'Z' Is
Q. .................. Is Your Problem?
Q. Nyquist Plot Provides Information About Absolute Stability A....
Q. International Women's Day Is Being Celebrated On Which Date?....
Q. A) D
Q. Two Students Measure A Particular Length Using The Same Inst....
Q. Light Or Heat Is Required For Which Step In The Halogenatio....
Q. In India, The Temperate Forest Research Centre Is In Which C....
Q. Electrophoresis Of Histones And Myoglobin Under Non-denaturi....
Q. The Units Of Polarization Of Dielectric Are
Q. Choose The Alternative Which Is Closely Resembles The Water-....
Q. The Impulse Turbine Rotor Efficiency Will Have A Maximum Val....
Q. How Much A Month Are You Paid ?
Q. Who Has Been Awarded The Top EU Human Rights Prize- The Sakh....
Q. Identify The Programmable Interval Timer From The Following
Q. In Nature, Magnesium Oxide (MgO) Is
Q. A Person Bought Two Articles A And B For Rs.5,000. He Sold A....