
Programming Concepts Quiz

Passage
•
Computers
•
5th Grade
•
Hard
Chris Bashford
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What programming language is mentioned in the lesson objectives?
Java
Python
C++
Ruby
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the variable num2 in the code?
It stores a string
It stores an integer input from the user
It stores a float
It stores a boolean value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the print() function in the code?
It outputs a number
It outputs a string message
It outputs a boolean
It outputs a list
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the `num1` variable in the code?
It stores the second number
It stores the first number
It stores the result of the addition
It stores the difference of the numbers
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In an If-Else statement, what happens if the condition is false?
The If part is executed
The Else part is executed
Nothing happens
Both parts are executed
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the "Else" part of an If-Else statement do?
Executes if the condition is true
Executes if the condition is false
Always executes
Never executes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the condition checked in the IF statement in the diagram?
Age is less than 17
Age is equal to 17
Age is greater than 17
Age is not equal to 17
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
Understanding How to Calculate Speed

Passage
•
5th Grade
8 questions
Reading- Lab Tools and Safety Procedures

Passage
•
4th Grade
8 questions
U1L3: Energy and Motion

Passage
•
5th Grade
8 questions
U1L2: Electricity and Magnetism

Passage
•
5th Grade
11 questions
Cyberbullying Awareness Worksheet

Passage
•
5th Grade
6 questions
Phantom Tollbooth Act 1 Vocab

Passage
•
6th Grade
10 questions
Q3 W8 Monday

Passage
•
5th Grade
11 questions
Leap Year

Passage
•
5th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade