COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The first stored programs were written in binary. How many bits did each line of code contain?
A
4
B
8
C
16
D
32
Explanation: 

Detailed explanation-1: -16 bit unsigned numbers The smallest unsigned 16-bit number is 0 and the largest is 65535. For example, 0010, 0001, 1000, 01002 or 0x2184 is 8192+256+128+4 or 8580. Other examples are shown in the following table.

Detailed explanation-2: -16 binary digits can represent 65, 536 different values when taken as a group. It’s convention that we tend either to use 16 bits to represent the integers from 0–65535, or signed integers from-32768 to +32767.

Detailed explanation-3: -Most modern computers can easily handle 16 bits, but it is slower than an 8-bit system. Color images are typically coded in 16 bits.

Detailed explanation-4: -A 16-bit integer can store 216 (or 65, 536) distinct values. In an unsigned representation, these values are the integers between 0 and 65, 535; using two’s complement, possible values range from −32, 768 to 32, 767.

There is 1 question to complete.