Chapter 5 loops structure

Chapter 5 loops structure

10th Grade

20 Qs

quiz-placeholder

Similar activities

for loops quiz coding

for loops quiz coding

9th - 12th Grade

23 Qs

Visual Basic Ch.5 Loops

Visual Basic Ch.5 Loops

9th - 12th Grade

20 Qs

Encryption and 2D Arrays

Encryption and 2D Arrays

9th - 12th Grade

20 Qs

Edublocks nested if

Edublocks nested if

6th - 12th Grade

18 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

GCSE Computer Science - Python Programming Concepts

GCSE Computer Science - Python Programming Concepts

9th - 11th Grade

17 Qs

GCSE Computer Science: Programming (Python)

GCSE Computer Science: Programming (Python)

9th - 12th Grade

25 Qs

FOR and WHILE loop in Python

FOR and WHILE loop in Python

9th - 12th Grade

18 Qs

Chapter 5 loops structure

Chapter 5 loops structure

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Muhammad idrees Dar

Used 1+ times

FREE Resource

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

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?