Dina Kim
Quiz von , erstellt am more than 1 year ago

Quiz am D, erstellt von Dina Kim am 23/05/2017.

109
3
0
Keine Merkmale angegeben
Dina Kim
Erstellt von Dina Kim vor etwa 7 Jahre
Schließen

D

Frage 1 von 182

1

Naming convention for variable is followed in company because ____.

Wähle eine oder mehr der folgenden:

  • A. it enhances readability

  • B. it allows to work without conflicts

  • C. it enhances the efficiency

  • D. all of the above

Erklärung

Frage 2 von 182

1

The true and false values represent ____.

Wähle eine oder mehr der folgenden:

  • A. logical data

  • B. numeric data

  • C. character data

  • D. alphanumeric data

Erklärung

Frage 3 von 182

1

Following operator distinguishes equation from expression

Wähle eine oder mehr der folgenden:

  • A. +, -, *, /

  • B. < or >

  • C. Logical operators

  • D. Assignment Operator

Erklärung

Frage 4 von 182

1

Following are called logical operators

Wähle eine oder mehr der folgenden:

  • A. +, -, *, /

  • B. <, >, <=, >=

  • C. AND, OR, NOT

  • D. \, MOD

Erklärung

Frage 5 von 182

1

Evaluate 5*(x+y)-4*y/(z+6) where x = 2, y = 3, and z = 6

Wähle eine oder mehr der folgenden:

  • A. 1

  • B. 24

  • C. 5

  • D. 10

Erklärung

Frage 6 von 182

1

Evaluate a-2>b where a=6, b = 8

Wähle eine oder mehr der folgenden:

  • A. False

  • B. True

  • C. 6

  • D. 7

Erklärung

Frage 7 von 182

1

Evaluate for a = 5, b = 4, c = 3, d = 12 for the equation E = a*b+d/c

Wähle eine oder mehr der folgenden:

  • A. 40

  • B. 24

  • C. 10

  • D. 10.66

Erklärung

Frage 8 von 182

1

Evaluate for the equation e = 5*a\d*(b+1) where a = 5, b = 4, c = 3, d = 12

Wähle eine oder mehr der folgenden:

  • A. 10

  • B. 24

  • C. 0

  • D. 10

Erklärung

Frage 9 von 182

1

The most important reason for including a destructor in a class is:

Wähle eine oder mehr der folgenden:

  • A. To print a message for debugging purposes

  • B. To store information about an object before it goes out of scope

  • C. To free up resources allocated by that class

  • D. To reset the original object's pointer to NULL

  • E. To make your TA happy

Erklärung

Frage 10 von 182

1

Which of the following name does not relate to stacks?

Wähle eine oder mehr der folgenden:

  • A. FIFO lists

  • B. LIFO list

  • C. Piles

  • D. Push-down lists

Erklärung

Frage 11 von 182

1

Which of the following data structure is linear type?

Wähle eine oder mehr der folgenden:

  • A. Strings

  • B. Lists

  • C. Queues

  • D. All of above

Erklärung

Frage 12 von 182

1

An algorithm that calls itself directly or indirectly is known as

Wähle eine oder mehr der folgenden:

  • A. Sub algorithm

  • B. Recursion

  • C. Polish notation

  • D. Traversal algorithm

Erklärung

Frage 13 von 182

1

The help menus or user manuals are the part of ____.

Wähle eine oder mehr der folgenden:

  • A. Program

  • B. Algorithm

  • C. Internal Documentation

  • D. External Documentation

Erklärung

Frage 14 von 182

1

The correctness and appropriateness of ___ solution can be checked very easily.

Wähle eine oder mehr der folgenden:

  • A. algorithmic solution

  • B. heuristic solution

  • C. random solution

  • D. none of these

Erklärung

Frage 15 von 182

1

Memorization is

Wähle eine oder mehr der folgenden:

  • A. To store previous results for future use

  • B. To avoid this unnecessary repetitions by writing down the results of recursive calls and looking them up again if we need them later

  • C. To make the process accurate

  • D. None of the above

Erklärung

Frage 16 von 182

1

The time complexity of linear search is _____.

Wähle eine oder mehr der folgenden:

  • A. O(1)

  • B. O(log(n))

  • C. O(n)

  • D. O(n log(n))

Erklärung

Frage 17 von 182

1

The time complexity of binary search is _____.

Wähle eine oder mehr der folgenden:

  • A. O(1)

  • B. O(log(n))

  • C. O(n)

  • D. O(n log(n))

Erklärung

Frage 18 von 182

1

What is the asymptotic runtime for traversing all nodes in a binary search tree with n nodes and printing them in order?

Wähle eine oder mehr der folgenden:

  • A. O(n log(n))

  • B. O(n)

  • D. O(log(n))

  • E. O(n^2)

Erklärung

Frage 19 von 182

1

The number of nodes in a complete binary tree of height h is

Wähle eine oder mehr der folgenden:

  • A. 2^(h+1) - 1

  • B. 2*(h+1) - 1

  • C. 2*(h+1)

  • D. (h+1)^2 - 1

Erklärung

Frage 20 von 182

1

Divide-and-conquer as breaking the problem into a small number of

Wähle eine oder mehr der folgenden:

  • A. Pivot

  • B. Sieve

  • C. Smaller sub problems

  • D. Selection

Erklärung

Frage 21 von 182

1

The sub problems in Divide and Conquer are considered to be

Wähle eine oder mehr der folgenden:

  • A. Distinct

  • B. Overlapping

  • C. Large size

  • D. Small size

Erklärung

Frage 22 von 182

1

For the sieve technique we solve the problem,

Wähle eine oder mehr der folgenden:

  • A. recursively

  • B. mathematically

  • C. precisely

  • D. accurately

Erklärung

Frage 23 von 182

1

The sieve technique works in ____ as follows

Wähle eine oder mehr der folgenden:

  • A. phases

  • B. numbers

  • C. integers

  • D. routines

Erklärung

Frage 24 von 182

1

The sieve technique is a special case, where the number of sub problems is just

Wähle eine oder mehr der folgenden:

  • A. 5

  • B. many

  • C. 1

  • D. few

Erklärung

Frage 25 von 182

1

The reason for introducing Sieve Technique algorithm is that it illustrates a very important special case of,

Wähle eine oder mehr der folgenden:

  • A. divide-and-conquer

  • B. decrease and conquer

  • C. greedy nature

  • D. 2-dimension Maxima

Erklärung

Frage 26 von 182

1

Sieve Technique applies to problems where we are interested in finding a single item from a larger set of ____

Wähle eine oder mehr der folgenden:

  • A. n items

  • B. phases

  • C. pointers

  • D. constant

Erklärung

Frage 27 von 182

1

In Sieve Technique we do not know which item is of interest

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 28 von 182

1

For the Sieve Technique we take time

Wähle eine oder mehr der folgenden:

  • A. T(nk)

  • B. T(n / 3)

  • C. n^2

  • D. n/3

Erklärung

Frage 29 von 182

1

How many passes are required to sort a file of size n by bubble sort method?

Wähle eine oder mehr der folgenden:

  • A. N2

  • B. N

  • C. N-1

  • D. N/2

Erklärung

Frage 30 von 182

1

The worst-case time complexity of Bubble Sort is ____.

Wähle eine oder mehr der folgenden:

  • A. O(n2)

  • B. O(log n)

  • C. O(n)

  • D. O(n log(n))

Erklärung

Frage 31 von 182

1

Which of the following sorting procedures is the slowest?

Wähle eine oder mehr der folgenden:

  • A. Quick sort

  • B. Heap sort

  • C. Shell sort

  • D. Bubble sort

Erklärung

Frage 32 von 182

1

For i = 1 to n-1 do --> For j = 1 to n-1-i do --> If (a[j+1] < a[j]) then swap a[j] and a[j+1]. Given code is for

Wähle eine oder mehr der folgenden:

  • A. Bubble sort

  • B. Insertion sort

  • C. Quick Sort

  • D. Selection Sort

Erklärung

Frage 33 von 182

1

How many number of comparisons are required in insertion sort to sort a file if the file is sorted in reverse order?

Wähle eine oder mehr der folgenden:

  • A. N2

  • B. N

  • C. N-1

  • D. N/2

Erklärung

Frage 34 von 182

1

How many number of comparisons are required in insertion sort to sort a file if the file is already sorted?

Wähle eine oder mehr der folgenden:

  • A. N2

  • B. N

  • C. N-1

  • D. N/2

Erklärung

Frage 35 von 182

1

Which of the following sorting methods would be most suitable for sorting a list which is almost sorted?

Wähle eine oder mehr der folgenden:

  • A. Bubble Sort

  • B. Insertion Sort

  • C. Selection Sort

  • D. Quick Sort

Erklärung

Frage 36 von 182

1

!!!
Suppose we are sorting an array of eight integers using some quadratic sorting algorithm. After four iterations of the algorithm's main loop, the array elements are ordered as shown here: 2 4 5 7 8 1 3 6

Wähle eine oder mehr der folgenden:

  • A. Insertion sort

  • B. Selection sort

  • C. Either of a and b

  • D. None of the above

Erklärung

Frage 37 von 182

1

The running time of insertion sort is

Wähle eine oder mehr der folgenden:

  • A. O(n^2)

  • B. O(n)

  • C. O(log(n))

  • D. O(n log(n))

Erklärung

Frage 38 von 182

1

A sort which compares adjacent elements in a list and switches where necessary is ____.

Wähle eine oder mehr der folgenden:

  • A. insertion sort

  • B. heap sort

  • C. quick sort

  • D. bubble sort

Erklärung

Frage 39 von 182

1

A sort which iteratively passes through a list to exchange the first element with any element less than it and then repeats with a new first element is called

Wähle eine oder mehr der folgenden:

  • A. insertion sort

  • B. selection sort

  • C. heap sort

  • D. quick sort

Erklärung

Frage 40 von 182

1

The way a card game player arranges his cards as he picks them one by one can be compared to

Wähle eine oder mehr der folgenden:

  • A. Quick sort

  • B. Merge sort

  • C. Insertion sort

  • D. Bubble sort

Erklärung

Frage 41 von 182

1

Which among the following is the best when the list is already sorted?

Wähle eine oder mehr der folgenden:

  • A. Insertion sort

  • B. Bubble sort

  • C. Merge sort

  • D. Selection sort

Erklärung

Frage 42 von 182

1

As part of the maintenance work, you are entrusted with the work of rearranging the library books in a shelf in proper order, at the end of each day. The ideal choice will be

Wähle eine oder mehr der folgenden:

  • A. Bubble sort

  • B. Insertion sort

  • C. Selection sort

  • D. Merge sort

Erklärung

Frage 43 von 182

1

When is insertion sort a good choice for sorting an array?

Wähle eine oder mehr der folgenden:

  • A. Each component of the array requires a large amount of memory.

  • B. The processor speed is fast.

  • C. Each component of the array requires a small amount of memory.

  • D. The array has only a few items out of place.

Erklärung

Frage 44 von 182

1

Suppose we are sorting an array of ten integers using a some quadratic sorting algorithm. After four iterations of the algorithm's main loop, the array elements are ordered as shown here: 1 2 3 4 5 0 6 7 8 9. Which statement is correct? (Note: Our selection sort picks largest items first)

Wähle eine oder mehr der folgenden:

  • A. The algorithm might be either selection sort or insertion sort.

  • B. The algorithm is neither selection sort nor insertion sort.

  • C. The algorithm might be selection sort, but could not be insertion sort.

  • D. The algorithm might be insertion sort, but could not be selection sort.

Erklärung

Frage 45 von 182

1

A list of n strings, each of length n, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is

Wähle eine oder mehr der folgenden:

  • A. O (n log(n))

  • B. O (n^2 log(n))

  • C. O (n^2 + log(n))

  • D. O (n^2)

Erklärung

Frage 46 von 182

1

The worst-case time complexity of Merge Sort is ____.

Wähle eine oder mehr der folgenden:

  • A. O(n^2)

  • B. O(log n)

  • C. O(n)

  • D. O(n log(n))

Erklärung

Frage 47 von 182

1

Suppose we need to sort a list of employee records in ascending order, using the social security number (a 9-digit number) as the key (i.e., sort the records by social security number). If we need to guarantee that the running time will be no worse than n*log(n), which sorting methods could we use?

Wähle eine oder mehr der folgenden:

  • A. mergesort

  • B. quicksort

  • C. insertion sort

  • D. Either mergesort or quicksort

  • E. None of these sorting algorithms guarantee a worst-case performance of n log n or better

Erklärung

Frage 48 von 182

1

How much time merge sort takes for an array of numbers?

Wähle eine oder mehr der folgenden:

  • A. T(n^2)

  • B. T(n)

  • C. T(log n)

  • D. T(n log(n))

Erklärung

Frage 49 von 182

1

Merge sort makes two recursive calls. Which statement is true after these recursive calls finish, but before the merge step?

Wähle eine oder mehr der folgenden:

  • A. The array elements form a heap.

  • B. None of the above.

  • C. Elements in each half of the array are sorted amongst themselves.

  • D. Elements in the first half of the array are less than or equal to elements in the second half of the array.

Erklärung

Frage 50 von 182

1

What is the worst-case time for merge sort to sort an array of n elements?

Wähle eine oder mehr der folgenden:

  • A. O(n)

  • B. O(n log(n))

  • C. O(log(n))

  • D. O(n)

Erklärung

Frage 51 von 182

1

In quick sort, the number of partitions into which the file of size n is divided by a selected record is

Wähle eine oder mehr der folgenden:

  • A. n

  • B. n - 1

  • C. 2

  • D. n/2

Erklärung

Frage 52 von 182

1

The worst-case time complexity of Quick Sort is ____.

Wähle eine oder mehr der folgenden:

  • A. O(n^2)

  • B. O(log(n))

  • C. O(n)

  • D. O(n log(n))

Erklärung

Frage 53 von 182

1

The algorithm like Quick sort does not require extra memory for carrying out the sorting procedure. This technique is called ____.

Wähle eine oder mehr der folgenden:

  • A. in-place

  • B. stable

  • C. unstable

  • D. in-partition

Erklärung

Frage 54 von 182

1

In quick sort, the number of partitions into which the file of size n is divided by a selected record is

Wähle eine oder mehr der folgenden:

  • A. n

  • B. n - 1

  • C. 2

  • D. None of the above

Erklärung

Frage 55 von 182

1

The total number of comparisons made in quick sort for sorting a file of size n, is

Wähle eine oder mehr der folgenden:

  • A. O(n log(n))

  • B. O(n^2)

  • C. n(log(n))

  • D. None of the above

Erklärung

Frage 56 von 182

1

Quick sort efficiency can be improved by adopting

Wähle eine oder mehr der folgenden:

  • A. non-recursive method

  • B. insertion method

  • C. tree search method

  • D. None of the above

Erklärung

Frage 57 von 182

1

For the improvement of efficiency of quick sort the pivot can be

Wähle eine oder mehr der folgenden:

  • A. the first element

  • B. the mean element

  • C. the last element

  • D. None of the above

Erklärung

Frage 58 von 182

1

Quick sort is the fastest available method of sorting because of

Wähle eine oder mehr der folgenden:

  • A. low over head

  • B. O(n log(n)) comparisons

  • C. low overhead and also O(n log(n)) comparisons

  • D. None of the above

Erklärung

Frage 59 von 182

1

Quick sort is

Wähle eine oder mehr der folgenden:

  • A. Stable & in place

  • B. Not stable but in place

  • C. Stable but not in place

  • D. Some time stable & some times in place

Erklärung

Frage 60 von 182

1

One example of in place but not stable algorithm is

Wähle eine oder mehr der folgenden:

  • A. Merger Sort

  • B. Quick Sort

  • C. Continuation Sort

  • D. Bubble Sort

Erklärung

Frage 61 von 182

1

In Quick Sort Constants hidden in T(n log n) are

Wähle eine oder mehr der folgenden:

  • A. Large

  • B. Medium

  • C. Small

  • D. Not Known

Erklärung

Frage 62 von 182

1

The running time of quick sort depends heavily on the selection of

Wähle eine oder mehr der folgenden:

  • A. No of inputs

  • B. Arrangement of elements in array

  • C. Size o elements

  • D. Pivot elements

Erklärung

Frage 63 von 182

1

!!!!!!
Here is an array which has just been partitioned by the first step of quick sort: 3, 0, 2, 1, 5, 4, 7, 9, 8. Which of these elements could be the pivot?

Wähle eine oder mehr der folgenden:

  • A. 2

  • B. 7

  • C. 0

  • D. 5

Erklärung

Frage 64 von 182

1

Quick sort is solved using

Wähle eine oder mehr der folgenden:

  • A. Divide and conquer

  • B. Greedy Programming

  • C. Dynamic Programming

  • D. Branch and bound

Erklärung

Frage 65 von 182

1

The worst-case time complexity of Selection Exchange Sort is ____.

Wähle eine oder mehr der folgenden:

  • A. O(n^2)

  • B. O(log n)

  • C. O(n)

  • D. O(n log(n))

Erklärung

Frage 66 von 182

1

Straight selection sort is basically a method of repeated

Wähle eine oder mehr der folgenden:

  • A. interchange

  • B. searching

  • C. position adjustment

  • D. None of the above

Erklärung

Frage 67 von 182

1

Number of selections required to sort a file of size N by straight selection requires

Wähle eine oder mehr der folgenden:

  • A. n-1

  • B. log(n)

  • C. O(n^2)

  • D. None of the above

Erklärung

Frage 68 von 182

1

For sorting a file of size n by straight selection sort, the number of comparisons made in the first pass is

Wähle eine oder mehr der folgenden:

  • A. n

  • B. n - 1

  • C. n(n - 1)/2

  • D. None of the above

Erklärung

