Python Basics: Operators and Variables

Quiz
•
Computers
•
10th Grade
•
Medium

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
Similar Resources on Wayground
15 questions
Programming python review

Quiz
•
9th - 12th Grade
15 questions
Python for kids and teenagers - Level 1

Quiz
•
10th Grade
10 questions
Python Basics Quiz

Quiz
•
7th Grade - University
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
8 questions
KS3 Year 9 Python Quiz 02

Quiz
•
10th Grade
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
15 questions
Grade 8 End of Unit Revision

Quiz
•
8th Grade - University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade