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
25 questions
Test évaluation N°1

Quiz
•
10th Grade
28 questions
Key Programming Concepts

Quiz
•
5th - 12th Grade
25 questions
SOAL LATIHAN 3.10 Menerapkan pembuatan antar muka (User Intr

Quiz
•
10th Grade
33 questions
Comp Sci 1 - Unit 3 Review

Quiz
•
9th - 12th Grade
30 questions
Python Introduction

Quiz
•
9th - 11th Grade
30 questions
Python Operators

Quiz
•
9th - 11th Grade
25 questions
Python

Quiz
•
9th - 12th Grade
25 questions
Python - Unit Test 2

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade