Python Class 1

Quiz
•
Computers
•
Professional Development
•
Hard
Teena George
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to print "Hello, World!" in Python?
System.out.println("Hello, World!")
echo "Hello, World!"
print("Hello, World!")
cout << "Hello, World!"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
x = 5
y = 2
print(x % y)
1
2
0
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is mutable in Python?
Tuple
String
List
Integer
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of this operation?
print(2 ** 3)
6
8
9
ERROR
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you start a comment in Python?
//
#
/*
<--
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
Hello, World! Hello, World!
Hello, World! Hello, Alice!
Hello, Alice! Hello, World!
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code snippet?
apple
banana
cherry
Error
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Basic Python

Quiz
•
Professional Development
19 questions
Python Basic

Quiz
•
Professional Development
12 questions
JavaScript

Quiz
•
Professional Development
20 questions
CodeHS - Intro to Python - Basics and Console Interaction

Quiz
•
9th Grade - Professio...
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
20 questions
Python

Quiz
•
Professional Development
10 questions
python quiz

Quiz
•
6th Grade - Professio...
14 questions
ABREDES - Devasc Python

Quiz
•
Professional Development
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

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

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade