Search Header Logo

last day quiz

Authored by Alex Morsey

Computers

2nd Grade

Used 1+ times

last day quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function?

A programming language
A type of data structure
A mathematical equation
A block of code that can be called and executed to perform a specific task

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are arguments used for in functions?

To confuse the programmer
To slow down the function
To make the code longer
To pass values to a function when it is called.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A type of insect
A type of clothing
A type of food
A storage location in a computer program where you can store a value.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you output in Python?

show()
write()
display()
print()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a loop used for?

To play music
To cook a meal
To send an email
To repeat a block of code multiple times

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you ask the user a question in Python?

By using the 'ask' function.
By using the 'print' function.
By using the 'question' function.
By using the 'input' function.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an 'f' string in Python?

A text that lets you add variables

A function for sorting lists

A function for converting words to numbers

A type of data

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?