wpe41.gif (23084 bytes)CIS3355: Business Data Structures
Fall, 2008
 

Basic Data Types Quiz 1

Complete the form below ONLY if your Pseudonym begins with a Non-Alphabetic Character (e.g., "0", "&") or the Alphabetic Characters "A" through "C" (uppercase or lower Case)

If you choose this Quiz and you do not meet the criteria above, you will receive a zero (0)

Enter Your PSEUDONYM:          

Question 1:    The number 73 requires ___ bits in binary:

                        
 6
                          7
                          8
                          9
                          10

Question 2:   The number 37 (decimal) in binary would be:

                        
 110101
                          100111
                          100101
                          110101
                          110001

IQuestion 3:    Adding the binary digits 111010 and 101111 together yields the ASCII Character:

                        
 <
                          1
                          A
                          i
                          n

Question 4:    The Character 'M' is really:

                        
 The number 79 (base 10)
                          The number 1,000 (base 10)
                          The number 115 (base 8)
                          The number 79 (base 16)
                          The number 1001111 (base 2)

Question 5:    The number 62 (decimal) in Octal would be:

                        
 62
                          66
                          67
                          76
                          82

Question 6:    The number 53 (Octal) in Hex would be:

                        
 8
                          2B
                          53
                          B2
                          83

Question 7:    The Easiest way to convert between Octal and Hex is:

                        
 Convert to binary and then to Hex
                          Convert to decimal and then to Hex
                          Convert directly to Hex by multiplying by 2 (since 8 * 2 is 16)
                          Convert directly to Hex by adding 8 (since 8 + 8 is 16)
                          None of the above

Question 8:    All of the following are true about the data type char (in C/C++), EXCEPT:

                        
 it is unsigned
                          it is stored on 8-bits
                          it corresponds to the ASCII scheme
                          takes on values from -2^7 to +2^7 - 1
                          takes on values from -128 to +127

Question 9:    If I make the C/C++ declaration: char a = 109; I am

                        
 defining a as a character variable and initializing it with the numeric value 109
                          asking for 8-bits of storage at location a in RAM and initializing it
                          storing the character m at location a in RAM
                          A and B
                          All of the above

Question 10 If I make the C/C++ declaration: char a = '3'; Location a will contain the bit sequence:

                        
 00000001
                          00110011
                          00111011
                          00111011
                          00110111
 

This page was last updated on 02/03/05.