UMBC CMSC201, Computer Science I, Fall 1994 Section 0101, 0102 and Honors

Midterm Exam, version 1, 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. In C, variable names are case-sensitive, so the variables total and Total are different variables.

    Your answer:

  2. In C, keywords, such as switch, may be used as variable names.

    Your answer:

  3. The expression 13/4 has type double.

    Your answer:

  4. In the expression (a + 7) * (b / 9) the expression (a + 7) is always evaluated first because * associates left to right.

    Your answer:

  5. In the expression (a + 7) - (b * 9) - (13 % c) the expression (a + 7) - (b * 9) is always evaluated first because - associates left to right.

    Your answer:

  6. If a is a variable of type int, the statement a = 17.76 is an expression with type int and value 17.

    Your answer:

  7. When a function is called, the initial value of the formal parameters is 0.

    Your answer:

  8. One purpose of the including files like <stdio.h> and "simpio.h" is to give the compiler the function prototypes of functions like printf and GetInteger.

    Your answer:

  9. In a C program, the function prototypes should be placed at the beginning of a file, above all of the functions (including main).

    Your answer:

  10. When a function is called the number and types of the actual parameters should agree with the number and types of the formal parameters declared in the function's prototype.

    Your answer:

To submit this section for grading click here:

Last Modified: Mon Oct 31 13:43:28 EST 1994

Richard Chang, chang@gl.umbc.edu