
Data Structures (Arrays)

Quiz
•
Other
•
University
•
Easy
Nathaniel Mensah
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Data structures are important in computer programming because:
They only store data.
They enable efficient data access and manipulation.
They replace algorithms.
They are not related to software design
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, how do you access the first element of an array named age?
age(1);
age;
age[0];
age;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which syntax demonstrates universal initialisation in C++?
int arr[ ] = { 1, 2, 3, 4, 5 };
int arr[ ] { 1, 2, 3, 4, 5 };
int arr = { 1, 2, 3 };
int arr[ ] = 1, 2, 3, 4, 5 ;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity for searching a value in an array?
O(1).
O(log N).
O(N).
O(N^2).
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a disadvantage of arrays?
They allow random access to elements.
They have good cache locality.
The size cannot be changed once declared.
They represent data items with a single name.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array?
A non-linear data structure.
A data structure with elements stored in separate memory locations.
A collection of elements stored in contiguous memory locations.
A data structure where the last item added is the first one removed.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of the index of an array?
1 to n, where n is the length of the array.
0 to n, where n is the length of the array.
0 to n-1, where n is the length of the array.
1 to the maximum memory size.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Tech event of IT department

Quiz
•
University
20 questions
Quanta

Quiz
•
University
20 questions
CIE-1_DSA:Unit1&Unit2

Quiz
•
University
20 questions
Konsep Struktur Data

Quiz
•
University
10 questions
Array

Quiz
•
University
10 questions
Quis Struktur Data dan Algoritma

Quiz
•
University
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
20 questions
QUIZ WEEK 6

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University