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
10 questions
Anime
Quiz
•
KG - University
10 questions
Microsoft Word
Quiz
•
6th Grade - University
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
11 questions
Social Engineering
Quiz
•
10th Grade
10 questions
Post Test perangkat input output proses
Quiz
•
9th - 12th Grade
11 questions
Introduction to CAT
Quiz
•
10th Grade
10 questions
Wstęp do programowania
Quiz
•
9th - 12th Grade
12 questions
Cyber security
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
