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

Midterm Exam, 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. _Cosmos is a correct variable name in C.

    Your Answer:

  2. In C, while and While are both keywords.

    Your Answer:

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

    Your Answer:

  4. Every for loop can be re-written as a while loop.

    Your Answer:

  5. The following statement prints the number 1 three times.
          printf("%3d", 1) ;
          

    Your Answer:

  6. If a is an integer variable, then the value of the expression a = 3 is 3.

    Your Answer:

  7. A function prototype gives the compiler the value returned by the function.

    Your Answer:

  8. In a C program, the function main must appear in the file after all of the functions used by main

    Your Answer:

  9. When a function is called its local variables initially contain the value 0.

    Your Answer:

  10. If n is an integer variable, then the following statement assigns the integer value 9 to n
          n = 9.5 ;
          

    Your Answer:

To submit this section for grading click here:

Last Modified: Mon Sep 4 15:49:14 EDT 1995

Richard Chang, chang@gl.umbc.edu