
Learn core concepts, essential formulas, and attempt practice questions designed on the latest TCS NQT testing patterns.
What is the binary representation of decimal 13?
Correct Answer: A) 1101
Step-by-step Solution: 13/2 = 6 (rem 1), 6/2 = 3 (rem 0), 3/2 = 1 (rem 1), 1/2 = 0 (rem 1). Reading remainders bottom-up yields 1101.
Decimal value of binary 1010 is:
Correct Answer: A) 10
Step-by-step Solution: 1*2^3 + 0*2^2 + 1*2^1 + 0*2^0 = 8 + 0 + 2 + 0 = 10.
Use bitwise shift operators (>> 1) as a high-speed replacement for division by 2.