Q. Which of the following expressions can be used to multiply a given number ‘a’ by 4?

  • (A) a<<2
  • (B) a<<4
  • (C) a>>2
  • (D) a>>4
πŸ’¬ Discuss
βœ… Correct Answer: (B) a<<4
Explanation: let us consider an example wherein a=2. the binary form of 2 is 0010. when we left shift this value by 2, we get 1000, the value of which is 8. hence if we want to multiply a given number ‘a’ by 4, we can use the expression: a<<2.

Explanation by: Mr. Dubey
let us consider an example wherein a=2. the binary form of 2 is 0010. when we left shift this value by 2, we get 1000, the value of which is 8. hence if we want to multiply a given number ‘a’ by 4, we can use the expression: a<<2.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
1032
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate