
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
10 questions
Network Configuration Quiz
Quiz
•
9th - 12th Grade
20 questions
Lower Elementary Quiz: Introduction to Computers
Quiz
•
2nd Grade - University
10 questions
Asesmen Diagnostik SUMIFS
Quiz
•
8th Grade - University
18 questions
Тест по функциям Python (functions 3)
Quiz
•
9th - 12th Grade
10 questions
Basic Cybersecurity Quiz
Quiz
•
9th - 12th Grade
10 questions
Тест по спискам в Python
Quiz
•
9th Grade
15 questions
Intro to Word Processing
Quiz
•
9th Grade - University
20 questions
Python
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
Discover more resources for Information Technology (IT)
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
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
20 questions
Exponent Rules Review
Quiz
•
8th - 9th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
