Q. What is the Bitwise operator used set a particular bit to Zero 0?

  • (A) ~ TILDE Operator
  • (B) ^ Exclusive Operator
  • (C) | OR operator
  • (D) & Operator
πŸ’¬ Discuss
βœ… Correct Answer: (D) & Operator

Q. Which is Bit Toggling operator below.?

  • (A) & AND operator
  • (B) | OR operator
  • (C) ^ Exclusive Operator
  • (D) ~ TILDE operator
πŸ’¬ Discuss
βœ… Correct Answer: (D) ~ TILDE operator

Q. Which is the format specifier used to prefix 0x and print a number in hexadecimal notation?

  • (A) %hx
  • (B) %#x
  • (C) %0x
  • (D) %x
πŸ’¬ Discuss
βœ… Correct Answer: (B) %#x

Q. Left Shift operation is equivalent to?

  • (A) Subtracting 2
  • (B) Adding 2
  • (C) Multiplying by 2
  • (D) Division by 2
πŸ’¬ Discuss
βœ… Correct Answer: (C) Multiplying by 2

Q. Right Shift operation >> is equivalent to ?

  • (A) Subtracting 2
  • (B) Adding 2
  • (C) Division by 2
  • (D) Multiplying by 2
πŸ’¬ Discuss
βœ… Correct Answer: (C) Division by 2

Q. What is the minimum and maximum values in Octal Number System?

  • (A) 1 to 8
  • (B) 0 to 7
  • (C) 2 to 9
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) 0 to 7

Q. What number system is not understood by C language compiler directly?

  • (A) Hex Decimal
  • (B) Binary
  • (C) Octal
  • (D) Decimal
πŸ’¬ Discuss
βœ… Correct Answer: (B) Binary

Q. Choose a correct statement about C Bitwise operators?

  • (A) 0^number = number
  • (B) 1 | number = number
  • (C) 0 & number = 0
  • (D) All the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All the above

Q. What is the need for a File when you can store anything in memory?

  • (A) Memory (RAM) is limited in any computer.
  • (B) A file is stored on Hard Disk which can store Gigabytes of data
  • (C) File stored on Hard Disk is safe even if PC is switched off. But Memory or RAM contents are cleared when PC is off.
  • (D) All the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All the above

Q. What is the keyword used to declare a C file pointer?

  • (A) filefp
  • (B) FILEFP
  • (C) FILE
  • (D) file
πŸ’¬ Discuss
βœ… Correct Answer: (C) FILE