• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Top MCQs on Algorithms | DSA Quiz for Beginners

Question 11

left-shifting an integer “a” with an integer “b” denoted as ‘(a<<b)’ is equivalent to

  • multiplying a with 2^b (2 raised to power b).

  • adding a to b

  • dividing a with 2 raised to power b.

  • None

Question 12

Which bitwise operator can be used to quickly check if a number is even or odd?

  • | Bitwise OR operator

  • & Bitwise AND Operator

  • ^ Bitwise Exclusive OR

  • ~~ Bitwise Negate Operator

Question 13

The left-shift and right-shift operators should not be used for ------numbers.

  • positive

  • real

  • negative

  • None

Question 14

Which searching technique takes O(1) time complexity for searching the data?

  • Binary Search

  • Linear search

  • AVL search tree

  • Hashing

Question 15

In simple chaining, what data structure is used?

  • Singly linked list

  • circular linked list

  • Doubly linked list

  • Binary trees

Question 16

What is the situation known as when a key different than the one required is maintained at the specified location?

  • Collision

  • Hashing

  • Chaining

  • Open Addressing

Question 17

In Hashing techniques, A key can be ......

  • integer

  • String

  • either integer or string

  • none

Question 18

What creates mapping betwwen key and value?

  • collision

  • Key

  • Hash Table

  • Hash function

Question 19

which condition is needed to stop the recursion otherwise infinite loop will occur.

  • Base case

  • Best case

  • worst case

  • None

Question 20

what issue may occur if the base case is not reached or is not defined?

  • Program Crashes

  • stack underflow

  • stack overflow

  • none

There are 30 questions to complete.

Last Updated :
Take a part in the ongoing discussion