Frage 69 von 182

1

""
In the analysis of Selection algorithm, we eliminate a constant fraction of the array with each phase; we get the convergent ____ series in the analysis

Wähle eine oder mehr der folgenden:

  • A. linear

  • B. arithmetic

  • C. geometric

  • D. exponent

Erklärung

Frage 70 von 182

1

??
In the analysis of Selection algorithm, we make a number of passes, in fact it could be as many as,

Wähle eine oder mehr der folgenden:

  • A. T(n)

  • B. T(n/2)

  • C. log n

  • D. n/2 + n/4

Erklärung

Frage 71 von 182

1

??
Analysis of Selection algorithm ends up with

Wähle eine oder mehr der folgenden:

  • A. T(n)

  • B. T(1/1 + n)

  • C. T(n/2)

  • D. T(n/2 + n)

Erklärung

Frage 72 von 182

1

The analysis of Selection algorithm shows the total running time is indeed ____ in n,

Wähle eine oder mehr der folgenden:

  • A. arithmetic

  • B. geometric

  • C. linear

  • D. orthogonal

Erklärung

Frage 73 von 182

1

How many elements do we eliminate in each time for the Analysis of Selection algorithm?

Wähle eine oder mehr der folgenden:

  • A. n/2 elements

  • B. n/2 + n elements

  • C. n/4 elements

  • D. 2n elements

Erklärung

Frage 74 von 182

1

In a selection sort of n elements, how many times is the swap function called in the complete execution of the algorithm?

Wähle eine oder mehr der folgenden:

  • A. 1

  • B. n-1

  • C. n log(n)

  • D. n^2

Erklärung

Frage 75 von 182

1

Selection sort and quick sort both fall into the same category of sorting algorithms. What is this category?

Wähle eine oder mehr der folgenden:

  • A. Interchange sorts

  • B. Average time is quadratic.

  • C. O(n log n) sorts

  • D. Divide-and-conquer sorts

Erklärung

Frage 76 von 182

1

Slow sorting algorithms run in

Wähle eine oder mehr der folgenden:

  • A. T(n^2)

  • B. T(n)

  • C. T(log(n))

Erklärung

Frage 77 von 182

1

A sort technique is said to be stable when the original relative order of records with equal keys are retained after sorting.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 78 von 182

1

The three factors contributing to the sort efficiency considerations are the efficiency in coding, machine run time and the space requirement for running the procedure.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 79 von 182

1

The correct order of the efficiency of the following sorting algorithms according to their overall running time comparison is

Wähle eine oder mehr der folgenden:

  • A. Insertion > Selection > Bubble

  • B. Insertion > Bubble > Selection

  • C. Selection > Bubble > Insertion

  • D. Bubble > Selection > Insertion

Erklärung

Frage 80 von 182

1

In which order we can sort?

Wähle eine oder mehr der folgenden:

  • A. increasing order only

  • B. decreasing order only

  • C. increasing order or decreasing order

  • D. both at the same time

Erklärung

Frage 81 von 182

1

Which sorting algorithm is faster

Wähle eine oder mehr der folgenden:

  • A. O(n log(n))

  • B. O(n^2)

  • C. O(n+k)

  • D. O(n^3)

Erklärung

Frage 82 von 182

1

Continuation sort is suitable to sort the elements in range 1 to k

Wähle eine oder mehr der folgenden:

  • A. K is Large

  • B. K is not known

  • C. K may be small or large

  • D. K is small

Erklärung

Frage 83 von 182

1

In stable sorting algorithm.

Wähle eine oder mehr der folgenden:

  • A. If duplicate elements remain in the same relative position after sorting

  • B. One array is used

  • C. More than one arrays are required

  • D. Duplicating elements not handled

Erklärung

Frage 84 von 182

1

Which may be a stable sort?

Wähle eine oder mehr der folgenden:

  • A. Merger

  • B. Insertion

  • C. Both above

  • D. None of the above

Erklärung

Frage 85 von 182

1

An in place sorting algorithm is one that uses ___ arrays for storage

Wähle eine oder mehr der folgenden:

  • A. Two dimensional arrays

  • B. More than one array

  • C. No Additional Array

  • D. None of the above

Erklärung

Frage 86 von 182

1

We do sorting to

Wähle eine oder mehr der folgenden:

  • A. keep elements in random positions

  • B. keep the algorithm run in linear order

  • C. keep the algorithm run in (log n) order

  • D. keep elements in increasing or decreasing order

Erklärung

Frage 87 von 182

1

Sorting is one of the few problems where provable ____ bonds exits on how fast we can sort

Wähle eine oder mehr der folgenden:

  • A. upper

  • B. lower

  • C. average

  • D. log n

Erklärung

Frage 88 von 182

1

In in-place sorting algorithm is one that uses arrays for storage

Wähle eine oder mehr der folgenden:

  • A. An additional array

  • B. No additioanal array

  • C. Both of above may be true according to algorithm

  • D. More than 3 arrays of one dimension

Erklärung

Frage 89 von 182

1

Which may be stable sort

Wähle eine oder mehr der folgenden:

  • A. Bubble sort

  • B. Insertion sort

  • C. Both of above

  • D. None of above

Erklärung

Frage 90 von 182

1

The operation of processing each element in the list is known as

Wähle eine oder mehr der folgenden:

  • A. sorting

  • B. merging

  • C. inserting

  • D. traversal

Erklärung

Frage 91 von 182

1

Other name for directed graph is

Wähle eine oder mehr der folgenden:

  • A. Direct graph

  • B. Digraph

  • C. Dir-graph

Erklärung

Frage 92 von 182

1

Binary trees with threads are called as

Wähle eine oder mehr der folgenden:

  • A. Threaded trees

  • B. Pointer trees

  • C. Special trees

  • D. Special pointer trees

Erklärung

Frage 93 von 182

1

Graph G is ____ if for any pair u, v of nodes in G there is a path from u to v or path from v to u.

Wähle eine oder mehr der folgenden:

  • A. Leterally connected

  • B. Widely Connected

  • C. Unliterally connected

  • D. Literally connected

Erklärung

Frage 94 von 182

1

In Binary trees nodes with no successor are called

Wähle eine oder mehr der folgenden:

  • A. End nodes

  • B. Terminal nodes

  • C. Final nodes

  • D. Last nodes

Erklärung

Frage 95 von 182

1

A connected graph T without any cycles is called

Wähle eine oder mehr der folgenden:

  • A. free graph

  • B. no cycle graph

  • C. non cycle graph

  • D. circular graph

Erklärung

Frage 96 von 182

1

Trees are said ____ if they are similar and have same contents at corresponding nodes.

Wähle eine oder mehr der folgenden:

  • A. Duplicate

  • B. Carbon copy

  • C. Replica

  • D. Copies

Erklärung

Frage 97 von 182

1

Every node N in a binary tree T except the root has a unique parent called the ____ of N.

Wähle eine oder mehr der folgenden:

  • A. Antecedents

  • B. Predecessor

  • C. Forerunner

  • D. Precursor

Erklärung

Frage 98 von 182

1

In a graph if E=(u,v) means

Wähle eine oder mehr der folgenden:

  • A. u is adjacent to v but v is not adjacent to u

  • B. e begins at u and ends at v

  • C. u is processor and v is successor

  • D. both b and c

Erklärung

Frage 99 von 182

1

Sequential representation of binary tree uses

Wähle eine oder mehr der folgenden:

  • A. Array with pointers

  • B. Single linear array

  • C. Two dimentional arrays

  • D. Three dimentional arrays

Erklärung

Frage 100 von 182

1

In a graph if e=[u,v], Then u and v are called

Wähle eine oder mehr der folgenden:

  • A. End points of e

  • B. Adjacent nodes

  • C. Neighbours

  • D. All of the above

Erklärung

Frage 101 von 182

1

TREE[1]=NULL indicates tree is

Wähle eine oder mehr der folgenden:

  • A. Overflow

  • B. Underflow

  • C. Empty

  • D. Full

Erklärung

Frage 102 von 182

1

A binary tree whose every node has either zero or two children is called

Wähle eine oder mehr der folgenden:

  • A. complete binary tree

  • B. binary search tree

  • C. extended binary tree

  • D. data structure

Erklärung

Frage 103 von 182

1

Linked representation of binary tree needs ____ parallel arrays.

Wähle eine oder mehr der folgenden:

  • A. 4

  • B. 2

  • C. 3

  • D. 5

Erklärung

Frage 104 von 182

1

The depth of complete binary tree is given by

Wähle eine oder mehr der folgenden:

  • A. D(n) = n log(n)

  • B. D(n) = n log(n)+1

  • C. D(n) = log(n)

  • D. D(n) = log(n)+1

Erklärung

Frage 105 von 182

1

In a 2-tree, nodes with 0 children are called

Wähle eine oder mehr der folgenden:

  • A. Exterior node

  • B. Outside node

  • C. Outer node

  • D. External node

Erklärung

Frage 106 von 182

1

Which indicates pre-order traversal?

Wähle eine oder mehr der folgenden:

  • A. Left sub-tree, Right sub-tree and root

  • B. Right sub-tree, Left sub-tree and root

  • C. Root, Left sub-tree, Right sub-tree

  • D. Right sub-tree, root, Left sub-tree

Erklärung

Frage 107 von 182

1

In a extended-binary tree nodes with 2 children are called

Wähle eine oder mehr der folgenden:

  • A. Interior node

  • B. Domestic node

  • C. Internal node

  • D. Inner node

Erklärung

Frage 108 von 182

1

A terminal node in a binary tree is called

Wähle eine oder mehr der folgenden:

  • A. Root

  • B. Leaf

  • C. Child

  • D. Branch

Erklärung

Frage 109 von 182

1

The post order traversal of binary tree is DEBFCA. Find out the pre order traversal.

Wähle eine oder mehr der folgenden:

  • A. ABFCDE

  • B. ADBFEC

  • C. ABDECF

  • D. ABDCEF

Erklärung

Frage 110 von 182

1

While converting binary tree into extended binary tree, all the original nodes in binary tree are

Wähle eine oder mehr der folgenden:

  • A. Internal nodes on extended tree

  • B. External nodes on extended tree

  • C. Vanished on extended tree

  • D. Intermediate nodes on extended tree

Erklärung

Frage 111 von 182

1

The in-order traversal of tree will yield a sorted listing of elements of tree in

Wähle eine oder mehr der folgenden:

  • A. binary trees

  • B. binary search trees

  • C. heaps

  • D. binary heaps

Erklärung

Frage 112 von 182

1

In a binary tree, certain null entries are replaced by special pointers which point to nodes higher in the tree for efficiency. These special pointers are called

Wähle eine oder mehr der folgenden:

  • A. Leaf

  • B. Branch

  • C. Path

  • D. Thread

Erklärung

Frage 113 von 182

1

In a head tree

Wähle eine oder mehr der folgenden:

  • A. values in a node is greater than every value every value in left sub tree and smaller than right sub tree.

  • B. values in a node is greater than every value in children of it.

  • C. conditions.

  • D. terms.

Erklärung

Frage 114 von 182

1

The in order traversal of tree will yield a sorted listing of elements of tree in

Wähle eine oder mehr der folgenden:

  • A. Binary trees

  • B. Binary search trees

  • C. Merging

  • D. AVL Trees

Erklärung

Frage 115 von 182

1

In a graph if e=(u,v) means

Wähle eine oder mehr der folgenden:

  • A. u is adjacent to v but v is not adjacent to u.

  • B. e begins at u and ends at v

  • C. u is node and v is an edge.

  • D. both u and v are edges.

Erklärung

Frage 116 von 182

1

A binary tree whose every node has either zero or two children is called

Wähle eine oder mehr der folgenden:

  • A. Complete binary tree

  • B. Binary Search tree

  • C. Extended binary tree

  • D. E2 tree

Erklärung

Frage 117 von 182

1

If every node u in G is adjacent to every other node v in G,A graph is said to be

