Data structures, operators and variables

Quiz
•
Computers
•
9th - 12th Grade
•
Medium

Samuel Markham
Used 9+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in programming?
A constant value
A container for storing data
A reserved keyword
An operator
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a constant in Python?
pi = 3.14159
x = 5
my_string = "Hello, World!"
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a data structure in programming?
To define constants
To store and organise data efficiently
To perform mathematical calculations
To write comments in code
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which data structure is used to store an ordered collection of individual items?
List
Set
Dictionary
Tuple
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is used for storing key-value pairs in Python?
List
Set
Dictionary
Tuple
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array in data structure theory?
A data structure that stores multiple items of the same type
A data structure that stores multiple items of different data types
A data structure that only stores numeric data types
A data structure only used in Python
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which operator is used for exponentiation?
+
-
*
**
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Lists

Quiz
•
8th - 12th Grade
10 questions
Kuizi 2 - Python

Quiz
•
10th Grade - University
15 questions
Exploring Python Fundamentals

Quiz
•
12th Grade - University
9 questions
T-Level DPDD: Maintainable Code Quiz

Quiz
•
11th Grade
15 questions
Basic Programming Concepts

Quiz
•
9th Grade
10 questions
Python Basics: Operators and Variables

Quiz
•
10th Grade
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
15 questions
2D Arrays

Quiz
•
9th - 12th 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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade