Search Header Logo

grade 12 Chapter No 4

Authored by Sabia Shakoor

Computers

12th Grade

20 Questions

Used 1+ times

grade 12 Chapter No 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?