CS 113 Programming Quiz and Questionaire
Name:
Questions.
- When and where was your last programming course?
- What language did it use? What was the last topic covered?
- 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.
-
Write a program which prints the string "Hello, world".
-
Write a program which prints each even integer from 2 to
100 on a separate line.
-
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.
-
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.