We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Lincoln Inn Science Academy Kala
Computer Science 12th
Roll No.: ____ Student Name: _______ Time Allowed: 1:30 hours Total Marks: 30
Attempt the following MCQs
No Question A B C D Loop control 1 ___ is related to loop structures : Body of loop Condition All of these variable The body of while loop with multiple 2 Right bracket Comma Right braces Semi colon statements ends with for(int c =0; for(c =0; for(c =0; c< for(int c =0; 3 Which for loop will counts from 0 to 5 : c< =6;c++) c<5; c++); =5; c++) c<7; c++) What is the final value of x when the 4 10 9 1 0 code int x; for(x =0;x<10;x++){} is run One execution of the body of loop is 5 iteration duration cycle Text called : What will be the value of ‘x’ after 6 14 1 16 15 executing for(x =1 ; x<15;x++); : How many times does the loop get None of 7 iterated : for(i =0;i =10;i+ =2) 10.0 2 5.0 Above printf(“Hi\\n”);
Attempt the following short questions
1. How many times the following loop will execute? 2. What is for loop? 3. Write the output for the following code? 4. What is a condition? 5. Write a program for the following output?
Test Paper Generator: App Developer: JAMSHED IQBAL