chapter 3 - loop

chapter 3 - loop

University

5 Qs

quiz-placeholder

Similar activities

Postest Materi Pola Berfikir

Postest Materi Pola Berfikir

10th Grade - University

10 Qs

Post Test Gerbang Logika

Post Test Gerbang Logika

10th Grade - University

10 Qs

Python Day-2 Quiz

Python Day-2 Quiz

University

10 Qs

ASESMEN FORMATIF INFORMATIKA X DPB 2

ASESMEN FORMATIF INFORMATIKA X DPB 2

10th Grade - University

10 Qs

Kuis Pointer 1

Kuis Pointer 1

University

6 Qs

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

Quiz Meet 3 Mini SC Programing

Quiz Meet 3 Mini SC Programing

University

10 Qs

Quizzi bài 29 Tin học 10

Quizzi bài 29 Tin học 10

10th Grade - University

10 Qs

chapter 3 - loop

chapter 3 - loop

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

MAHANI BINTI ZAKARIA (POLIMAS)

Used 3+ times

FREE Resource

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.