chapter 3 - loop

chapter 3 - loop

University

5 Qs

quiz-placeholder

Similar activities

POSTEST INFORMATIKA

POSTEST INFORMATIKA

9th Grade - University

10 Qs

CS10337 - Intro

CS10337 - Intro

University

10 Qs

Vb Codes Quiz 1

Vb Codes Quiz 1

University

10 Qs

Operasi Input & Output C++

Operasi Input & Output C++

University

10 Qs

ұлтты және мобильді технологиялар

ұлтты және мобильді технологиялар

University

10 Qs

Contadores y Acumuladores

Contadores y Acumuladores

University

10 Qs

Link layer and LANs

Link layer and LANs

University

10 Qs

Quiz - Hardware & Software

Quiz - Hardware & Software

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?