Loops

Loops

University

10 Qs

quiz-placeholder

Similar activities

Dart Final

Dart Final

University

9 Qs

 Quiz-4: Function & Array

Quiz-4: Function & Array

University

15 Qs

PYTHON BASICS

PYTHON BASICS

University

7 Qs

Day-1 Pre Assessment(Essentials of Data Analytics Using R)

Day-1 Pre Assessment(Essentials of Data Analytics Using R)

University

15 Qs

Python - 1

Python - 1

University

13 Qs

Scratch Contest

Scratch Contest

KG - Professional Development

10 Qs

Java Arrays

Java Arrays

5th Grade - University

10 Qs

PYTHON set4

PYTHON set4

University

10 Qs

Loops

Loops

Assessment

Quiz

Other

University

Hard

Created by

Abdelrahman Selmy

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

0 1 2 3 4

1 2 3 4 5

0 1 2 3

1 2 3 4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will the following loop iterate?

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

012

0 1 2

0123

0 1 2 3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

5 4 3 2 1

5 3 1

5 2

5 3 1 -1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

It causes an infinite loop

It prints nothing

Compilation error

It prints 0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will the following loop iterate?

1

2

3

4

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?