Chapter 2: Bits, Data Types, and Operations

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

0xFABC is the hexadecimal representation of the binary string ________.

1111101010111100

110001 is the 6-bit unsigned representation for decimal value of ________.

49

With 16 bits, we can uniquely represent ________ distinct elements.

65536

If A is true, and B is false, the expression NOT(A) OR B is: True, False, Not enough information.

False.

The ________ data type allows the representation of much larger and much smaller values than 2's complement integer representation.

Floating point

(Select all that apply) A floating point representation is comprised of: Fraction, Sign, Decimal Point, Exponent.

Fraction, Sign, Exponent.

The digits 0,1,...9,A,B,C,D,E,F are used in ________ notation.

Hexadecimal

AND and NOT are examples of ________ operators.

Logical

If A is false, the ________ of A is true.

NOT

Using 8 bits, the unsigned integer representation of -13 is

Not possible to represent.

When two positive integers produce a negative result, we know a/an ________ has occurred.

Overflow

Decimal numbers have a ________ of ten.

Radix or Base

A XOR B is true if one of A,B is true and one of A,B is false.

T

Hexadecimal numbers are represented with radix 16.

T

If numbers are to be represented with 10 bits, we can represent more unique numbers if we use an unsigned integer representation than if we use signed integer representations.

T

The 2's complement representation for -2 is 111111111110, if we have 12 bits available to represent signed integers.

T

The floating point data type allows us to represent both much larger and much smaller numbers than is possible with 2's complement integers.

T

The logical NOT function is a unary function, because it has only one source operand.

T

00100100 is the ASCII code for ________.

$

110001 is the 6-bit 2's complement representation for decimal number _______

-15

If the radix is 16, each digit can have a value in the range: 0-9, 1-16, 0-15, 1-15.

0-15.

The operation ADD is: A unary operator because it performs ONE function (ADD), A binary operator because it requires TWO operands, A ternary operator because it requires TWO values to add and produces in addition ONE result.

A binary operator because it requires TWO operands.

What is a "Data type?"

A representation of information for which there are operations in the computer that can operate on the information encoded in that representation.

The ________ is the mechanism inside a computer that actually does the arithmetic and logical operations.

ALU (Arithmetic Logic Unit)

The ________ function produces the value false, unless both sources are true.

AND

Most keys on the keyboard have at least two corresponding ________ codes, depending on whether or not the SHIFT key is also simultaneously depressed.

ASCII

If we add the 2's complement representation of k to the 2's complement representation of -k, the result will be: 0, All 1's, All 0's plus a carry, All 1's plus a carry.

All 0's, plus a carry.

The decimal digit 5 can be represented as a bit string: 0000000000000101, 00000101, 110101, All of the above.

All of the above.

For the value of A OR B to be true: Exactly one of the two values A, B is true, Neither of the two values A, B is true, At least one of the two values A, B is true, Both of the values A,B must be true.

At least one of the two values A, B is true.

An operator requiring two source operands is called a ________ operator.

Binary

We use the term ________ as a shortened form of binary digit.

Bit

In 2's complement arithmetic, an overflow occurs if: Two positive numbers produce a negative result, Two negative numbers produce a positive result, Both a and b, Neither a nor b.

Both a and b.

A ________ is a representation of information, for which an operator exists that can operator on that representation.

Data Type

With 12 bits, we can represent uniquely: Exactly 12 distinct items, Exactly 2 x 12 (24) distinct items, Exactly 4096 distinct items, As many distinct items as we wish to.

Exactly 4096 distinct items.

Every ASCII code corresponds to a key on the keyboard that can produce a character on the screen of the monitor.

F

The ASCII code for semicolon is formed by adding the ASCII codes for period and comma.

F

The character ? does not have an ASCII code.

F

The exponent of an IEEE Floating point number is encoded in 2's complement representation.

F

[T or F] A AND B is true if at least one of the two variables A, B is true.

F

0x________ is the hexadecimal representation of the binary string 0000111100101010.

F2A


Ensembles d'études connexes

Sesión 1: Conceptos de Salud Pública y Medicina Preventiva

View Set

Quiz 4 & 5 Market Failures and the Role of the Government

View Set

Ac114 CH 12 Developing new products

View Set

Palo Alto EDU-210 and EDU-220 Questions

View Set

Jensen's Health Assessment 3rd Ed. | Chapter 1

View Set

Macro Econ HW set 2 + Practice exam 2

View Set

Immunology Practice Questions - Block 1

View Set

Snapshot of the French Revolution - practice test

View Set

Lesson 9 Muslim Innovations and Adaptations ISN Questions/Lesson 8 & 9 Vocab/Study Guide Answers

View Set

AP Land rhetorical terms assignment 1

View Set