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
15 questions
Unity Scripts

Quiz
•
Professional Development
14 questions
ABREDES - Devasc Python

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

Quiz
•
9th Grade - Professio...
20 questions
Estruturas de Repetição e Listas

Quiz
•
Professional Development
12 questions
Python8

Quiz
•
Professional Development
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
20 questions
Python practice

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

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

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade