grade 12 Chapter No 4

grade 12 Chapter No 4

12th Grade

20 Qs

quiz-placeholder

Similar activities

Code HS JavaScript Control Structures

Code HS JavaScript Control Structures

9th - 12th Grade

20 Qs

CP M4 Repetition & Loops

CP M4 Repetition & Loops

9th - 12th Grade

15 Qs

Python variables and operators quiz

Python variables and operators quiz

9th - 12th Grade

20 Qs

GD2 - 3.13 Unit 3 Test - Loops, Strings & Arrays

GD2 - 3.13 Unit 3 Test - Loops, Strings & Arrays

10th - 12th Grade

20 Qs

SIP C2

SIP C2

12th Grade

20 Qs

Python -Iteration (loops)

Python -Iteration (loops)

7th - 12th Grade

20 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

CSP Arrays

CSP Arrays

10th - 12th Grade

20 Qs

grade 12 Chapter No 4

grade 12 Chapter No 4

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Sabia Shakoor

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many loops are there in C++

2

3

4

1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is currect syntax of for loop?

for(initialization;condition; increment/decrement)

for(increment/decrement; initialization; condition)

for(initialization, condition, increment/decrement

None of These

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can a for loop contain another for loop?

No

Yes

Compilation Error

Runtime Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which looping process checks the test condition at the end of the loop?

for

while

do-while

no looping process checks the test condition at the end

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The statement i++; is equivalent to

i = i + i;

i = i + 1;

i = i - 1;

i --;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which looping process is best used when the number of iterations is known?

for

while

do-while

all looping processes require that the iterations be known

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's wrong? for (int k = 2, k <=12, k++)

the increment should always be ++k

the variable must always be the letter i when using a for loop

there should be a semicolon at the end of the statement

the commas should be semicolons

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?