Topic 5-3: for loop

Topic 5-3: for loop

University

6 Qs

quiz-placeholder

Similar activities

Basics of C

Basics of C

University

10 Qs

Java MCQ Test on Control Statements

Java MCQ Test on Control Statements

University

10 Qs

Python Basics

Python Basics

12th Grade - University

10 Qs

if statement

if statement

University

11 Qs

kuis PAB1

kuis PAB1

University

10 Qs

UNIT-1 PYTHON BASICS

UNIT-1 PYTHON BASICS

University

10 Qs

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

10 Qs

Java Quiz 2 based on loop and if else

Java Quiz 2 based on loop and if else

University

10 Qs

Topic 5-3: for loop

Topic 5-3: for loop

Assessment

Quiz

Computers

University

Hard

Created by

Adila Nordin

Used 8+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of this code?

3

3 2

3 2 1

Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of this code?

3

3 2

3 2 1

Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of this code?

3

3 2

3 2 1

Error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Can this code be compiled and run?

Yes

No

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this code?

Hello 5

Hello 2

Hello Hello 5

Hello Hello 2

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct syntax of a for loop?

for(condition; initial; update) {...}

for(initial; condition; update) {...}

for(condition) {...}

for(condition);