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.

Gce Model Questions Vol1 2024 Computer Studies Objective / Multiple Choice Medium Difficulty
Question 12 GCE_MODEL_QUESTIONS_VOL1 • 2024 • COMPUTER_STUDIES • objective

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

A. 172
B. -83
Correct Answer C. -84
D. -91
Correct Answer
C
Correct Option:
-84

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.

Unlock Full Access Available for Android & Windows
Chat with Support