Programming Concepts Quiz

Programming Concepts Quiz

Assessment

Passage

Computers

5th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?