
Python Programming Quiz

Quiz
•
Information Technology (IT)
•
9th Grade
•
Medium
Fadi Fadi
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code? nums = [10, 20, 30] for i in range(len(nums)): nums[i] += 5 print(nums)
[15, 25, 35]
[10, 20, 30]
[5, 15, 25]
[15, 20, 30]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? fruits = ["apple", "banana", "cherry"] for fruit in fruits: fruit = fruit.upper() print(fruits)
['APPLE', 'BANANA', 'CHERRY']
['apple', 'banana', 'cherry']
['Apple', 'Banana', 'Cherry']
['FRUIT', 'FRUIT', 'FRUIT']
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement will correctly append 100 to a list scores inside a while loop?
scores += 100
scores.append(100)
scores = append(100)
append(scores, 100)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? nums = [2, 4, 6] total = 0 for num in nums: total += num print(total)
246
6
12
12.0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will this loop run? x = 0 while x < 5: x += 1
4
5
6
Infinite
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line will remove "orange" from the list below? fruits = ["apple", "orange", "banana"]
fruits.delete("orange")
remove.fruits("orange")
fruits.remove("orange")
fruits.pop("orange")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code output? names = ["Ana", "Bob", "Cody"] for i in range(1, len(names)): print(names[i])
Ana, Bob
Bob, Cody
Ana, Cody
Cody, Ana
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Network Configuration Quiz

Quiz
•
9th - 12th Grade
18 questions
Тест по функциям Python (functions 3)

Quiz
•
9th - 12th Grade
10 questions
Basic Cybersecurity Quiz

Quiz
•
9th - 12th Grade
20 questions
Python

Quiz
•
9th - 12th Grade
10 questions
Blockly Programming Quiz [Level 1A]

Quiz
•
7th Grade - University
10 questions
Kuis berpikir komputasional

Quiz
•
9th Grade
15 questions
Python Battle Royale: Who Will Survive in the End?❤️🤔

Quiz
•
9th - 12th Grade
10 questions
Aula 10

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
12 questions
Graphing Inequalities on a Number Line

Quiz
•
9th Grade
20 questions
Cell Organelles

Quiz
•
9th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
15 questions
Two Step Equations

Quiz
•
9th Grade
17 questions
Continents and Oceans

Lesson
•
5th - 9th Grade