Python Basics: Operators and Variables

Python Basics: Operators and Variables

10th Grade

10 Qs

quiz-placeholder

Similar activities

python String and comment

python String and comment

3rd Grade - University

13 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Python Quiz for 10s

Python Quiz for 10s

10th Grade

10 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

CodeHS Python Variables

CodeHS Python Variables

7th - 12th Grade

10 Qs

CodeHS Python

CodeHS Python

7th - 12th Grade

10 Qs

Scope of Variables in Python

Scope of Variables in Python

1st Grade - Professional Development

15 Qs

Python Quiz - 4

Python Quiz - 4

4th - 11th Grade

10 Qs

Python Basics: Operators and Variables

Python Basics: Operators and Variables

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Samuel Markham

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

16

11

10

13

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a comparison operator in Python?

+

==

*

=

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? ```python print("Hello, World!") ```

Hello World

Hello, World!

"Hello, World!"

Hello World!

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you assign the value 10 to a variable named `x` in Python?

x == 10

x = 10

10 = x

x : 10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the following value: `3.14`?

int

str

float

bool

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get input from the user in Python?

input()

get_input()

read()

scan()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? ```python x = 5 y = 10 print(x > y) ```

True

False

5

10

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?