12th Class ICS Computer Science Chapter 12 Online MCQ Test for (Loop Constructs)

ICS Part 2 Computer Science Online
Chapter 12 Test

Start Chapter 12 Test

MCQ's Test For Chapter 0 "ICS Part 2 Computer Science Chapter 12 Online Test"

Try The MCQ's Test For Chapter 0 "ICS Part 2 Computer Science Chapter 12 Online Test"

  • Total Questions15

  • Time Allowed20

ICS Part 2 Computer Science Chapter 12 Online Test

00:00
Question # 1

What is the value of "a" after the execution of the following code?
int a 25;
for(int c=0; c<4;c++)
a=a-1;
a=1+3;

Question # 2

What is the final value of x after executing the following code:
For (int x=0; x<10; X++)

Question # 3

If n=3, what will be the value of n after executing the following code?
do
n*=2
while (n<48);

Question # 4

The keyword 'break' cannot be used within:

Question # 5

The loop structure that executes at least ones is

Question # 6

What is the value of "a" after execution the following code segment:
int a=2;
int b=0;
while(b<5)
{ a=a*2;
b=b+1;
}
a=a+1;

Question # 7

The body of for loop with single statement ends with:

Question # 8

In which loop the condition comes before the body of the loop?

Question # 9

________ contains icon button that are shortcuts to the commands in the menu

Question # 10

Which loop structure always executes at least once?

Question # 11

Redundancy means

Question # 12

A loop within another loop is called

Question # 13

A _____ contains an object that stores VBA code

Question # 14

This means to increase a value by one:

Question # 15

If we want a user to enter exactly 20 values, which loop would be the best to use?

Prepare Complete Set Wise Chapter 0 "ICS Part 2 Computer Science Chapter 12 Online Test" MCQs Online With Answers


Topic Test

00:00
12th Chapter

ICS Part 2 Computer Science Chapter 12 Online Test MCQ's

Top Scorers Of Chapter 0 "ICS Part 2 Computer Science Chapter 12 Online Test" MCQ`s Test

  • N
    Noreenjaved Javed 16 - Jan - 2025 02 Min 16 Sec 15/15
  • A
    Ayesha Javed 26 - Oct - 2024 02 Min 30 Sec 15/15
  • M
    Memona Zaka 20 - Dec - 2024 02 Min 31 Sec 15/15
  • S
    Shanza- Shabbir. 14 - Nov - 2024 03 Min 00 Sec 15/15
  • T
    Tariq Rahi 15 - Dec - 2024 02 Min 30 Sec 14/15
  • W
    Waheed Asghar 08 - Dec - 2024 02 Min 32 Sec 14/15
  • A
    Amber Ilyas 24 - Oct - 2024 02 Min 47 Sec 14/15
  • U
    uswa arshad 18 - Nov - 2024 03 Min 57 Sec 14/15
  • Z
    zahra noor 07 - Dec - 2025 03 Min 18 Sec 13/15
  • M
    Manahil Rafique 17 - Sep - 2024 03 Min 26 Sec 13/15
  • A
    Areeha Waheed 07 - Jul - 2024 04 Min 04 Sec 13/15
  • K
    khadija jafar 29 - Dec - 2024 08 Min 48 Sec 13/15
  • T
    Tech Design 26 - Feb - 2026 01 Min 30 Sec 12/15
  • M
    mueez farhan 18 - Sep - 2024 02 Min 17 Sec 12/15
  • I
    Iman 15 - Dec - 2024 02 Min 27 Sec 12/15

ICS Part II Computer Science Chapter 0 Important MCQ's

Sr.# Question Answer
1 If n=3, what will be the value of n after executing the following code?
do
n*=2
while (n<48);
A. 24
B. 32
C. 48
D. 96
2 When does the code block following while (x<100) execute?
A. When x is less then one hundred
B. When x is greater then one hundred
C. When x is equal to one hundred
D. None
3 The keyword used to come out of the body of loop is
A. Exit
B. Continue
C. Break
D. Ebd
4 When is for loop more appropriate then while loop?
A. The termination condition is known in advance
B. The number of iterations is not known in advance
C. The loop should be executed only once
D. The loop should be executed at least once
5 A loop whose execute never ends is called
A. Nested loop
B. Forever loop
C. Infinite loop
D. Counter loop
6 A special value that marks the end of a list of input data is called:
A. Terminal value
B. Sentinel Value
C. Loop control value
D. Input value
7 In a for statement, this expression is executed only once:
A. Test
B. Validation
C. Initialization
D. All
8 This means to increase a value by one:
A. Modulus
B. Increment
C. Decrement
D. Inc
9 How many types of loop structure are available in C language?
A. While
B. Do-while
C. For
D. All
10 When is while loop more appropriate then for loop?
A. The terminating condition occurs unexpectedly
B. The body of loop will be executed at least once
C. The program will be executed at least once
D. The number times the loop will be executed is known before the loop executes

Test Questions

Is this page helpful?