Python Quiz - Beginner level

Python Quiz - Beginner level

7th Grade

9 Qs

quiz-placeholder

Similar activities

Computer Education 7

Computer Education 7

7th Grade

11 Qs

Spacing & Other Questions

Spacing & Other Questions

6th - 7th Grade

10 Qs

7.02 going online

7.02 going online

4th - 9th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

Gimp

Gimp

7th Grade

12 Qs

Мотылек

Мотылек

6th - 8th Grade

14 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

Python Quiz - Beginner level

Python Quiz - Beginner level

Assessment

Quiz

Computers

7th Grade

Practice Problem

Medium

Created by

Deepti Vaidya

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In Python, a variable must be declared before it is assigned a value:

True

False

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following statements assigns the value 100 to the variable x in Python:

let x = 100

x = 100

x := 100

x ← 100

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:

True

False

4.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are valid Python variable names:

4square

Age

route66

ver1.3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are reading Python code, and these statements appear scattered in different locations throughout the code:

employeenumber = 4398

.

.

.

EmployeeNumber = 4398

.

.

.

employeeNumber = 4398

These statements refer to the same variable.

These statements refer to different variables.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is correct way of declaring and initialising a variable, x with value 5?

int x

x=5

int x=5

x=5

declare x=5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is incorrect regarding variables in Python?

Variable names in Python cannot start with number. However, it can contain number in any other position of variable name.

Variable names can start with an underscore.

Data type of variable names should not be declared

None of these

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?