DSA (Quiz 1) Arrays and Linked Lists

Quiz
•
Information Technology (IT)
•
University
•
Easy
M'Alou Gonzales
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is an array?
A collection of elements identified by an index.
A single element with multiple values.
A data structure with fixed size and dynamic memory.
A collection of nodes with pointers.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following operations is fastest in an array?
Insertion at the beginning
Deletion at the end
Accessing an element by index
Insertion at the end
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is an advantage of using arrays?
Dynamic size
Efficient memory usage
Fast indexing
Easy insertion and deletion
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a singly linked list, each node contains:
Data and a reference to the previous node.
Data and a reference to the next node.
Only data.
Data and references to both previous and next nodes.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the main disadvantage of using arrays?
Slow access to elements
Fixed size
Complex implementation
None of the above
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following code do in an array? int arr[] = {1, 2, 3, 4, 5}; for (int i = 0; i < 5; i++) { cout << arr[i] << " "; }
Adds elements to the array
Removes elements from the array
Displays elements in the array
Searches for an element in the array
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following best describes a circular linked list?
The last node points to the first node.
Each node points to the next node only.
Each node points to the previous node only.
The first node points to the last node.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Bab 4 Jaringan Komputer dan Internet

Quiz
•
11th Grade - University
10 questions
Collections

Quiz
•
University
20 questions
DATA STRUCTUIR Quiz1 (AIML)

Quiz
•
University
20 questions
Quiz Struktur Data

Quiz
•
9th Grade - University
20 questions
Kelas 9 - Halaman 23 (UH Bab 1)

Quiz
•
9th Grade - University
15 questions
BSc Lab Component

Quiz
•
University
12 questions
eXtensible Markup Language

Quiz
•
12th Grade - University
10 questions
Quick Sort

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University