Python Basics Quiz 1
Quiz
•
Computers
•
8th Grade
•
Medium
Shaun Morrison
Used 5+ times
FREE Resource
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
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
Espacio Opcional 3er Año Pío XII
Quiz
•
10th Grade
16 questions
Algo Quiz
Quiz
•
University
15 questions
[RB3-Ch9] Application of Computers
Quiz
•
8th Grade
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
11 questions
Computer Science (1-9) - Identifying & Preventing Threats
Quiz
•
University
20 questions
Grade 8 Software Quiz
Quiz
•
8th Grade
15 questions
Начала программирования на языке Паскаль
Quiz
•
8th - 11th Grade
15 questions
Kuis 2.4 Informatika (Teknologi Informatika ubah Kehidupan)
Quiz
•
8th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
