CS 113 Programming Quiz and Questionaire

Name:

Questions.

  1. When and where was your last programming course?



  2. What language did it use? What was the last topic covered?



  3. What high-level programming languages are you proficient in?



Programming Skills.

Use the remaining portion of this page and the back side to do the following. Please clearly delineate the four problems.
  1. Write a program which prints the string "Hello, world".

  2. Write a program which prints each even integer from 2 to 100 on a separate line.

  3. Write a function which takes two floating-point numbers (real numbers like 2.357 which could include fractional parts) and returns an integer value of 0 if both numbers are the same, 1 if the first number is larger, and -1 if the second number is larger.

  4. Write a function which takes an array of integers, intArray, and a positive integer, size, and returns the sum of the first size integers in the array.