Wähle eine oder mehr der folgenden:

  • A. isolated

  • B. complete

  • C. finite

  • D. strongly connected

Erklärung

Frage 118 von 182

1

The post order traversal of a binary tree is DEBFCA. Find out the pre order Traversal.

Wähle eine oder mehr der folgenden:

  • A. ABFCDE

  • B. ADBFEC

  • C. ABDECF

  • D. ABDCEF

Erklärung

Frage 119 von 182

1

In a graph if e=[u,v], then u and v are called

Wähle eine oder mehr der folgenden:

  • A. endpoints of e

  • B. adjacent nodes

  • C. neighbours

  • D. all of the above

Erklärung

Frage 120 von 182

1

In-order traversing a tree resulted E A C K F H D B G; the pre-order traversal would return.

Wähle eine oder mehr der folgenden:

  • A. FAEKCDBHG

  • B. FAEKCDHGB

  • C. EAFKHDCBG

  • D. FEAKDCHBG

Erklärung

Frage 121 von 182

1

In linked representation of Binary trees LEFT[k] contains the ____ of at the node N, where k is the location.

Wähle eine oder mehr der folgenden:

  • A. Data

  • B. Location and left child

  • C. Right child address

  • D. Null value

Erklärung

Frage 122 von 182

1

If every node u in G adjacent to every other node v in G, A graph is said to be

Wähle eine oder mehr der folgenden:

  • A. isolated

  • B. complete

  • C. finite

  • D. strongly connected

Erklärung

Frage 123 von 182

1

Three standards ways of traversing a binary tree T with root R

Wähle eine oder mehr der folgenden:

  • A. Prefix, infix, postfix

  • B. Pre-process, in-process, post-process

  • C. Pre-traversal, in-traversal, post-traversal

  • D. Pre-order, in-order, post-order

Erklärung

Frage 124 von 182

1

A graph is said to be ____ if every node u in G is adjacent to every other node v in G.

Wähle eine oder mehr der folgenden:

  • A. Absolute

  • B. Entire

  • C. Inclusive

  • D. Complete

Erklärung

Frage 125 von 182

1

In threaded binary tree ____ points to higher nodes in tree.

Wähle eine oder mehr der folgenden:

  • A. Info

  • B. Root

  • C. Threads

  • D. Child

Erklärung

Frage 126 von 182

1

A graph is said to be ____ if its edges are assigned data.

Wähle eine oder mehr der folgenden:

  • A. Tagged

  • B. Marked

  • C. Weighted

  • D. Sticked

Erklärung

Frage 127 von 182

1

If node N is a terminal node in a binary tree then its

Wähle eine oder mehr der folgenden:

  • A. Right tree is empty

  • B. Left tree is empty

  • C. Both left & right sub trees are empty

  • D. Root node is empty

Erklärung

Frage 128 von 182

1

A directed graph is ____ if there is a path from each vertex to every other vertex in the digraph.

Wähle eine oder mehr der folgenden:

  • A. Weakly connected

  • B. Strongly Connected

  • C. Tightly Connected

  • D. Linearly Connected

Erklärung

Frage 129 von 182

1

In the ____ traversal we process all of a vertex's descendants before we move to an adjacent vertex.

Wähle eine oder mehr der folgenden:

  • A. Depth First

  • B. Breadth First

  • C. With First

  • D. Depth Limited

Erklärung

Frage 130 von 182

1

State True of False. (I) Network is a graph that has weights or costs associated with it. (II) An undirected graph which contains no cycles is called a forest. (III) A graph is said to be complete if there is no edge between every pair of vertices.

Wähle eine oder mehr der folgenden:

  • A. True, False, True

  • B. True, True, False

  • C. True, True, True

  • D. False, True, True

Erklärung

Frage 131 von 182

1

The number of comparisons done by sequential search is

Wähle eine oder mehr der folgenden:

  • A. (N/2)+1

  • B. (N+1)/2

  • C. (N-1)/2

  • D. (N+2)/2

Erklärung

Frage 132 von 182

1

In ____, search start at the beginning of the list and check every element in the list.

Wähle eine oder mehr der folgenden:

  • A. Linear search

  • B. Binary search

  • C. Hash Search

  • D. Binary Tree search

Erklärung

Frage 133 von 182

1

State True or False. (I) Binary search is used for searching in a sorted array. (II) The time complexity of binary search is O(logn).

Wähle eine oder mehr der folgenden:

  • A. True, False

  • B. False, True

  • C. False, False

  • D. True, True

Erklärung

Frage 134 von 182

1

Which of the following is not the internal sort?

Wähle eine oder mehr der folgenden:

  • A. Insertion Sort

  • B. Bubble Sort

  • C. Merge Sort

  • D. Heap Sort

Erklärung

Frage 135 von 182

1

State True or False. (I) An undirected graph which contains no cycles is called forest. (II) A graph is said to be complete if there is an edge between every pair of vertices.

Wähle eine oder mehr der folgenden:

  • A. True, True

  • B. False, True

  • C. False, False

  • D. True, False

Erklärung

Frage 136 von 182

1

A graph is said to be ____ if the vertices can be split into two sets V1 and V2 such there are no edges between two vertices of V1 or two vertices of V2.

Wähle eine oder mehr der folgenden:

  • A. Partite

  • B. Bipartite

  • C. Rooted

  • D. Bisects

Erklärung

Frage 137 von 182

1

In a queue, the initial values of front pointer f rare pointer r should be ____ and ____ respectively.

Wähle eine oder mehr der folgenden:

  • A. 0 and 1

  • B. 0 and -1

  • C. -1 and 0

  • D. 1 and 0

Erklärung

Frage 138 von 182

1

In a circular queue the value of r will be

Wähle eine oder mehr der folgenden:

  • A. r=r+1

  • B. r=(r+1)% [QUEUE_SIZE - 1]

  • C. r=(r+1)% QUEUE_SIZE

  • D. r=(r-1)% QUEUE_SIZE

Erklärung

Frage 139 von 182

1

Which of the following statement is true? (I) Using singly linked lists and circular list, it is not possible to traverse the list backwards. (II) To find the predecessor, it is required to traverse the list from the first node in case of singly linked list.

Wähle eine oder mehr der folgenden:

  • A. I-only

  • B. II-only

  • C. Both I and II

  • D. None of both

Erklärung

Frage 140 von 182

1

The advantage of ____ is that they solve the problem if sequential storage representation. But disadvantage in that is they are sequential lists.

Wähle eine oder mehr der folgenden:

  • A. Lists

  • B. Linked Lists

  • C. Trees

  • D. Queues

Erklärung

Frage 141 von 182

1

What will be the value of top, if there is a size of stack STACK_SIZE is 5

Wähle eine oder mehr der folgenden:

  • A. 5

  • B. 6

  • C. 4

  • D. None

Erklärung

Frage 142 von 182

1

____ is not the operation that can be performed on queue.

Wähle eine oder mehr der folgenden:

  • A. Insertion

  • B. Deletion

  • C. Retrieval

  • D. Traversal

Erklärung

Frage 143 von 182

1

There is an extra element at the head of the list called a

Wähle eine oder mehr der folgenden:

  • A. Antinel

  • B. Sentinel

  • C. List header

  • D. List head

Erklärung

Frage 144 von 182

1

A graph is a collection of nodes, called ____ And line segments called arcs or ____ that connect pair of nodes.

Wähle eine oder mehr der folgenden:

  • A. vertices, edges

  • B. edges, vertices

  • C. vertices, paths

  • D. graph node, edges

Erklärung

Frage 145 von 182

1

A ____ is a graph that has weights of costs associated with its edges.

Wähle eine oder mehr der folgenden:

  • A. Network

  • B. Weighted graph

  • C. Both A and B

  • D. None A and B

Erklärung

Frage 146 von 182

1

In general, the binary search method needs no more than ____ comparisons.

Wähle eine oder mehr der folgenden:

  • A. [log2n]-1

  • B. [logn]+1

  • C. [log2n]

  • D. [log2n]+1

Erklärung

Frage 147 von 182

1

In depth first search algorithm the number of recursive calls we have to make are

Wähle eine oder mehr der folgenden:

  • A. 2

  • B. 1

  • C. 6

  • D. depends on the graph

Erklärung

Frage 148 von 182

1

In a graph if e=(u,v) means

Wähle eine oder mehr der folgenden:

  • A. u is adjacent to v but v is not adjacent to u

  • B. e begins at u and ends at v

  • C. u is processor and v is successor

  • D. both b and c

Erklärung

Frage 149 von 182

1

Heap is defined to be a

Wähle eine oder mehr der folgenden:

  • A. complete binary tree

  • B. binary tree

  • C. tree structure

  • D. None of the above

Erklärung

Frage 150 von 182

1

In a Max heap the largest key is at

Wähle eine oder mehr der folgenden:

  • A. the root

  • B. a leaf

  • C. a node

  • D. None of the above

Erklärung

Frage 151 von 182

1

In heap sort the input is arranged in the form of a

Wähle eine oder mehr der folgenden:

  • A. heap

  • B. tree

  • C. queue

  • D. None of the above

Erklärung

Frage 152 von 182

1

Heap sort is found to be very efficient

Wähle eine oder mehr der folgenden:

  • A. with regard to storage requirement

  • B. in time consumption

  • C. regarding overheads involved

  • D. None of the above

Erklärung

Frage 153 von 182

1

For the heap sort, access to nodes involves simple ____ operations

Wähle eine oder mehr der folgenden:

  • A. arithmetic

  • B. binary

  • C. algebraic

  • D. logarithmic

Erklärung

Frage 154 von 182

1

A (an) ____ is a left-complete binary tree that conforms to the heap order

Wähle eine oder mehr der folgenden:

  • A. heap

  • B. binary tree

  • C. binary search tree

  • D. array

Erklärung

Frage 155 von 182

1

For the heap sort we store the tree nodes in

Wähle eine oder mehr der folgenden:

  • A. level-order traversal

  • B. in-order traversal

  • C. pre-order traversal

  • D. post-order traversal

Erklärung

Frage 156 von 182

1

One of the clever aspects of heaps is that they can be stored in arrays without using any ____.

Wähle eine oder mehr der folgenden:

  • A. pointers

  • B. constants

  • C. variables

  • D. functions

Erklärung

Frage 157 von 182

1

Assuming that the hash function for a table works well, and the size of the hash table is reasonably large compared to the number of items in the table, the expected (average) time needed to find an item in a hash table containing n items is

Wähle eine oder mehr der folgenden:

  • A. O(1)

  • B. O(log(n))

  • C. O(n log(n))

  • D. O(n)

Erklärung

Frage 158 von 182

1

The six-step solution for the problem can be applied to problems (I) with Algorithmic solution or (II) with Heuristic solution

Wähle eine oder mehr der folgenden:

  • A. Only I

  • B. Only II

  • C. Both I and II

  • D. Neither I nor II

Erklärung

Frage 159 von 182

1

____ solution requires reasoning built on knowledge and experience

Wähle eine oder mehr der folgenden:

  • A. Algorithmic Solution

  • B. Heuristic Solution

  • C. Random Solution

  • D. None of these

Erklärung

Frage 160 von 182

1

The branch of computer that deals with heuristic types of problem is called ____.

Wähle eine oder mehr der folgenden:

  • A. system software

  • B. real time software

  • C. artificial intelligence

  • D. none of these

Erklärung

Frage 161 von 182

1

___ is the first step in solving the problem

Wähle eine oder mehr der folgenden:

  • A. Understanding the Problem

  • B. Identify the Problem

  • C. Evaluate the Solution

  • D. None of these

Erklärung

Frage 162 von 182

1

___ is the last step in solving the problem

Wähle eine oder mehr der folgenden:

  • A. Understanding the Problem

  • B. Identify the Problem

  • C. Evaluate the Solution

  • D. None of these

Erklärung

Frage 163 von 182

1

Following is true for understanding of a problem

