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

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

Question # 3

A loop with in a loop is called:

Question # 4

When is for loop more appropriate then while loop?

Question # 5

Which loop structure always executes at least once?

Question # 6

A _____ contains an object that stores VBA code

Question # 7

The body of while loop with multiple statements ends with:

Question # 8

Which of the following loop is called counter loop?

Question # 9

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

Question # 10

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

Question # 11

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

Question # 12

The keyword used to come out of the body of loop is

Question # 13

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

Question # 14

One execution of a loop is known as a(n):

Question # 15

The loop which never ends is called:

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


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
  • B
    Brilliant Star 22 - Jun - 2024 00 Min 58 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
  • A
    Adeel Afzal 23 - Jun - 2024 08 Min 13 Sec 14/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
Sr.# Question Answer
1 ______ are used to move around the window if its contents do not fit on screen
A. menu bar
B. Tool bar
C. Scroll bar
D. Status bar
2 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
3 The loop structure in which condition comes after the body of the loop is
A. While
B. Do-while
C. For
D. All
4 The keyword 'break' cannot be used within:
A. Do-while
B. If-else
C. For
D. While
5 The keyword used to transfer control from the body of loop to the start of loop is
A. Exit
B. Continue
C. Break
D. End
6 A loop within another loop is called
A. Inner loop
B. Nested loop
C. Counter loop
D. None
7 Redundancy means
A. Duplication
B. No-duplication
C. Standards
D. Microsoft office integration
8 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
9 The loop which never ends is called:
A. Infinite loop
B. Running loop
C. Continuous loop
D. Nested loop
10 In which loop the condition comes after the body of the loop?
A. While loop
B. Do-while loop
C. For loop
D. B and C
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?
A. While
B. Do-while
C. For
D. Nested
12 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;
A. 23
B. 24
C. 25
D. 20
13 Which of the following is a loop statement?
A. If
B. If-else
C. Switch
D. None
14 This statement causes a loop to terminate early?
A. Break
B. Terminate
C. Exit
D. A and B
15 In which loop the condition comes before the body of the loop?
A. While loop
B. Do-while loop
C. For loop
D. B and C

Test Questions

Is this page helpful?