Computer Chapter 12 Class 12

Computer Chapter 12 Class 12 Short Questions

Computer Chapter 12 Class 12 Short Questions to help the students for their Punjab Board examination. These Punjab boards are Bahawalpur Board, DG Khan Board, Faisalabad Board, Gujranwala Board, Lahore Board, Multan Board, Rawalpindi Board, Sahiwal Board, and Sargodha Board. This chapter is about Loop Constructs of C where students can learn about high-level language C and its important features.

Computer Chapter 12 Class 12 – Loop Constructs of C – Short Questions

  1. What is a loop?
  2. Why loops are used?
  3. Define infinite loop.
  4. What is a sentinel-controlled loop?
  5. Difference between counter loop and conditional loop.
  6. Define a sentinel value.
  7. What are the different types of loops available in the C language?
  8. What is a while loop?
  9. Use a while loop example (print 1–10).
  10. Output of:
    int i=1;
    while (i <= 5) {
    printf(“Pakistan “);
    i++;
    }
  11. Output of:
    k=0;
    while (k<=5) {
    printf(“%d\n%d\n”, k, 10-k);
    k++;
    }
  12. Output of:
    int x=10, y=4;
    do {
    x -= 2;
    y += 4;
    printf(“%d\n”, x);
    } while (y <= 16);
  13. What is a do-while loop?
  14. What is the difference between a while and a do-while loop?
  15. What is a for loop?
  16. What is a nested loop?
  17. What is a goto statement?

For students’ ease, there is an option to download the important short questions of Chapter 12 in PDF format.

Download Computer Important Short Questions of Chapter 12 in PDF

2nd Year Computer Full Book Short Questions

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top