12th Chapter

12th Class Computer Science Chapter 12 Test

Here you can prepare 12th Class Computer Science Chapter 12 Loop Constructs Test. Click the button for 100% free full practice test.

2nd Year Computer Science Chapter 12 Online MCQ Test for 12th Class Computer Science Chapter 12 (Loop Constructs)

This online test contains MCQs about following topics:

- Overview
- While Statement
- Do While Loop
- Nested Loop
- Goto Statement

ICS Part 2 Computer Sci Ch. 12 Test
ic

2nd Year Computer Science Chapter 12 Online MCQ Test for 12th Class Computer Science Chapter 12 (Loop Constructs)

Sr. # Questions Answers Choice
1 This statement causes a loop to terminate early?
  • A. Break
  • B. Terminate
  • C. Exit
  • D. A and B
2 What is the value of "a" after execution the following code segment:<div>int a=2;</div><div>int b=0;</div><div>while(b&lt;5)</div><div>{ a=a*2;</div><div> b=b+1;</div><div>}</div><div>a=a+1;</div>
  • A. 64
  • B. 65
  • C. 66
  • D. 67
3 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
4 What is the final value of x after executing the following code:<div>For (int x=0; x&lt;10; X++)</div>
  • A. 10
  • B. 9
  • C. 0
  • D. 1
5 ________ contains icon button that are shortcuts to the commands in the menu
  • A. Menu bar
  • B. Tool bars
  • C. Scroll bar
  • D. Status bar
6 The keyword used to come out of the body of loop is
  • A. Exit
  • B. Continue
  • C. Break
  • D. Ebd
7 When does the code block following while (x&lt;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
8 Which statement is used to move the control to the start of loop body?
  • A. Continue
  • B. Break
  • C. Switch
  • D. Goto
9 A loop whose execute never ends is called
  • A. Nested loop
  • B. Forever loop
  • C. Infinite loop
  • D. Counter loop
10 One execution of a loop is known as a(n):
  • A. Cycle
  • B. Duration
  • C. Iteration
  • D. Test

Top Scorers of Computer Science Ics Part 2 Chapter 12 Online Test

A

Ayesha Javed

Lahore26 - Oct - 2024

15/15
02 Mins 30 Sec
S

Shanza- Shabbir.

Lahore14 - Nov - 2024

15/15
03 Mins
A

Amber Ilyas

Lahore24 - Oct - 2024

14/15
02 Mins 47 Sec
U

Uswa Arshad

Lahore18 - Nov - 2024

14/15
03 Mins 57 Sec
M

Manahil Rafique

Lahore17 - Sep - 2024

13/15
03 Mins 26 Sec
M

Mueez Farhan

Lahore18 - Sep - 2024

12/15
02 Mins 17 Sec
A

Amber Ilyas

Lahore25 - Oct - 2024

12/15
02 Mins 59 Sec
H

Hafiz Usman

Lahore14 - Sep - 2024

12/15
05 Mins 45 Sec
M

Muskan Tariq

Lahore13 - Nov - 2024

10/15
02 Mins 46 Sec
A

Amber Ilyas

Lahore14 - Oct - 2024

10/15
03 Mins 30 Sec
L

Laiba Malik

Lahore24 - Oct - 2024

10/15
03 Mins 56 Sec
K

Kainat Amjad

Lahore05 - Nov - 2024

10/15
06 Mins 18 Sec
M

Manahil Rafique

Lahore17 - Sep - 2024

9/15
02 Mins 32 Sec
M

Minahil Ashraf

Lahore19 - Nov - 2024

9/15
02 Mins 37 Sec
S

Snowfall

Lahore28 - Sep - 2024

9/15
06 Mins 29 Sec

Share your comments questions here
Sort By:
  • Ahmad

    06 May 2018

    where is mine result

    Like (1)
    Reply
  • C

    Chaudhary Zaroon

    05 Apr 2017

    How to I give test

    Like
    Reply
  • S

    Subhan Malik

    07 Feb 2016

    good

    Like
    Reply
X

Sign in

to continue to ilmkidunya.com

inquiry-image

Free Admission Advice

Fill the form. Our admission consultants will call you with admission options.

X

Sign in

to continue to ilmkidunya.com

X

Sign in

to continue to ilmkidunya.com

X

Forgot Password

to continue to ilmkidunya.com

X

Register Type

Please Provide following information to Register

  • Student
  • Tutor
  • Consultant
  • Employer