KS3 Year 9 Python Quiz 02

Quiz
•
Computers
•
10th Grade
•
Medium
Mr McCallion
Used 18+ times
FREE Resource
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
Pyhton

Quiz
•
9th - 10th Grade
10 questions
Python lists & file operations

Quiz
•
10th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
Lớp 10: Câu hỏi TN củng cố kiến thức

Quiz
•
10th Grade
10 questions
Unit 1 Post Test: Basic Python

Quiz
•
9th - 12th Grade
6 questions
Python Programming Quiz

Quiz
•
9th - 12th Grade
11 questions
KIỂU XÂU - PYTHON

Quiz
•
10th Grade
12 questions
Python Basic

Quiz
•
10th Grade
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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade