(Last Mod: 27 November 2010 21:38:40 )
Name: CODE: Section: Date:
NO CALCULATORS MAY BY USED ON THIS QUIZ
What is the value of m after the following code fragment executes?
int m, n, b;
n = 34;
b = 2;
for (m = 1; n/m >= b; m *= b);
1.
2.
10.
32. <====
Which data types are the only ones for which all of the bit-oriented functions are fully defined?
Floating point.
Integer.
Unsigned integer. <====
Signed integer.
If the bit
pattern in m is originally '00101010'
, what is (m
<< 2)
?
'00010101'
.
'00101010'
.
'01010100'
.
'10101000'
. <====
Performing a left-shift by N places is equivalent to which of the following:
Multiplying by N.
Multiplying by 2N. <====
Dividing by 2N.
Dividing by 10N.
What is the term that is used when the least significant byte of a multi-byte value is stored at the base address?
Big Endian.
Little Endian. <====
Base Endian.
Intel Format.