UMBC CMSC201, Computer Science I, Spring 1994 Sections 0101, 0102 and Honors

Final Exam A, True/False Section


True or False Questions, 1 point each

To practice taking this section. Select TRUE or FALSE in the pop-up menus after each question to record your answer. To submit your answers for grading, click on the "submit for grading" button.

On lynx, use down arrow to move to the next question or choice. Hit return to make your selection.


  1. The expression 3 * 4 + 5 is equivalent to the expression 3 * (4 + 5).

    Your Answer:

  2. The expressions 16.0 / 4 and 16 / 4.0 are equivalent.

    Your Answer:

  3. The statement
          return ;
    
    is only appropriate in functions with return type void.

    Your Answer:

  4. In ANSI C, a function prototype should appear in a file before any call to that function in the file.

    Your Answer:

  5. When a function terminates, changes to the global variables remain in effect.

    Your Answer:

  6. If A and B are both arrays of 10 integers, then the assignment B = A is allowed.

    Your Answer:

  7. An array as a formal parameter is really a pointer because no new memory is allocated for the array when the function is called.

    Your Answer:

  8. In C, a variable x is passed by reference to a function foobar using the syntax: foobar(*x).

    Your Answer:

  9. struct is a legal identifier in C.

    Your Answer:

  10. If n is an integer variable, the value of the expression n % 2 is 0 whenever n is a multiple of 6.

    Your Answer:

  11. The compiler directive
       #include <stdio.h>
    
    causes the compiler to read in the file stdio.h from a system directory.

    Your Answer:

  12. The compiler directive
          #define LIMIT 1000
    
    initializes the variable LIMIT to the integer value 1000.

    Your Answer:

  13. When a function is called, the number of actual parameters should be equal to the number of formal parameters in the function prototype.

    Your Answer:

To submit this section for grading click here:

Last Modified: Mon Sep 4 15:57:35 EDT 1995

Richard Chang, chang@gl.umbc.edu