CPP

CPP

Statements has 6 Questions
The if..else statement can be replaced by which operator?

Bitwise operator
Conditional operator
Multiplicative operator
none of the mentioned
The switch statement is also called as?

choosing structure
selective structure
certain structure
none of the mentioned
The destination statement for the goto label is identified by what label?

$
@
*
:
What is the output of this program?
  1.     #include 
  2.     using namespace std;
  3.     int main ()
  4.     {
  5.         int n;
  6.         for (n = 5; n > 0; n--)
  7.         {
  8.             cout << n;
  9.             if (n == 3)
  10.                 break;
  11.         }
  12.         return 0;
  13.     }

543
54
5432
53
How many types of loops are there?

4
2
3
1
Which looping process is best used when the number of iterations is known?

for
while
do-while
all looping processes require that the iterations be known