Topic 5-3: for loop

Topic 5-3: for loop

University

6 Qs

quiz-placeholder

Similar activities

Day 4 Quiz

Day 4 Quiz

University

10 Qs

ISAC Weekly Quiz 8 (C & DBMS)

ISAC Weekly Quiz 8 (C & DBMS)

University

10 Qs

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

Java Control Flow statements

Java Control Flow statements

University

10 Qs

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

Introduction to Python Quiz

Introduction to Python Quiz

8th Grade - University

10 Qs

Java Strings

Java Strings

1st Grade - Professional Development

10 Qs

FGCT4023 Topic 3 - Control

FGCT4023 Topic 3 - Control

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);