Condition Programming Quiz

Quiz
•
Information Technology (IT)
•
1st Grade
•
Medium
Panha Panha
Used 18+ times
FREE Resource
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
Similar Resources on Wayground
14 questions
Roblox L33 UI score

Quiz
•
1st - 5th Grade
6 questions
Grade3 Online safety

Quiz
•
1st - 5th Grade
8 questions
MIS-RODOCODO

Quiz
•
1st Grade - University
5 questions
Year 5-Unit 4

Quiz
•
5th Grade
10 questions
quiz

Quiz
•
University
14 questions
Excel Basics Quiz

Quiz
•
10th Grade - University
10 questions
Safety Quiz by YAAL Students

Quiz
•
9th - 12th Grade
10 questions
C101 MIS Classroom Rules Quiz

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade
10 questions
Exploring the 5 Regions of the United States

Interactive video
•
1st - 5th Grade
7 questions
Parts of Speech

Lesson
•
1st - 12th Grade