
Python Programming Quiz
Authored by DIVYA VISAKH
Computers
8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Python expression?
x = 10 +
y = (5 * 3) / 2
print("Hello)
if 5 > 3 print("Yes")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will L.count(5) return for L = [1, 5, 7, 5, 2, 5]?
2
3
5
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you reverse a list L = [1, 2, 3, 4]?
L[::-1]
reverse(L)
L = L.reversed()
L.append(L.reverse())
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement correctly defines a function?
def func():
define func():
function func():
def function():
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an immutable data type?
List
Set
Tuple
Dictionary
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print("Python"[::-1])?
nohtyP
Python
Pytho
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does open('file.txt', 'a') do?
Reads a file
Writes to a file
Appends to a file
Overwrites a file
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
Ulangan Harian Informatika
Quiz
•
8th Grade
25 questions
Bilişim Teknolojileri
Quiz
•
5th Grade - Professio...
26 questions
ICT Spreadsheet Essentials - Lesson 3
Quiz
•
7th - 8th Grade
25 questions
1.1 - Computer Systems (Revision)
Quiz
•
8th - 10th Grade
25 questions
Understanding Computer Components
Quiz
•
6th Grade - University
29 questions
Internet Terms Grade 7 & 8
Quiz
•
6th - 8th Grade
25 questions
1st Semester Review Questions 1-25
Quiz
•
7th - 8th Grade
25 questions
Foundations of Engineering & Technology Ch.6, 7, & 8
Quiz
•
7th - 8th 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