Python Basics: Variables and Syntax

Quiz
•
Computers
•
10th Grade
•
Medium
Jonathon Mcmanus
Used 13+ 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
30 questions
Yr 8 Python Summative Assessment

Quiz
•
7th - 11th Grade
33 questions
2.1.1 CSE Transitioning from Block to Text Coding

Quiz
•
9th - 12th Grade
30 questions
Python Review 1

Quiz
•
9th Grade - University
25 questions
Python Class 9

Quiz
•
9th - 10th Grade
27 questions
Turtle Python Quiz 1

Quiz
•
10th - 12th Grade
30 questions
CodeHS Tracy the Turtle Final Test

Quiz
•
6th - 10th Grade
31 questions
Python Quiz

Quiz
•
10th Grade
25 questions
ASESMEN HARIAN INFORMATIKA KELAS X SMT-2 BAB 1

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade