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
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
13 questions
Python Level 1 Quiz

Quiz
•
10th - 11th Grade
10 questions
python quiz

Quiz
•
6th Grade - Professio...
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
13 questions
Python Recap Challenge

Quiz
•
10th Grade
12 questions
Основи Python

Quiz
•
7th - 12th Grade
10 questions
Викторина по Python (Урок 1-2)

Quiz
•
5th - 11th Grade
12 questions
python

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade