Search Header Logo

Quiz on variables

Authored by Ridhaan Mishra

Computers

6th - 8th Grade

Used 3+ times

Quiz on variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

it stores a value or string

it stores food

it stores mathematical operators

it stores the turtle module

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an invalid variable?

_name = 'hello'

1name = 'hello'

first_name = 'hello'

name = 'hello'

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What type of variable is boo?

global

string

number

local

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is a variable?

hi = ("hi")

hi = "hi"

1hi = "hi"

well_hi = "hi"

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Type the global variable:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many characters can a variable name consist of?

10

40

infinite

100

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I want to store my name in a variable, which of the following would be a good variable name?

name

1name

_myname

1stname

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?