Deck 4: Operations on Data
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/20
Play
Full screen (f)
Deck 4: Operations on Data
1
In two's complement addition, if there is a final carry after the left most column addition, _______.
A) add it to the right most column
B) add it to the left most column
C) discard it
D) increase the bit length
A) add it to the right most column
B) add it to the left most column
C) discard it
D) increase the bit length
C
2
_______ operator (s), if the input is two 1s, the output is 0.
A) In only AND
B) In only OR
C) In only XOR
D) In AND, OR, or XOR
A) In only AND
B) In only OR
C) In only XOR
D) In AND, OR, or XOR
C
3
We use a bit pattern called a _______ to modify another bit pattern.
A) mask
B) carry
C) float
D) byte
A) mask
B) carry
C) float
D) byte
A
4
To un-set (force to 0) all the bits of a bit pattern, make a mask of all 0s and then _______ the bit pattern and the mask.
A) AND
B) OR
C) XOR
D) NOT
A) AND
B) OR
C) XOR
D) NOT
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
5
The _______ method of integer representation is the most common method for storing integers in computer memory.
A) sign-and-magnitude
B) one's complement
C) two's complement
D) unsigned integers
A) sign-and-magnitude
B) one's complement
C) two's complement
D) unsigned integers
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
6
_______ operator (s) takes two inputs to produce one output.
A) Only AND
B) Only OR
C) Only XOR
D) AND, OR, or XOR
A) Only AND
B) Only OR
C) Only XOR
D) AND, OR, or XOR
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
7
_______ is a logical bit operator.
A) The exclusive OR
B) The unary NOT
C) The binary AND
D) exclusive OR, unary NOT, or binary AND
A) The exclusive OR
B) The unary NOT
C) The binary AND
D) exclusive OR, unary NOT, or binary AND
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
8
To set (force to 1) all the bits of a bit pattern, make a mask of all 1s and then _______ the bit pattern and the mask.
A) AND
B) OR
C) XOR
D) NOT
A) AND
B) OR
C) XOR
D) NOT
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
9
In two's complement representation with a 4-bit allocation, we get _______ when we add 1 to 7.
A) 8
B) 1
C) -7
D) -8
A) 8
B) 1
C) -7
D) -8
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
10
For the binary OR operation, only an input of _______ gives an output of 0.
A) two 0s
B) two 1s
C) one 0 and one 1
D) two 2s
A) two 0s
B) two 1s
C) one 0 and one 1
D) two 2s
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
11
If the exponent in Excess_127 is binary 10000101, the exponent in decimal is _______.
A) 6
B) 7
C) 8
D) 9
A) 6
B) 7
C) 8
D) 9
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
12
_______ operator (s), if the input is two 0s, the output is 0.
A) In only AND
B) In only OR
C) In only XOR
D) In AND, OR, or XOR
A) In only AND
B) In only OR
C) In only XOR
D) In AND, OR, or XOR
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
13
In two's complement representation with a 4-bit allocation, we get _______ when we add 5 to 5.
A) -5
B)-6
C) -7
D) 10
A) -5
B)-6
C) -7
D) 10
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
14
For the binary AND operation, only an input of _______ gives an output of 1.
A) two 0s
B) two 1s
C) one 0 and one 1
D) two 2s
A) two 0s
B) two 1s
C) one 0 and one 1
D) two 2s
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
15
The unary _______ operator inverts its single input.
A) AND
B) OR
C) NOT
D) XOR
A) AND
B) OR
C) NOT
D) XOR
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
16
For an 8-bit allocation, the largest decimal number that can be represented in two's complement form is _______.
A) 8
B) 127
C) 128
D) 256
A) 8
B) 127
C) 128
D) 256
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
17
For an 8-bit allocation, the smallest decimal number that can be represented in two's complement form is _______.
A) -8
B) -127
C) -128
D) -256
A) -8
B) -127
C) -128
D) -256
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
18
_______ is an arithmetic operation.
A) The exclusive OR
B) The unary NOT
C) Subtraction
D) The binary AND
A) The exclusive OR
B) The unary NOT
C) Subtraction
D) The binary AND
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
19
If we are adding two numbers, one of which has an exponent value of 7 and the other an exponent value of 9, we need to shift the decimal point of the smaller number _______.
A) one place to the left
B) one place to the right
C) two places to the left
D) two places to the right
A) one place to the left
B) one place to the right
C) two places to the left
D) two places to the right
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
20
To flip all the bits of a bit pattern, make a mask of all 1s and then _______ the bit pattern and the mask.
A) AND
B) OR
C) XOR
D) NOT
A) AND
B) OR
C) XOR
D) NOT
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck