GATE Previous Year Data Structure Questions Pdf - 1

Question: 1

The general form of do-while statement is

(A) do statement while statement;

(B) do statement while (expression);

(C) do while expression

(D) do expression while statement

Ans: B

do statement while (expression);

Question: 2

The complement operator is represented by the symbol

(A) #

(B) ˜

(C) !

(D) ∧

Ans: B

˜

Question: 3

Which data structure allows deleting data elements from and inserting at rear?

(A) binary search tree

(B) stacks

(C) queues

(D) dequeues

Ans: C

queues

Question: 4

typedef is a

(A) an operator in the C language

(B) a predefined function in the C language

(C) keyword in the C language

(D) both a and b

Ans: C

keyword in the C language

Question: 5

The symbol OL represents the

(A) last statement in a loop

(B) long type of data

(C) null character

(D) i-value of an expression

Ans: B

long type of data

Related Questions
Read More Engineering Topics