CS1080601b - Computer Science Foundation Exam August 6,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Science Foundation Exam August 6, 2001 Section I B No Calculators! Name: SSN: In this section of the exam, there are three (3) problems You must do all of them. The weight of each problem in this section is indicated with the problem. The algorithms in this exam are written in a combination of pseudocode and programming language notation. Any algorithms that you are asked to produce should use a syntax that is clear and unambiguous. Partial credit cannot be given unless all work is shown. As always, be complete, yet concise, and above all be neat . Credit cannot be given when your results are unreadable. KEY
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
1 (4, 10%) Write a recursive procedure (not a function), called prob4 , that will correctly print the first n even integer numbers. Assume that n > 0 . For the purposes of this problem assume that the integer numbers begin with the number 1 (i.e., do not consider 0). The initial call is prob4(n) . For example, the call prob4(5) would print 2, 4, 6, 8, 10.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 09/21/2011.

Page1 / 5

CS1080601b - Computer Science Foundation Exam August 6,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online