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
15 questions
Python_Exam

Quiz
•
6th - 10th Grade
13 questions
Python Functions Quiz

Quiz
•
10th Grade
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
10 questions
Python Math

Quiz
•
1st - 12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
10 questions
Python Revision Tour

Quiz
•
10th Grade
10 questions
Python

Quiz
•
10th - 11th Grade
10 questions
PYTHON (FOR LOOP)

Quiz
•
1st - 10th 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 Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade