What is the difference between a one-dimensional and two-dimensional array?
Topic 1: Computational thinking, level 2

Quiz
•
Computers
•
9th Grade
•
Hard
John Rutherford
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A one-dimensional array stores different data types, a two-dimensional array stores the same data type
A one-dimensional array stores the same data type, a two-dimensional array stores different data types
A one-dimensional array is used for sorting, a two-dimensional array is used for searching
A one-dimensional array stores a single row of data, a two-dimensional array stores multiple rows and columns
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which algorithm has a time complexity of O(n^2)?
Bubble sort
Merge sort
Linear search
Binary search
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a record in programming?
To store a sequence of items with the same data type
To store a sequence of items with different data types
To increase memory usage
To reduce readability
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a binary search algorithm do?
It searches for an item in an unsorted array
It compares adjacent elements and swaps them if necessary
It searches for an item in a sorted array by halving the search space
It merges two sorted lists
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the benefit of using constants in code?
To change values during execution
To store values that do not change during execution
To increase memory usage
To reduce readability
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator performs integer division?
/
//
%
**
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a subprogram in programming?
To increase code length
To reuse code
To reduce readability
To slow down execution
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
looping and branching statements in C

Quiz
•
9th Grade
21 questions
Data Structures

Quiz
•
9th - 12th Grade
20 questions
CM Adventure Part 1 - For Loop

Quiz
•
6th - 10th Grade
23 questions
Intro to Algorithms

Quiz
•
9th - 12th Grade
20 questions
Introduction to Python

Quiz
•
7th - 9th Grade
26 questions
N5 Computing Science: Standard Algorithms

Quiz
•
9th Grade
20 questions
CSA Unit 7 Test

Quiz
•
9th Grade
20 questions
AP CSP 1.1.6 - 1.1.9 Vocabulary

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University