KS3 Year 9 Python Quiz 02
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Mr McCallion
Used 21+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to print a message in Python?
print message "Hello World"
print("Hello World")
echo "Hello World"
printf("Hello World")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you read a user's input and store it in a variable named 'name'?
name = input("Enter your name: ")
input("Enter your name: ") -> name
name <- input("Enter your name: ")
get("Enter your name: ") as name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable assignment in Python?
5 = x
x = 5
int x = 5
var x = 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the code print?
Smaller
Greater
Error
Nothing
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, 'elif' is short for:
else if
else information
either if
else in function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will code output?
Adult
Child
Teenager
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'input()' function in Python do?
Outputs data to the screen
Reads text from a file
Takes user input
Calculates numeric input
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator checks for equality in Python?
=
==
===
!=
Similar Resources on Wayground
12 questions
OCR Internet Technologies
Quiz
•
10th - 11th Grade
10 questions
Importance of data
Quiz
•
10th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
LATIHAN SOAL
Quiz
•
10th Grade
11 questions
Programming basics
Quiz
•
10th - 11th Grade
10 questions
แบบทดสอบเรื่องระบบคอมพิวเตอร์และการสื่อสาร
Quiz
•
9th - 12th Grade
8 questions
Basic computer
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