Wähle eine oder mehr der folgenden:

  • A. Knowing the knowledgebase

  • B. Understanding the subject on which the problem is based

  • C. Communication with the client

  • D. All of the above

Erklärung

Frage 164 von 182

1

While solving the problem with computer the most difficult step is ____.

Wähle eine oder mehr der folgenden:

  • A. describing the problem

  • B. finding out the cost of the software

  • C. writing the computer instructions

  • D. testing the solution

Erklärung

Frage 165 von 182

1

The main measure for efficiency algorithm are ____.

Wähle eine oder mehr der folgenden:

  • A. Processor and Memory

  • B. Size and Capacity

  • C. Data and Space

  • D. Time and Space

Erklärung

Frage 166 von 182

1

What does the algorithmic analysis count?

Wähle eine oder mehr der folgenden:

  • A. The number of arithmetic and the operations that are required to run the program

  • B. The number of lines required by the program

  • C. The number of seconds required by the program to execute

  • D. None of these

Erklärung

Frage 167 von 182

1

!!!
Examples of O(1) algorithms are ____.

Wähle eine oder mehr der folgenden:

  • A. Multiplying two numbers

  • B. Assigning some value to a variable

  • C. Displaying some integer on console

  • D. All of the above

Erklärung

Frage 168 von 182

1

Examples of O(n^2) algorithms are ____.

Wähle eine oder mehr der folgenden:

  • A. Adding of two Matrices

  • B. Initializing all elements of matrix by zero

  • C. Both A and B

  • D. Neither A nor B

Erklärung

Frage 169 von 182

1

The complexity of three algorithms is given as: O(n), O(n^2) and O(n^3). Which should execute slowest for large value of n?

Wähle eine oder mehr der folgenden:

  • A. O(n)

  • B. O(n^2)

  • C. O(n^3)

  • D. All will execute in same time.

Erklärung

Frage 170 von 182

1

There are four algorithms A1, A2, A3, A4 to solve the given problem with the order log(n), nlog(n), log(log(n)), n/log(n). Which is the best algorithm?

Wähle eine oder mehr der folgenden:

  • A. A1: log(n)

  • B. A2: n log(n)

  • C. A3: log(log(n))

  • D. A4: n/log(n)

Erklärung

Frage 171 von 182

1

Express the formula (n-1)*(n-5) in terms of big-Oh notation

Wähle eine oder mehr der folgenden:

  • A. O(1)

  • B. O(log(n))

  • C. O(n)

  • D. O(n^2)

Erklärung

Frage 172 von 182

1

Which of the following case does not exist in complexity theory?

Wähle eine oder mehr der folgenden:

  • A. Best case

  • B. Worst case

  • C. Average case

  • D. Null case

Erklärung

Frage 173 von 182

1

The concept of order Big-Oh is important because

Wähle eine oder mehr der folgenden:

  • A. It can be used to decide the best algorithm that solves a given problem

  • B. It determines the maximum size of a problem that can be solved in a given amount of time

  • C. It is the lower bound of the growth rate of algorithm

  • D. Both A and B

Erklärung

Frage 174 von 182

1

The recurrence relation capturing the optimal execution time of the Towers of Hanoi problem with n discs is

Wähle eine oder mehr der folgenden:

  • A. T(n) = 2T(n - 2) + 2

  • B. T(n) = 2T(n - 1) + n

  • C. T(n) = 2T(n/2) + 1

  • D. T(n) = 2T(n - 1) + 1

Erklärung

Frage 175 von 182

1

The space factor when determining the efficiency of algorithm is measured by

Wähle eine oder mehr der folgenden:

  • A. Counting the maximum memory needed by the algorithm

  • B. Counting the minimum memory needed by the algorithm

  • C. Counting the average memory needed by the algorithm

  • D. Counting the maximum disk space needed by the algorithm

Erklärung

Frage 176 von 182

1

The time factor when determining the efficiency of algorithm is measured by

Wähle eine oder mehr der folgenden:

  • A. Counting microseconds

  • B. Counting the number of key operations

  • C. Counting the number of statements

  • D. Counting the kilobytes of algorithm

Erklärung

Frage 177 von 182

1

A large department store has its own charge card. The policy for a customer to charge an item is that the customer must have a valid charge card and either a balance of less than Rs.500 or a charge of less than Rs.50.

Wähle eine oder mehr der folgenden:

  • A. ChargeCard AND (Balance < 500 OR Amount < 50)

  • B. ChargeCard OR (Balance < 500 AND Amount < 50)

  • C. ChargeCard OR (Balance < 500 OR Amount < 50)

  • D. ChargeCard AND (Balance < 500 AND Amount < 50)

Erklärung

Frage 178 von 182

1

If Total complexity after analysis is (5n^3 + 10n^2 + 100n + 400log(n) + 10), the Big-Oh complexity is

Wähle eine oder mehr der folgenden:

  • A. O(n^2)

  • B. O(n^3)

  • C. O(n log(n))

  • D. O(n^2 log(n))

Erklärung

Frage 179 von 182

1

In Strassen's Multiplication Algorithm the T(n) is

Wähle eine oder mehr der folgenden:

  • A. 7T(n) + bn^2

  • B. 7T(n/2) + bn^2

  • C. 8T(n/2) + bn^2

  • D. 7T(n/2) + bn

Erklärung

Frage 180 von 182

1

T(n) = 4T(n/2) + n, then in Big Oh Notation it is

Wähle eine oder mehr der folgenden:

  • A. O (n2)

  • B. O(4)

  • C. O(n)

  • D. O(log(n))

Erklärung

Frage 181 von 182

1

In T(n) = a * T(n/b) + f(n), "a" refers to

Wähle eine oder mehr der folgenden:

  • A. Size of sub problem

  • B. Number of sub problems

  • C. Size of the problem

  • D. Time to combine solutions

Erklärung

Frage 182 von 182

1

O(f(n)) minus O(f(n)) is equal to

Wähle eine oder mehr der folgenden:

  • A. Zero

  • B. A constant

  • C. f(n)

  • D. O(f(n))

Erklärung