
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
20 questions
Season 5 #Spaic Python Weekly Quiz

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

Quiz
•
University
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
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 Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University