Data structure MCQ Quiz Hub

Data Structure and Algorithms (DSA) set 1

Choose a topic to test your knowledge and improve your Data structure skills

It exports a set of operations





✅ Correct Answer: 3

A graph is said to be complete if there is no edge between every pair of vertices.





✅ Correct Answer: 2

Space Complexity iii) Is the strategy guaranteed to find the solution when there in one.





✅ Correct Answer: 3

The time complexity of binary search is O(logn).





✅ Correct Answer: 4

A graph is said to be complete if there is an edge between every pair of vertices.





✅ Correct Answer: 1

Nodes that are not root and not leaf are called as internal nodes.





✅ Correct Answer: 3

A node is child node if out degree is one.





✅ Correct Answer: 2

Insertion b) Deletion c) Retrieval d) Traversal





✅ Correct Answer: 4

In strictly binary tree, the out-degree of every node is either o or 2.





✅ Correct Answer: 3

The complexity of the average case of an algorithm is





✅ Correct Answer: 1

The Average case occur in linear search algorithm





✅ Correct Answer: 1

Which of the following case does not exist in complexity theory





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

Computers are used for processing numerical data called _______ data.





✅ Correct Answer: 3

Each programming language contains a ______ set that is used to communicate with the computer.





✅ Correct Answer: 1

Finite sequence S of zero or more characters is called _______.





✅ Correct Answer: 3

String with zero characters is called ________ string.





✅ Correct Answer: 1

A computer which can access an individual byte is called a ________ machine.





✅ Correct Answer: 2

Groups of consecutive elements in a string, such as words, phrases and sentences are called ________.





✅ Correct Answer: 2

The number of characters in a string is called its ______.





✅ Correct Answer: 3

______ operation of word processing involves replacing one string in the text by another.





✅ Correct Answer: 4

_______ is the problem of deciding whether or not a given String pattern P appears in a text T.





✅ Correct Answer: 1

_____ is a linearly ordered sequence of memory cells.





✅ Correct Answer: 1

Each node in a linear list contains an item called _______ which points to the next node in the list.





✅ Correct Answer: 2

____ is a variable whose length may vary during the execution, but the length cannot exceed a maximum values defined before the program is executed.





✅ Correct Answer: 3

In _______ storage, each cell is divided into two parts---- the path stores a single character, while the second part contains the address of the cell containing the next character.





✅ Correct Answer: 2

If string 1 = John, and string 2 = Rivers are merged, the process is called ----





✅ Correct Answer: 3

_____ is a variable whose length may vary during the execution of a program.





✅ Correct Answer: 1

_____ is a structure used to represent the linear relationship between elements by means of sequential memory locations.





✅ Correct Answer: 2

A ______ is a list of a finite number of homogeneous data elements.





✅ Correct Answer: 1

The number of elements n is called the length or _____ of the array.





✅ Correct Answer: 3

The number K in A[K] is called the subscript or the ________.





✅ Correct Answer: 2

Which of the following items are not part of the array declaration?





✅ Correct Answer: 4

Programming languages like FORTRAN and PASCAL allocate memory space for arrays ______





✅ Correct Answer: 2

The process of accessing and processing each element of an array A, exactly once is called _______.





✅ Correct Answer: 3

______ refers to the operations of rearranging the elements of an array A so that they are in increasing order.





✅ Correct Answer: 2

Two dimensional arrays are sometimes called _______ arrays.





✅ Correct Answer: 3

______ is a list in which the order of the items is significant, and the items are not necessarily sorted.





✅ Correct Answer: 3

Representation of a two dimensional as one single column of rows and mapping it sequentially is called _______ representation.





✅ Correct Answer: 1

Matrices with relatively high proportion of zero entries are called ______ matrices.





✅ Correct Answer: 3

_____ arrays are where the elements in the different arrays with the same subscript belongs to the same record.





✅ Correct Answer: 2

____ arrays are where the elements in the different arrays with the same subscript belongs to the same record.





✅ Correct Answer: 2

Records can be stored in an area of memory called _______ memory.





✅ Correct Answer: 1

Records can be stored in an area of memory called _______ memory.





✅ Correct Answer: 1

A matrix in which non-zero entries can only occur on the diagonal or on elements immediately above or below the diagonal, is called ______ matrix.





✅ Correct Answer: 3

Elements of of an arrays are accessed by





✅ Correct Answer: 3

Array is a





✅ Correct Answer: 4

Row -major order in two -dimentional array refers to an arrangement where





✅ Correct Answer: 1

Array is





✅ Correct Answer: 1