Programming Quiz

Quiz
•
Computers
•
10th Grade
•
Easy

Dominic James Horsley
Used 4+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of a function in programming?
To store data
To perform a specific task and return a result
To act as a variable
To display text on the screen
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a list in Python?
{1, 2, 3}
(1, 2, 3)
[1, 2, 3]
<1, 2, 3>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you check if a number is even in Python?
if number % 2 == 1:
if number // 2 == 0:
if number % 2 == 0:
if number & 2 == 0:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method would you use to add an element to the end of a list in Python?
add()
insert()
append()
extend()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the return statement in a function?
To print a value to the screen
To end the function and return a value
To call another function
To loop through a list
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string to an integer in Python?
int()
float()
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Python Operators & Expressions

Quiz
•
8th - 11th Grade
10 questions
Python Condition Controlled Iteration

Quiz
•
10th Grade
13 questions
HTML beginners quiz

Quiz
•
9th Grade - Professio...
10 questions
Python Loops Quiz (for loop and while loop)

Quiz
•
10th Grade
10 questions
CSE 1.2.4 Quiz

Quiz
•
9th - 12th Grade
10 questions
Python Dasar

Quiz
•
10th Grade
10 questions
PI Mod 1 quiz

Quiz
•
9th - 12th Grade
18 questions
Foundations of Programming

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade