
Python Libraries Quiz
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Danilo Perez
Used 3+ times
FREE Resource
Enhance your content in a minute
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to output "Hello, World!" in Python?
echo "Hello, World!"
print("Hello, World!")
printf("Hello, World!")
cout << "Hello, World!"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
`1variable`
`variable_1`
`variable-1`
`variable 1`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python x = 5 y = 10 print(x + y) ```
`5`
`10`
`15`
`50`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
`5`
`6`
`8`
`9`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you start a comment in Python?
`//`
`#`
`/*`
`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python for i in range(3): print(i) ```
`0 1 2`
`1 2 3`
`0 1 2 3`
`1 2 3 4`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to define a function in Python?
`function`
`def`
`func`
`define`
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
25 questions
GCSE Computer Science- 2.2 Programming Techniques
Quiz
•
9th - 11th Grade
25 questions
Algorithms - python (GCSE)
Quiz
•
10th - 12th Grade
26 questions
html
Quiz
•
KG - 12th Grade
27 questions
Adobe Illustrator Quiz Review
Quiz
•
9th - 12th Grade
25 questions
PENILAIAN HARIAN 2 KELAS IX TIK
Quiz
•
9th - 12th Grade
33 questions
Computer Lab Safety
Quiz
•
9th - 12th Grade
24 questions
AGAD: UNIT 4_C# & UNITY
Quiz
•
9th - 12th Grade
25 questions
Network Topology
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
