Search Header Logo

Structured Programming and OOP Quiz

Authored by official garbage

Computers

University

Used 2+ times

Structured Programming and OOP Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Faisal has a number, x, which is 5. He wants to check if this number is greater than 3. If it is, he will say "Lebih besar dari 3"; otherwise, he will say "Tidak lebih besar dari 3".

Lebih besar dari 3

Tidak lebih besar dari 3

Error

Tidak ada output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Rizal is counting the number of apples he picked from the tree. He picks apples in three rounds. In each round, he counts the apples he picked. What will he say after each round?

0 1 2

1 2 3

0 1 2 3

1 2 3 4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lina is counting the number of apples she has. She starts at 0 and continues counting until she has counted 3 apples. What is the output of the following code? count = 0 while count < 3: print(count) count += 1

0 1 2

1 2 3

0 1 2 3

Tidak ada output

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a programming class, Adi is learning about switch statements. He writes the following code: switch = 2 switch (switch): case 1: print("Satu") case 2: print("Dua") default: print("Tidak ada")

Satu

Dua

Tidak ada

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a classroom, Susi is asked if the sky is blue. If she answers True, she will say "Benar"; otherwise, she will say "Salah". What will Susi say?

Benar

Salah

Error

Tidak ada output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Adi is counting numbers from 1 to 5. He decides to print only the even numbers he encounters. What will he print?

1 3

2 4

1 2 3 4

0 2 4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mega is counting the number of apples she has. She starts with a count of 0. She decides to print the count and then add 1 to it in a loop until she has counted to 3. What will be the output of her counting process?

0 1 2

1 2 3

0 1 2 3

Tidak ada output

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?