Python Basics Quiz 1
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
Shaun Morrison
Used 5+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to print "Hello, World!"?
print("Hello, World!")
echo "Hello, World!"
printf("Hello, World!")
System.out.println("Hello, World!")
Answer explanation
The correct way to print "Hello, World!" in Python is using the print() function.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to assign the value 10 to a variable named number in Python?
number = 10
int number = 10
10 = number
number := 10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
Greater
3
5
No output
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following statements correctly uses `elif` in Python?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
High
Low
3
No output
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a comparison operator?
+
=
==
*
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code snippet?
x is less than y
x is equal to y
x is greater than y
No output
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
10 questions
Programming Constructs
Quiz
•
5th - 11th Grade
11 questions
Herramientas WEB
Quiz
•
6th Grade - Professio...
11 questions
HEALTH AND SAFETY 9
Quiz
•
7th - 9th Grade
15 questions
LEDs on micro:bit
Quiz
•
8th Grade
20 questions
Network topologies
Quiz
•
8th Grade - University
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
20 questions
Perangkat lunak quiz
Quiz
•
7th - 9th Grade
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
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
