Search Header Logo

Chapter 5 loops structure

Authored by Muhammad idrees Dar

Computers

10th Grade

Used 1+ times

Chapter 5 loops structure
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In the following for loop construct ( for(x=0; x>10; x++) ) which statement is executed only once ?

(x=0; x>10;) only

X++

x=0

X>10

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which loop is guaranteed to execute at least one time?

For loop

While loop

Do while loop

All of these

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The output of the following code will be:

main()

{

for (int i=0; i<2; i++)

{

for (int j=0; j<4; j++)

{

printf("%d, %d\n",i ,j);

}

}

}

0, 0

0, 0

0, 0

0, 0

1, 1

1, 1

1, 1

1, 1

0, 0

0, 1

0, 2

0, 3

1, 0

1, 1

1, 2

1, 3

0, 1

0, 1

0, 1

0, 1

1, 0

1, 0

1, 0

1, 0

0, 1

0, 1

0, 2

0, 4

1, 0

1, 1

1, 2

1, 4

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

It is compulsory to add semicolon at the end of do...while loop.

True

False

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

It is compulsory to add semicolon at the end of do...while loop.

True

False

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In do while loop , the test expression is written:

beginning of loop

outside the main function

Middle of the loop

End of the loop

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In do while loop , the test expression is written:

beginning of loop

outside the main function

Middle of the loop

End of the loop

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?