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

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. How many bits are absolutely necessary to store an ASCII character ?

  • (A) 7
  • (B) 8
  • (C) 15
  • (D) 16

A

Admin • 833.24K Points
Coach

Q. The result of 0001 1010 / 0001 0101 is

  • (A) 0001 1111
  • (B) 1111 0001
  • (C) 0001 0000
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. The result of 0001 1010 & 0000 1000 is ___

  • (A) 0001 1111
  • (B) 1111 0001
  • (C) 0000 1000
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. The result of 0001 1010 ~ 0100 0011 is

  • (A) 0101 1001
  • (B) 1010 0100
  • (C) 0000 0010
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. The result of 0001 1010^0001 0000 is____

  • (A) 0101 1001
  • (B) 1010 0100
  • (C) 0000 0010
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. The result of 0001 1010 << 2 is____

  • (A) 0101 1100
  • (B) 0110 1000
  • (C) 0001 1110
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. The result of 0001 1010 >>2 is____

  • (A) 0101 1100
  • (B) 0010 1110
  • (C) 0000 0110
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. The most significant bit is lost in following operation

  • (A) <<
  • (B) >>
  • (C) &
  • (D) /

A

Admin • 833.24K Points
Coach

Q. The result of i)true AND false II)false or false

  • (A) i)is true and ii)is true
  • (B) i)is true and ii)is false
  • (C) i)is false and ii)is true
  • (D) i)is false and ii)is false

A

Admin • 833.24K Points
Coach

Q. What will be output if you will compile and execute the following c code? #include<stdio.h>
int main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr); return 0;
}

  • (A) 320
  • (B) 1
  • (C) 64
  • (D) none of the above