
Programming Concepts Quiz
Quiz
•
Information Technology (IT)
•
9th Grade
•
Practice Problem
•
Medium
Adam Adam
Used 1+ 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 main purpose of a for loop?
To store a collection of items.
To repeat a block of code a specific number of times.
To make a decision between two options.
To define a reusable block of code.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly defines a function named start_game?
function start_game()
define start_game():
def start_game():
start_game = function()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the if statement do in Python?
It stores a value in a variable.
It repeats code until a condition is false.
It runs a block of code only if a certain condition is true.
It gets input from the user.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you access the ghost emoji '👻' in this 2D list? game_map = [ ['👽', '👻'], ['👾', '👽'] ]
game_map[2][2]
game_map[1][2]
game_map[1][1]
game_map[2][1]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a 2D list?
A list that can only hold two items.
A list that contains other lists as its elements.
A special type of list that only stores numbers.
A list that cannot be changed after it is created.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you wanted to create a 3x3 tic-tac-toe board, which 2D list is structured correctly?
board = [ "X", "O", "X", "O", "X", "O", "X", "O", "X" ]
board = [ ["X", "O"], ["X", "O"], ["X", "O"] ]
board = [ ["-", "-", "-"], ["-", "-", "-"], ["-", "-", "-"] ]
board = { "row1": ["-", "-", "-"], "row2": ["-", "-", "-"], "row3": ["-", "-", "-"] }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you get the number of rows in a 2D list called data?
size(data)
data.rows()
len(data)
len(data[0])
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
15 questions
Kejahatan di Dunia Maya
Quiz
•
9th Grade
10 questions
ԹԳՀԳ
Quiz
•
7th Grade - University
20 questions
Uji Pengetahuan Informatika
Quiz
•
9th Grade
20 questions
Cloud Service Models & Software Process Models
Quiz
•
2nd Grade - University
10 questions
Posttest Aplikasi Pengolah Kata
Quiz
•
9th - 12th Grade
18 questions
sistem komputer (software)
Quiz
•
9th Grade
10 questions
Мэдээллийн технологи
Quiz
•
8th Grade - University
16 questions
9 Weeks Test
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Meiosis vs mitosis
Quiz
•
9th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Ethos, Pathos, Logos Practice
Quiz
•
9th Grade
15 questions
Two Step Equations
Quiz
•
9th Grade
