
DS Lab 2
Authored by Yasmin Kandil
Information Technology (IT)
University
Used 16+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Web программалау бөліміне қысқаша шолу
Quiz
•
10th Grade - University
15 questions
Desarrollo Web Integral Examen 3 Parcial - Remedial
Quiz
•
University
13 questions
Session 15 + 16 : Function
Quiz
•
University
10 questions
Tin 9 Bài 8. Hàm SUMIF
Quiz
•
9th Grade - University
15 questions
Web Application - PHP Repetition
Quiz
•
University
10 questions
ADBM_Quiz_2_C
Quiz
•
University
12 questions
Aula07 - Matrizes
Quiz
•
University
11 questions
JavaEE-servlets-jsp
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University