chapter 3 - loop

chapter 3 - loop

University

5 Qs

quiz-placeholder

Similar activities

Quiz Pemrograman dan Algoritma

Quiz Pemrograman dan Algoritma

1st Grade - University

10 Qs

แบบทดสอบซัพพลายเชนเบื้องต้น

แบบทดสอบซัพพลายเชนเบื้องต้น

6th Grade - University

10 Qs

ASSESSING HARDWARE

ASSESSING HARDWARE

University

10 Qs

perangkat keras

perangkat keras

7th Grade - University

10 Qs

Basic Troubleshooting

Basic Troubleshooting

University

10 Qs

COCU 1

COCU 1

University

10 Qs

Latsol

Latsol

10th Grade - University

10 Qs

Caesar Cipher

Caesar Cipher

7th Grade - University

10 Qs

chapter 3 - loop

chapter 3 - loop

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

MAHANI BINTI ZAKARIA (POLIMAS)

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output?

Less than 5

Greater than 5

Nothing

Error

Answer explanation

num is 10, which is greater than 5. So, the condition is true, and it will print "Greater than 5".

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be printed?

Adult

Teenager

Nothing

Error

Answer explanation

age is 16, which is less than 18. So, it goes to the else part and prints "Teenager"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

A

Pass

Fail

Error

Answer explanation

mark is 75. First if (mark >= 50) is true, but second if (mark >= 80) is false. So, it prints "Pass".

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output?

1 2 3

1 2 3 4

2 3 4

Infinite loop

Answer explanation

The loop runs while i < 4, and i is increased each time. It prints 1, 2, 3 and stops.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

0 1 2

1 2 3

3 2 1

2 3 4

Answer explanation

Loop starts at 1 and runs while i <= 3. So it prints 1, 2, and 3.