Quiz #3

(Last Mod: 27 November 2010 21:38:37 )

ECE-1021 Home


Name:                                                             CODE:                 Section:           Date:                  

NO CALCULATORS MAY BY USED ON THIS QUIZ

  1. How can you tell if an expression is calling a function or a function-like macro?

    1. Macro calls are preceded with a pound sign - '#'.

    2. Macro names start with an underscore character.

    3. Functions do not produce side effects with respect to their arguments..

    4. In general, you can't - many "functions" in the standard libraries are actually macros.

     

  2. Which of the following pairs of terms are synonymous?

    1. Function-like macro and parameterized macro.

    2. Object-like macro and in-line function.

    3. Function object and macro object.

    4. Parameterized macro and macro parameter.

     

  3. What is a byte?

    1. A generic term for the smallest addressable amount of memory on a processor.

    2. A collection of exactly eight bits.

    3. Any collection of two or more bits.

    4. A digital system.

     

  4. How many bits are required to be able to represent all ten of the decimal digits?

    1. 2.

    2. 4.

    3. 8.

    4. 16.

     

  5. When and by whom was the term "byte" coined?

    1. Alan Turing, sometime during WWII while working to break German naval ciphers.

    2. Dr. Werner Buchholz of IBM in 1956 as part of an effort to standardize computer character sets.

    3. Bill Gates in the 1980 documentation for the original version of MS-DOS.

    4. Dr. Richard P. Feynman during his 1965 Nobel Prize acceptable speech.