What is the output of the following program segment?
10
Oops!
Check
Okay!
Check
baam
Lose 10 points!
Oops!
magnet
Take 20 points!
Okay!
gift
Win 15 points!
Okay!
baam
Lose 10 points!
Oops!
15
A ________ is blue print that defines certain characteristics and behavior. It is simply a representation of different types of objects.
Class
Oops!
Check
Okay!
Check
15
When is Binary Search preferred over Linear Search?
Sorted Array
Oops!
Check
Okay!
Check
10
If the sequence of operations - push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values
2,2,1,1,2
Oops!
Check
Okay!
Check
10
In C++ what the following command does: delete a;
Free memory allocated for the variable
Oops!
Check
Okay!
Check
15
Specify whether the statement below is valid or invalid.
Invalid
Oops!
Check
Okay!
Check
10
Make the following function return the following number in the fibonacci sequence
fibo(n-1)+fibo(n-2)
Oops!
Check
Okay!
Check
25
Given the following Banana class in C++. Create a new Banana object properly
Banana sample("yellow");
Oops!
Check
Okay!
Check
15
The following lists represent 3 passes of a sorting algorithm. Which algorithm is being used to sort the list?
Bubble Sort
Oops!
Check
Okay!
Check
10
A function that changes the values of an object's attributes in a Class is also known as a:
Setter
Oops!
Check
Okay!
Check
5
If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?
ABCD
Oops!
Check
Okay!
Check
5
Which sorting algorithm uses a pivot point?
Quick sort
Oops!
Check
Okay!
Check
10
What advantage does a linked list have over an array?