Top 350+ Solved Data Structure and Algorithms (DSA) MCQ Questions Answer

From 76 to 90 of 305

Q. A global variable is a variable

a. declared in the main ( ) function

b. declared in any function other than the main ( ) function

c. declared outside the body of every function.

d. declared any where in the c program.

  • c. declared outside the body of every function.

Q. main ( ) is an example of

a. library function

b. user defined function

c. header

d. statement

  • a. library function

Q. While incrementing a pointer, its value gets increased by the length of the data type to which it points. This length is called

a. scale factor

b. length factor

c. pointer factor

d. increment factor

  • a. scale factor

Q. a->b is systematically correct if_____

a. a is a npointer to a structure in which b is a field

b. a and b are structure

c. a is a structure and b is a pointer to a structure

d. a is a pointer to a structure and b is a structure

  • a. a is a npointer to a structure in which b is a field

Q. Which of the following best describes sorting ?

a. accessing and processing each record exactly once

b. finding the location of the record with a given key

c. arranging the data (record) in some given order

d. adding a new record to the data structure

  • c. arranging the data (record) in some given order

Q. A function which calls itself is called as

a. library function

b. directive

c. recursive function

d. none of above

  • c. recursive function

Q. Where do we use the operator -> ?

a. to access a member of structure

b. to access member of union

c. to access an array

d. both(a) and(b).

  • d. both(a) and(b).

Q. a->b is systematically correct if_____

a. a is a pointer to a structure in which b is a field

b. a and b are structure

c. a is a structure and b is a pointer to a structure

d. a is a pointer to a structure and b is a structure

  • a. a is a pointer to a structure in which b is a field

Q. Literal means

a. string

b. string constant

c. character

d. alphabet

  • b. string constant

Q. Which of the following statement is false ?

a. Arrays are dense lists and static data structure

b. Data elements in linked list need not be stored in adjacent space in memory

c. Pointers store the next data element of a list

d. Linked lists are collection of the nodes that contain information part and next pointer

  • c. Pointers store the next data element of a list

Q. Binary search algorithm cannot be applied to

a. Sorted binary trees

b. Sorted linear array

c. Pointer array

d. Sorted linked list

  • d. Sorted linked list
Subscribe Now

Get All Updates & News