Python Quiz - Beginner level

Python Quiz - Beginner level

7th Grade

9 Qs

quiz-placeholder

Similar activities

Python

Python

KG - Professional Development

13 Qs

Quiz#2

Quiz#2

6th - 8th Grade

11 Qs

User Input in Python

User Input in Python

6th - 10th Grade

11 Qs

Python

Python

7th Grade - Professional Development

13 Qs

Hero of the Day

Hero of the Day

7th - 10th Grade

6 Qs

Python Room 1

Python Room 1

7th Grade

10 Qs

python grade 7

python grade 7

7th Grade

10 Qs

Python Variables and Selection

Python Variables and Selection

7th Grade

10 Qs

Python Quiz - Beginner level

Python Quiz - Beginner level

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Deepti Vaidya

Used 6+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable?

var@

32var

abc_a_c

All of them

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python was developed by

Guido van Rossum

James Gosling

Dennis Ritchie

Bjarne Stroustrup