J277 - 2.2 - Use of Arrays up to 2D

Quiz
•
Computers
•
10th Grade
•
Hard
R Eveleigh
Used 5+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array in programming?
A data structure that stores elements in a key-value pair format.
A data structure that stores a collection of elements, typically of the same data type, in a contiguous memory location.
A function that performs operations on a set of numbers.
A loop that iterates over a sequence of numbers.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare a one-dimensional array in Python?
`array = [1, 2, 3, 4]`
`array = (1, 2, 3, 4)`
`array = {1, 2, 3, 4}`
`array = <1, 2, 3, 4>`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the third element in a one-dimensional array named `numbers` in Python?
`numbers[2]`
`numbers[3]`
`numbers[1]`
`numbers[0]`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following operation on a 1D array `arr = [5, 10, 15, 20]`: `arr[1] = 25`?
`[5, 10, 15, 20]`
`[5, 25, 15, 20]`
`[5, 10, 25, 20]`
`[25, 10, 15, 20]`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a two-dimensional array?
A list of lists where each element is a list.
A single list with multiple data types.
A dictionary with keys and values.
A set of unique elements.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the element in the second row and third column of a 2D array `matrix` in Python?
`matrix[1][2]`
`matrix[2][3]`
`matrix[3][2]`
`matrix[2][1]`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following operation on a 2D array `matrix = [[1, 2], [3, 4]]`: `matrix[0][1] = 5`?
`[[1, 2], [3, 4]]`
`[[1, 5], [3, 4]]`
`[[5, 2], [3, 4]]`
`[[1, 2], [5, 4]]`
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a 2D array, how would you describe the operation of iterating over each element in the array?
Nested loops where the outer loop iterates over rows and the inner loop iterates over columns.
A single loop iterating over all elements.
A recursive function call.
A function that returns the length of the array.
Similar Resources on Wayground
10 questions
Python массив

Quiz
•
9th - 12th Grade
10 questions
exception

Quiz
•
University
5 questions
VB.NET PBU

Quiz
•
University
5 questions
2 D Arrays

Quiz
•
12th Grade
10 questions
AP CSP-Review Session 1 MCQ Quiz

Quiz
•
10th Grade
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
12 questions
BFM3002 - QUIZ 2

Quiz
•
University - Professi...
12 questions
Arrays Intro

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
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