Python Variables and Assignment

Python Variables and Assignment

10th Grade

10 Qs

quiz-placeholder

Similar activities

Java ArrayLists

Java ArrayLists

10th Grade

11 Qs

G3QUIZZIZM2

G3QUIZZIZM2

10th Grade

10 Qs

Python Programming: Functions and Procedures

Python Programming: Functions and Procedures

9th - 11th Grade

12 Qs

Eduqas CS IDE Functions

Eduqas CS IDE Functions

9th - 12th Grade

13 Qs

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

CodeHS 5.8 HashMaps

CodeHS 5.8 HashMaps

9th - 12th Grade

10 Qs

Module 9: Boo!

Module 9: Boo!

9th - 12th Grade

8 Qs

8.12 C++ Test on Classes

8.12 C++ Test on Classes

9th - 12th Grade

15 Qs

Python Variables and Assignment

Python Variables and Assignment

Assessment

Quiz

Computers

10th Grade

Hard

Created by

J Joel Thomas

Used 7+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Variables

store values

change during the lifetime of a program

can be imagined to be storage boxes

Can be created using create command

Answer explanation

Variables store values, change during the lifetime of a program, and can be imagined to be storage boxes.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assignments are always denoted by

= (equals symbol)

> symbol

assign command

print()

Answer explanation

Assignments are always denoted by the = (equals symbol), making it the correct choice.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assignments are executed from

Left to right

Right to left

Middle to right

Not executed

Answer explanation

Assignments are executed from right to left, meaning the rightmost assignment is performed first followed by the assignment to the left of it.

4.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Assignments are instructions to be executed

No

Yes

May be

Not at all

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is/are valid assignment(s)

a = 15

b = 10.2

x = y

10 = a

Answer explanation

The valid assignments are a = 15, b = 10.2, and x = y. Assigning a value to a variable with a number as the variable name like '10 = a' is not valid.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable can store

Only one value at a time

Multiple values at a time

Atmost two values at a time

Atmost three values at a time

7.

MATCH QUESTION

1 min • 1 pt

Match the assignments

invalid

y="Hello"

valid

age = 3.14

valid

2 = x

valid

"hello" = z

invalid

John = "name"

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?