1000+ Data Structures and Algorithms MCQ Questions & Answers Pdf - 1

Question: 1

Which sort will operate in quadratic time relative to the number of elements in the array (on the average)?

(A) merge sort

(B) heap sort

(C) bubble sort

(D) quick sort

Ans: C

bubble sort

Question: 2

The term push and pop is related to

(A) trees

(B) stacks

(C) lists

(D) array

Ans: B

stacks

Question: 3

A _____ does not keep track of address of every element in the list.

(A) queue

(B) liner array

(C) string

(D) stack

Ans: B

liner array

Question: 4

Enumeration is

(A) a list of operators

(B) a set of legal values possible for a variable

(C) a list of strings

(D) a set of numbers

Ans: B

a set of legal values possible for a variable

Question: 5

A variable can be declared static using the keyword.

(A) auto

(B) register

(C) static

(D) extern

Ans: C

static

Related Questions
Read More Engineering Topics