
8525 Python Questions
Authored by Colin Smethurst
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct data type for storing a person's age in Python?
String
Integer
Float
Boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
1stVariable
first_variable
first-variable
first variable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? ```python x = 5 y = 10 print(x + y) ```
15
510
5
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a function in Python?
def my_function():
my_function = ()
my_function[]
my_function{}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'return' statement in a function?
To print the output
To exit the function
To send back a value from the function
To define a function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to read a file in Python?
file.read()
file.open()
file.write()
file.close()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to open a file named "data.txt" for reading?
open("data.txt", "r")
open("data.txt", "w")
open("data.txt", "a")
open("data.txt", "x")
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
19 questions
Python Year 9 Quiz
Quiz
•
8th - 10th Grade
20 questions
Ulangan Harian 1 kls x 2023
Quiz
•
10th Grade
20 questions
Access Lesson 7
Quiz
•
9th - 12th Grade
20 questions
terstruktur
Quiz
•
10th Grade
21 questions
CPA MS-Office Hotkeys Quiz
Quiz
•
8th Grade - Professio...
20 questions
T6 - ÔN TẬP CUỐI HK2 (22-23) (1)
Quiz
•
9th - 12th Grade
19 questions
GCSE Database Theory
Quiz
•
9th - 11th Grade
20 questions
ตอบปัญหาคอมพิวเตอร์st
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade