Quiz on variables

Quiz on variables

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Python Programming

Python Programming

7th - 9th Grade

10 Qs

8.4 Micro Python Recap

8.4 Micro Python Recap

7th - 8th Grade

16 Qs

S3 Python 1

S3 Python 1

8th - 10th Grade

12 Qs

Small Basic-Turtle Graphics

Small Basic-Turtle Graphics

6th - 9th Grade

10 Qs

Python Variables

Python Variables

6th Grade

10 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Intro to Python

Intro to Python

KG - University

10 Qs

Python - Printing, Variables and Syntax

Python - Printing, Variables and Syntax

8th Grade

10 Qs

Quiz on variables

Quiz on variables

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Ridhaan Mishra

Used 2+ times

FREE Resource

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

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?