Gce Model Questions Vol1 2024 Computer Studies Question 12
Practice objective / multiple choice question 12 from the 2024 Gce Model Questions Vol1 Computer Studies examination.
A program reads an 8‑bit binary number B and converts it to a signed decimal integer using two's complement representation, then adds 7 to the result before outputting it. The conversion algorithm is: READ B IF most significant bit of B = 0 THEN D = binary_to_decimal(B) ELSE Invert all bits of B to get B' Add 1 to B' to obtain B'' D = - binary_to_decimal(B'') ENDIF OUTPUT D + 7 If the input binary string is \(B = 10100101\), what integer does the program output?
Answer Options
About This Question
This is Gce Model Questions Vol1 2024 Computer Studies Question 12. It is one of the objective questions from the 2024 Gce Model Questions Vol1 Computer Studies examination.
Difficulty level: Medium .
Master the Exam!
You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.