
DS Lab 2
Quiz
•
Information Technology (IT)
•
University
•
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
高二資訊課補考題目
Quiz
•
11th Grade - University
12 questions
Review loops
Quiz
•
8th Grade - University
10 questions
Repaso Segundo Parcial - AdC 2024 - K1031
Quiz
•
University
10 questions
Fundamentos de Programación en Python
Quiz
•
6th Grade - University
11 questions
html basics
Quiz
•
8th Grade - University
15 questions
четам ба😎
Quiz
•
University
10 questions
Latsol
Quiz
•
10th Grade - University
13 questions
HTML QUIZ
Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
25 questions
Waves-8th Grade Physical Science
Quiz
•
KG - University
41 questions
Unit 8 Key Terms
Quiz
•
11th Grade - University
10 questions
Product & Quotient Derivative Rules
Quiz
•
University
5 questions
How to Calculate Force - Newton's 2nd Law of Motion
Interactive video
•
10th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
