Chapter 5 loops structure

Chapter 5 loops structure

10th Grade

20 Qs

quiz-placeholder

Similar activities

Java Control Flow Statements

Java Control Flow Statements

9th - 12th Grade

20 Qs

Computer Science Principals Final

Computer Science Principals Final

9th - 12th Grade

17 Qs

FOR and WHILE loop in Python

FOR and WHILE loop in Python

9th - 12th Grade

18 Qs

Java Conditional Constructs

Java Conditional Constructs

9th - 10th Grade

20 Qs

Intro to Java Loops

Intro to Java Loops

9th - 12th Grade

15 Qs

QUIS PERULANGAN & PERCABANGAN

QUIS PERULANGAN & PERCABANGAN

10th Grade

20 Qs

Nested If

Nested If

6th - 12th Grade

15 Qs

AQA GCSE Computer Science - 3.2.2 Programming Concepts

AQA GCSE Computer Science - 3.2.2 Programming Concepts

8th - 10th Grade

20 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?