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

C/C++ Quiz 2

Complete the form below ONLY if your Pseudonym begins with the Alphabetic Characters "D" through "M" (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 NOT a reserved keyword in C?


                       
 signed
                          type
                          and
                          double
                          void

Question 2:    Binary operator are those which:

                       
 work only in binary
                          work on two quotients
                          work on two products
                          work on two operands
                          work on two remainders

Question 3:    When dividing two numbers:

                       
 The resultant is the quotient if the numbers are both integers.
                          The resultant is an integer if either of the numbers are integers
                          The resultant is a real number if both numbers are floating-point numbers
                          A and B
                          A and C

Question 4:    The logical operator '!=' means:

                       
 Equal to
                          Less than
                          Greater than
                          Not equal to.
                          None of the above

Question 5:    In terms of arithmetic operations, the lowest order operator is:

                       
 ++
                          ()
                          %
                          =
                          ==

Question 6:   What will the printf specifer %c print out?

                       
 A contatenated number
                          A complemented number
                          A concentrated string
                          An array of characters
                          A character

Question 7:    Pre-compiler directives include all of the following EXCEPT:

                       
 define
                          include
                          function prototypes
                          external variables
                          All of the above are pre-compiler directives

Question 8:    User created functions are:

                       
 Independent of the main function.
                          Dependent on the main function.
                          An integral part of the main function.
                          A and B
                          A and C

Question 9:    The three components of the 'for' statement (in order) are:

                       
 Initialization, update, condition check
                          Initialization, condition check, termination
                          Condition check, termination, Initialization
                          Initialization, condition check, update
                          Condition check, Initialization, update


Question 10
The benefits of functions include all of the following EXCEPT:


                       
 They avoid repetitive code
                          They promote modularity
                          They promote singularity
                          They promote readability
                          They promote easier editing

 

This page was last updated on 01/10/08.