Python - Variables and Input

Python - Variables and Input

1st - 10th Grade

16 Qs

quiz-placeholder

Similar activities

Informatika

Informatika

10th Grade

20 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

Arduino

Arduino

7th - 9th Grade

15 Qs

Arduino

Arduino

6th Grade

13 Qs

New Scratch

New Scratch

6th - 8th Grade

20 Qs

Lekcja14 7-8

Lekcja14 7-8

7th - 8th Grade

13 Qs

HTML

HTML

8th - 12th Grade

15 Qs

Python - Variables and Input

Python - Variables and Input

Assessment

Quiz

Computers

1st - 10th Grade

Medium

Created by

Tezel Asena

Used 77+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?