
DS Lab 2
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
Yasmin Kandil
Used 16+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This part of code is a part of which function?
for (int i = mySize; i > pos; i--)
myArray[i] = myArray[i - 1];
insert
erase
display
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the capacity of a static list is fixed, what happens when you try to insert into a full list?
A new array is created
Program throws an error or terminates
The last element is overwritten
Oldest elements are deleted automatically
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a static list?
A resizable sequence of elements
A fixed-size, array-based list
A linked list with dynamic allocation
A circular buffer
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is typically overloaded to output objects using cout?
=
[]
<<
>>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about a constructor?
It can return a value
It must have the same name as the class
It is always private
It destroys objects
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
void print(int n) {
if (n == 0) return;
cout << n << " ";
print(n - 1);
}
What will be the output for print(3)
3 2 1
1 2 3
0 1 2
infinite recursion
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What ensures that recursion terminates?
Global Variable
Base Case
General Case
Function Overloading
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
AverageRound
Quiz
•
University
10 questions
usabilidad - htm - css
Quiz
•
University
15 questions
Day 1 Quiz
Quiz
•
University
13 questions
SOAL TIK KELAS 9
Quiz
•
9th Grade - University
10 questions
Linked List Quiz
Quiz
•
University
8 questions
Fundametal DS Training 2025 - Day 2
Quiz
•
University
15 questions
Chapter 3 : SQL Command
Quiz
•
University
10 questions
Introduction & Basic Program Structure
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
