Python Basics: Variables and Syntax

Quiz
•
Computers
•
10th Grade
•
Medium
Jonathon Mcmanus
Used 11+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct syntax to print "Hello, World!" in Python?
echo("Hello, World!")
print("Hello, World!")
println("Hello, World!")
output("Hello, World!")
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these is a valid variable name in Python?
2name
name_2
@name
name@
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What data type is used to store a sequence of characters in Python?
Integer
String
Dictionary
List
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which symbol is used for addition in Python?
+
/
-
*
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you start a comment in Python?
//
#
''
>
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of the following Python expression: 7 + 5 * 2?
24
17
19
22
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the print() function do in Python?
Displays output on the screen
Adds two numbers together
Stores a variable
Changes a string to uppercase
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Python for Absolute Beginners

Quiz
•
8th - 12th Grade
25 questions
OCR CS GCSE: 1.1 Systems Architecture

Quiz
•
7th - 11th Grade
30 questions
Python Basics

Quiz
•
8th - 10th Grade
25 questions
GCSE Computer Science - Memory Quiz

Quiz
•
8th - 10th Grade
25 questions
Computer Networks & Web Technologies

Quiz
•
10th - 11th Grade
26 questions
BTEC Tech Award DIT - Threats, Prevention, Policy (Complete)

Quiz
•
9th - 10th Grade
25 questions
Data Types- Python

Quiz
•
7th - 11th Grade
25 questions
AQA GCSE Programming

Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade