AP Computer Science Principlesmediummcq1 pt

Adding 1 to the 4-bit binary number 1111 causes

A.overflow because 16 needs a fifth bit
B.the result 11111 in four bits
C.the value 15
D.an error message from the OS always

Explanation

Core Concept

4 bits cannot hold 16.

Correct Answer

Aoverflow because 16 needs a fifth bit

More Unit 2: Data practice questions

Try a random question →

Practice more AP Computer Science Principles questions with full explanations

Practice Unit 2: Data Questions →