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 the Alphabetic Characters "N" through "Z" (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:    Which of the following is TRUE about the decimal number 276?

                        
 The Binary representation would require 7 bits
                          The rightmost bit in the binary representation would be '0'
                          The rightmost bit in the binary representation would be '1'
                          A and B
                          A and C

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

                        
 110101
                          100111
                          100101
                          110101
                          110001

 Question 3:    Adding the binary digits 10011 and 11001 together yields the binary number:

                        
 111010
                          110011
                          101100
                          110101
                          101110

Question 4:    If I add the character '1' and the character '6' together, I will get:

                        
 The character '7'
                          The number 7
                          The character 'e'
                          The character 'g'
                          You can’t add characters together

Question 5:    The number 74 (decimal) in Hex would be:

                        
 47
                          4A
                          74
                          7A
                          A4

Question 6:    The number 67 (Octal) in Binary would be:

                        
 001111
                          010111
                          110011
                          110111
                          111011

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:

                        
 00000011
                          00110011
                          00111011
                          00111011
                          00111011


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