
Basic Programming Concepts Quiz
Quiz
•
Information Technology (IT)
•
9th Grade
•
Medium
Adam Adam
Used 3+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code correctly stores a player's score of 100 in a variable?
100 = playerScore
playerScore: 100
playerScore = 100
playerScore = "100"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of an if statement?
To repeat a block of code multiple times.
To make a decision and run code only if a condition is true.
To store a list of items.
To get input from a user.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A player has health = 10. Which if statement correctly checks if the player has run out of health?
if health = 0:
if health > 0:
if health == 0:
if health is 0:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code print? player_age = 13 if player_age >= 13: print("Welcome, teen!") else: print("You are too young.")
You are too young.
Welcome, teen!
It will print nothing.
It will cause an error.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code correctly asks the user for their name and stores it in the user_name variable?
"what is your name?" = user_name
user_name = input("What is your name? ")
input(user_name)
user_name = "What is your name? "
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a for loop best used for?
Running code forever until the program crashes.
Running code as long as a condition is true.
Iterating over a sequence (like a list) a known number of times.
Making a single decision.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed by the following loop? Python for i in range(3): print("Ahoy!")
Ahoy!
Ahoy!
Ahoy!
Ahoy!
Ahoy!
Ahoy!
Ahoy!
Ahoy!
Ahoy!
Ahoy!
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
20 questions
KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar
Quiz
•
7th Grade - University
19 questions
ATS-2 2025 INFORMATIKA VIII
Quiz
•
8th Grade - University
20 questions
8NGS_P
Quiz
•
8th Grade - University
17 questions
Device Identification Quiz
Quiz
•
9th Grade
16 questions
Microsoft Word test 1
Quiz
•
6th Grade - University
10 questions
Quiz Google Sheets
Quiz
•
9th Grade
12 questions
Access use
Quiz
•
9th Grade
10 questions
Understanding Data and Encoding
Quiz
•
6th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
10 questions
Capitalize Countries and Places Quiz
Quiz
•
9th Grade
