
Python Basics
Quiz
•
Information Technology (IT)
•
9th Grade
•
Practice Problem
•
Easy
Philip Donaldson
Used 2+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable named age and assign it the value 15?
a) age = 15
b) var age = 15
c) int age = 15
d) age: 15
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
print("Hello, World!")
Hello, World!
hello, world!
Hello World
hello world
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to get input from the user in Python?
input()
get()
read()
scan()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
name = input("Enter your name: ")
print("Hello, " + name)
Hello, name
Hello, followed by the user’s input
Enter your name: followed by the user’s input
name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add two numbers, a and b, and store the result in a variable sum?
sum = a + b
sum = a - b
sum = a * b
sum = a / b
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression? Python 10 - 3 * 2
4
14
16
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to print the value of a variable x?
print(x)
print x
echo(x)
echo x
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
30 questions
Animasi kelas 6
Quiz
•
6th Grade - University
30 questions
Y9 Python Review
Quiz
•
9th Grade - University
29 questions
ÔN TẬP THI HK1 MÔN TIN HỌC LỚP 5
Quiz
•
5th Grade - University
25 questions
Chapter 4 Mastering Algebraic Expressions
Quiz
•
7th Grade - University
25 questions
AI Hardware
Quiz
•
9th Grade
26 questions
Fun with Computers and Mice
Quiz
•
2nd Grade - University
28 questions
Review Python_G8
Quiz
•
8th Grade - University
27 questions
Understanding Multi-Modal AI
Quiz
•
9th 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
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Meiosis vs mitosis
Quiz
•
9th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Ethos, Pathos, Logos Practice
Quiz
•
9th Grade
15 questions
Two Step Equations
Quiz
•
9th Grade
