Condition Programming Quiz

Condition Programming Quiz

1st Grade

9 Qs

quiz-placeholder

Similar activities

Year 1 : End of Unit Test (Keyboard)

Year 1 : End of Unit Test (Keyboard)

1st Grade

10 Qs

HTML Table

HTML Table

8th Grade

13 Qs

Git & GitHub Quiz - MSP Session (5/5/2025)

Git & GitHub Quiz - MSP Session (5/5/2025)

University

12 Qs

Quiz Chapter 3

Quiz Chapter 3

University

10 Qs

Super  Spreadsheet

Super Spreadsheet

3rd Grade

11 Qs

File Management Quiz

File Management Quiz

6th Grade

14 Qs

ICT practical Exam

ICT practical Exam

7th Grade

10 Qs

Game dulu sebelum QUIZ 1

Game dulu sebelum QUIZ 1

University

14 Qs

Condition Programming Quiz

Condition Programming Quiz

Assessment

Quiz

Information Technology (IT)

1st Grade

Medium

Created by

Panha Panha

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a control structure?

A type of data structure

An element that determines which block of statements to execute

A type of loop

A programming language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'if' statement do?

It always executes the block of code

It executes the block of code only if the condition is true

It repeats a block of code

It defines a variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'else' do in an if-else statement?

Executes if the first condition is false

Executes if the first condition is true

Defines a new condition

Always executes

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of 'else if'?

To repeat a block of code

To end a program

To define a variable

To check multiple conditions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output if 'a = 9' and 'if(a < 9)'?

Hello 2

Nothing happens

Condition return false

Condition return true

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'nested condition' mean?

A type of loop

Conditions inside another condition

A variable definition

An error in code

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in a decision-making process?

End the program

Write the output

Check the condition

Define the variables

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 'if(x < 0) then write("It is a negative number.")' when x is -5?

It is zero.

It is a positive number.

It is a negative number.

Nothing happens

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if the condition in an 'if' statement is false?

The block of code will execute

Nothing will happen

An error will occur

The program will end