New ! Computer Science MCQ Practise Tests



Flow of Control Two Marks Questions

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:45:00 Hrs
Total Marks : 30
    15 x 2 = 30
  1. What is a null statement and compound statement?

  2. What is selection statement? write it's types?

  3. Correct the following code sigment:
    if (x = 1)
    p = 100;
    else
    p = 10;

  4. What will be the output of the following code:
    int year;
    cin >> year;
    if (year % 100 == 0)
    if ( year % 400 == 0)
    cout << "Leap";
    else
    cout << "Not Leap year";
    If the input given is
    (i) 2000
    (ii) 2003
    (iii) 2010?

  5. What is the output of the following code?
    for (int i = 2; i < = 10 ; i + = 2)
    cout << i;

  6. Write a for loop that displays the number from 21 to 30.

  7. Write a while loop that displays numbers 2, 4, 6, 8.......20.

  8. Compare an if and a?: operator.

  9. What is body of the loop?

  10. Write the syntax of if statement.

  11. What is if statement is executed?

  12. Define iteration.

  13. What is the use of iteration statements?

  14. Write the three types of iteration?

  15. Name the elements used in loop.

*****************************************

Reviews & Comments about 11th Standard Computer Science - Flow of Control Two Marks Questions

Write your Comment