Data Structure and Algorithms (DSA) MCQs with answers Page - 10

Here, you will find a collection of MCQ questions on Data Structure and Algorithms (DSA). Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

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.

A

Admin • 833.24K Points
Coach

Q. main ( ) is an example of

  • (A) library function
  • (B) user defined function
  • (C) header
  • (D) statement

A

Admin • 833.24K Points
Coach

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

Admin • 833.24K Points
Coach

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

Admin • 833.24K Points
Coach

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

A

Admin • 833.24K Points
Coach

Q. A function which calls itself is called as

  • (A) library function
  • (B) directive
  • (C) recursive function
  • (D) none of above

A

Admin • 833.24K Points
Coach

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).

A

Admin • 833.24K Points
Coach

Q. In selection sort of n elements,how many times is the swap function called in the complete execution of the algorithm?

  • (A) 1
  • (B) n-1
  • (C) n(n-1)/2
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. Literal means

  • (A) string
  • (B) string constant
  • (C) character
  • (D) alphabet

A

Admin • 833.24K Points
Coach

Q. Each data item in a record may be a group item composed of sub-items; those items which are indecomposable are called

  • (A) Elementary items
  • (B) Atoms
  • (C) Scalars
  • (D) All of above

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