Unit 1 Post Test: Basic Python
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Daniel Clark
Used 9+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct syntax to display "Hello, World!" in Python?
print("Hello World!")
console.log("Hello, World!")
print("Hello, World!")
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct way to create a variable in Python and assign the value 10 to it?
int x = 10
var x = 10
num = 10
x := 10
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
print(4 + 5 * 2)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is an example of type conversion in Python?
x = str(5)
x = int("5")
x = float("3.14")
All of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following code output?
name = "John"
age = 25
print("My name is " + name + " and I am " + str(age) + " years old.")
My name is John and I am 25 years old.
My name is John and I am age 25.
My name is name and I am age 25 years old.
Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following code output if the user inputs "5"?
<class 'int'>
<class 'str'>
<class 'float'>
Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way to get user input in Python and store it as an integer?
user_input = int(input("Enter a number: "))
user_input = input("Enter a number: ")
user_input = float(input("Enter a number: "))
user_input = eval(input("Enter a number: "))
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
10 questions
MIL March 8, 2023
Quiz
•
12th Grade
15 questions
QUIZ KJD & SISTEM KOMPUTER
Quiz
•
10th Grade
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
10 questions
Câu hỏi trắc nghiệm Tin Học 10 - Bài 10
Quiz
•
10th Grade
10 questions
UNIT 2.4 LOGIC
Quiz
•
10th Grade
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
11 questions
Basic Python Bug Squashing
Quiz
•
9th Grade
15 questions
ONLINE Quiz - Computer Hardware Basics (COMSYS 1)
Quiz
•
12th 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
