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

C/C++ 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:    How many reserved keywords are there in C?

                        
 12
                          32
                          40
                          74
                          100

Question 2:   C++ is:

                       
 a 4th generation language.
                          an extension of C
                          C with classes
                          A and B
                          B and C

Question 3:    The modulus operator:

                       
 Finds the quotient of two integers
                          Finds the remainder of two integers
                          Finds the product of two integers
                          Finds the arithmetic mode of two integers
                          Finds the greatest common denominator of two integers

Question 4:    The 'type' operator serves to do what?

                       
 Change the basic data type to a different data type"
                          Denote what type of data is stored at a specific location
                          Print, or type, the data structure located at a location
                          A and B
                          B and C

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

                       
 ++
                          ()
                          %
                          =
                          ==

Question 6:    Which of the following are not 'printf' specifers?

                       
 %p
                          %c
                          %y
                          %f
                          %i

Question 7:    If I enter the command: int 'i = 318;' and then: 'printf('%c', i);', why is the character '>' printed?

                       
 > is the ASCII character 318
                          > is the EBCIDIC character 318
                          > is the Unicode character 318
                          > is the character represented by the binary representation of 318 (100111110)
                          > is the character represented by the rightmost 8 binary digits of 318 (00111110)


Question 8:    Which of the following is true of the function 'main'?

                       
 It may return any standard data type.
                          It need not return any standard data types.
                          A parameter may be passed to it.
                          No parameters need be passed to it.
                          All of the above are true.

Question 9:    Which of the following is NOT true about the 'for' statement?


                       
 It is a 'Looping' statement
                          It is similar to a PERFORM WHILE statement in COBO
                          It responds to a 'what' statement
                          It repeats statements UNTIL a set condition is met
                          It contains three components

Question 10 Which of the following is NOT TRUE of functions?

                       
 They integrate all of the program components
                          They are self contained units of code
                          They are intended to perform a specific task
                          All of the above are true
                          None of the above are true

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