Pregunta 1
Respuesta
-
Pieces of information stored in a computer and manipulated by programs.
-
Organized representations that aim to show relationships among data items.
-
Organized list of data items where you can anytime take out and take in.
-
Data that contains a pointer to an instance of itself
Pregunta 2
Pregunta
When describing for (PSEUDOCODE) Process and Initialize, What keywords will you be needing?
Respuesta
-
DESCRIBE and INIT
-
PROMPT and SET
-
GET and CALCULATE
-
READ and SET
Pregunta 3
Pregunta
[blank_start]Data structures[blank_end] are organized representations that aim to show relationships among data items
Pregunta 4
Pregunta
Which of the following statement is false?
Respuesta
-
Arrays are dense lists and static data structure
-
Pointers store the next data element of a list
-
data elements in linked list need not be stored in adjecent space in memory
-
linked lists are collection of the nodes that contain information part and next pointer
Pregunta 5
Pregunta
A variable P is called pointer if?
Respuesta
-
P contains the address of an element in DATA.
-
P points to the address of first element in DATA
-
P can store only memory addresses
-
P contain the DATA and the address of DATA
Pregunta 6
Pregunta
Two dimensional arrays are also called
Pregunta 7
Pregunta
_________ is a technique that solves a problem by solving a smaller problem of the same type
Respuesta
-
For Loop
-
Array
-
Recursion
-
Sorting
Pregunta 8
Pregunta
Recursive Data Structure: a?
Respuesta
-
Data structure that contains a pointer to an instance of itself
-
Procedure that calls itself
-
Technique that solves a problem by solving a smaller problem of the same type
-
Pieces of information stored in a computer and manipulated by programs.
Pregunta 9
Pregunta
Declaring Pointer :
int _ Pointer;
what should go before the word Pointer?
Pregunta 10
Pregunta
[blank_start]Recursive call[blank_end] - must change at least one of the parameters and make progress towards the base case
Pregunta 11
Pregunta
What kind of Sorting is this?
Respuesta
-
Quick Sort
-
Merge Sort
-
Insertion Sort
-
Selection Sort
-
Bucket Sort
-
Bubble Sort
Pregunta 12
Pregunta
What kind of Sorting is this?
Respuesta
-
Selection Sort
-
Quick Sort
-
Merge Sort
-
Insertion Sort
-
Bucket Sort
-
Bubble Sort
Pregunta 13
Pregunta
What kind of Sorting is this?
Respuesta
-
Merge Sort
-
Selection Sort
-
Bucket Sort
-
Bubble Sort
-
Quick Sort
-
Insertion Sort
Pregunta 14
Pregunta
What kind of Sorting is this?
Respuesta
-
Bubble Sort
-
Insertion
-
Selection Sort
-
Bucket Sort
-
Quick Sort
-
Merge Sort
Pregunta 15
Pregunta
What kind of Sorting is this?
Respuesta
-
Selection Sort
-
Merge Sort
-
Insertion
-
Bucket Sort
-
Bubble Sort
-
Quick Sort
Pregunta 16
Pregunta
What kind of Sorting is this?
Respuesta
-
Selection Sort
-
Bucket Sort
-
Merge Sort
-
Insertion
-
Quick SOrt
-
Bubble Sort
Pregunta 17
Pregunta
A [blank_start]pointer variable[blank_end] is a variable whose value is a memory address. Since this address
actually “points” to some memory location, it is referred to as a pointer.
Pregunta 18
Pregunta
First Circle : [blank_start]274[blank_end]
Second Circle : [blank_start]NULL[blank_end]
Pregunta 19
Pregunta
First Circle : [blank_start]274[blank_end]
Second Circle : [blank_start]275[blank_end]
Third Circle : [blank_start]323[blank_end]
Fourth Circle : [blank_start]324[blank_end]
Pregunta 20
Pregunta
[blank_start]Running time[blank_end] of an algorithm is usually a function of the input size
Pregunta 21
Pregunta
Computing the Running Time of an Algorithm
o it is necessary to determine how many times a programming statement will be executed during
the entire duration of the program’s execution.
o This is what we will refer to as the frequency count. Then, we determine what type of primitive
operation will be performed.
o It can either be:
An [blank_start]assignment[blank_end] statement
A [blank_start]method[blank_end] call
A [blank_start]conditional[blank_end] statement
A [blank_start]iterative[blank_end] statement
A [blank_start]return[blank_end] from a method/procedure
Respuesta
-
assignment
-
method
-
iterative
-
return
-
conditional
Pregunta 22
Pregunta
The running time will be described using the [blank_start]Big-Oh notation[blank_end].
Pregunta 23
Pregunta
There are various operations on pointers, like, [blank_start]deferencing[blank_end], [blank_start]assignment[blank_end], and [blank_start]comparison[blank_end].
Respuesta
-
deferencing
-
assignment
-
comparison
Pregunta 24
Pregunta
Properties shared in general by algorithms :
o [blank_start]Input[blank_end] – instance values of problem to be solved
o [blank_start]Output[blank_end] – values produced that solves problem
o [blank_start]Definiteness[blank_end] – unambiguous - steps defined precisely
o [blank_start]Effectiveness[blank_end] – Each step performed exactly in finite amount of time
o [blank_start]Finiteness[blank_end] – output after finite number of steps – must terminate
o [blank_start]Correctness[blank_end] – correct output from input
o [blank_start]Generality[blank_end] – applicable to all instances of the problem
Respuesta
-
Input
-
Output
-
Definiteness
-
Effectiveness
-
Finiteness
-
Correctness
-
Generality
Pregunta 25
Pregunta
o When describing input, output, computations, etc, the following terms are often used:
[blank_start]Input[blank_end]: INPUT, READ, GET
[blank_start]Output[blank_end]: PRINT, DISPLAY, SHOW, PROMPT
[blank_start]Compute[blank_end]: COMPUTE, CALCULATE, DETERMINE
[blank_start]Initialize[blank_end]: SET, INIT
[blank_start]Add one[blank_end]: INCREMENT, BUMP
[blank_start]Decisions[blank_end]: TEST, IF/THEN/ELSE, WHILE/DO
Respuesta
-
Input
-
Output
-
Compute
-
Initialize
-
Add one
-
Decisions
Pregunta 26
Pregunta
First Circle :[blank_start]1471[blank_end]
Second Circle :[blank_start]1471[blank_end]
Third Circle : [blank_start]1641[blank_end]
Fourth Circle : [blank_start]1642[blank_end]
Pregunta 27
Pregunta
[blank_start]Insertion sort[blank_end] arranges data in order by “inserting” elements in its proper position.
Pregunta 28
Pregunta
[blank_start]Merge sort[blank_end] can work with nos. with of unlimited duplication and unspecified size.
Pregunta 29
Pregunta
[blank_start]Quick sort[blank_end] is the most efficient sorting algorithm. It starts with choosing a partitioning element called the
pivot. The elements will be divided according to the pivot, one part contains elements that are less than
or equal to the pivot, the other part contains elements that are greater than the pivot.