Python - Variables and Input

Python - Variables and Input

1st - 10th Grade

16 Qs

quiz-placeholder

Similar activities

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Python - Quiz

Python - Quiz

9th - 11th Grade

17 Qs

Variables, Inputs and Concatenation

Variables, Inputs and Concatenation

9th Grade

16 Qs

Python KS3

Python KS3

6th - 9th Grade

17 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

Python Iteration

Python Iteration

10th Grade

13 Qs

Python

Python

7th - 8th Grade

13 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Python - Variables and Input

Python - Variables and Input

Assessment

Quiz

Computers

1st - 10th Grade

Medium

Created by

Tezel Asena

Used 76+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is an invalid variable

Score

MyScore

First Score

FScore

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code output?

print("confusion")

Confusion

confusion

Syntax Error

print

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code output?

a = 5

b = 6

c = 1

b = 4

print(3 - c)

2

1

4

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code utput:

Mark1 = 50

Mark2 = 50

Total = Mark1 + Mark2

print(total)

Undefined name error

100

0

5050

Answer explanation

Variable names are case-sensitive.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

From the chocies, what is the best variable name to use for storing the following information:

China, Russia, USA, France, Canada, Japan, Mongolia, Turkey, Nigeria

Nations

C

NRUFCJMTN

World_Country_Names

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct assignment symbol.

=

==

*

:

Answer explanation

Assignment is when you assign or store data in your variables.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of data is

12.7

integer

float

boolean

string

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?