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
CỦNG CỐ KIẾN THỨC LỆNH VÀO RA TRONG PYTHON

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

Quiz
•
10th Grade
10 questions
Introduction to Python Programming Quiz

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

Quiz
•
9th Grade - University
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
10 questions
Python Quiz for 10s

Quiz
•
10th Grade
10 questions
KD-1 Dasar pemrograman python

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

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade