Python Variables

Python Variables

6th Grade - University

6 Qs

quiz-placeholder

Similar activities

Unit 1 Post Test: Basic Python

Unit 1 Post Test: Basic Python

9th - 12th Grade

10 Qs

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

10 Qs

For Loops

For Loops

8th Grade

7 Qs

DO NOW Python Lesson 2

DO NOW Python Lesson 2

8th Grade

10 Qs

Recap Chapter 6, 7, 8

Recap Chapter 6, 7, 8

University

11 Qs

PSP Week3

PSP Week3

University

10 Qs

Programming Quiz 1

Programming Quiz 1

11th Grade

11 Qs

Python Variables

Python Variables

Assessment

Quiz

Computers

6th Grade - University

Hard

Created by

STEM Birds

Used 33+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be output of the following code be?

1var = 6

6

1

var

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Can a variable name start with a number?

Yes

No

Maybe

Irrelevant

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will the output of the following code be?

a = 5

b = 0

print(a)

5

0,5

0

5

5

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will the output of the following code be?

a=b=9

print (a)

print(b)

9

18

9

9

18

9

18

18

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What should we start the variable name with?

Number

Letter or an alphabet

Special Character

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will the output of the following code be?

name = Python

print(name)

Python

Error

print

Python name