1000+ Algorithms MCQ Questions and Answers - 1

Question: 1

A union consists of a number of elements that

(A) must be structures

(B) occupy the same space in memory

(C) are grouped next to each other in memory

(D) all have the same type

Ans: B

occupy the same space in memory

Question: 2

A(n) _____ is an example of a contiguous structure.

(A) array

(B) data

(C) pointer

(D) linked list

Ans: A

array

Question: 3

A variable that holds the memory address of another object is called an

(A) memory variable

(B) constant

(C) pointer

(D) integer

Ans: C

pointer

Question: 4

Which of the following data structure is non linear type?

(A) stacks

(B) tree

(C) strings

(D) lists

Ans: B

tree

Question: 5

A(n) ______ is an example of a non contiguous data structure.

(A) array

(B) data

(C) pointer

(D) linked list

Ans: D

linked list

Related Questions
Read More Engineering Topics