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

A loop within another loop is called

Question # 2

This statement causes a loop to terminate early?

Question # 3

This means to increase a value by one:

Question # 4

A special value that marks the end of a list of input data is called:

Question # 5

When does the code block following while (x<100) execute?

Question # 6

When is for loop more appropriate then while loop?

Question # 7

______ are used to move around the window if its contents do not fit on screen

Question # 8

Which of the following statement can be used in C

Question # 9

The body of for loop with single statement ends with:

Question # 10

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

Question # 11

This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop?

Question # 12

A for statement contains three expressions: Initialization, test and:

Question # 13

The loop structure in which condition comes after the body of the loop is

Question # 14

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

Question # 15

The keyword used to transfer control from the body of loop to the start of loop is

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

  • R
    Rajab Ali Ali 04 - Jul - 2024 00 Min 24 Sec 15/15
  • 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
  • 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 This statement causes a loop to terminate early?
A. Break
B. Terminate
C. Exit
D. A and B
2 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
3 One execution of a loop is known as a(n):
A. Cycle
B. Duration
C. Iteration
D. Test
4 If we want a user to enter exactly 20 values, which loop would be the best to use?
A. While
B. Do-while
C. For
D. Infinite
5 Which of the following statement can be used in C
A. While
B. For
C. Do while
D. All
6 What is the final value of x after executing the following code:
For (int x=0; x<10; X++)
A. 10
B. 9
C. 0
D. 1
7 A loop whose execute never ends is called
A. Nested loop
B. Forever loop
C. Infinite loop
D. Counter loop
8 In a for statement, this expression is executed only once:
A. Test
B. Validation
C. Initialization
D. All
9 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;
A. 64
B. 65
C. 66
D. 67
10 Which statement is used to move the control to the start of loop body?
A. Continue
B. Break
C. Switch
D. Goto

Test Questions

Is this page helpful?

Share your comments & questions here

Guest
  • ahmad

    ahmad

    06 May 2018

    where is mine result

    Like
    Reply
  • Ch Zaroon

    Ch Zaroon

    05 Apr 2017

    How to I give test

    Like
    Reply
  • subhan malik

    subhan malik

    07 Feb 2016

    good

    Like
    Reply