Difference between revisions of "IB CS1 2nd Quarter Exam"

From WLCS
m (Protected "IB CS1 2nd Quarter Exam" [edit=sysop:move=sysop])
Line 1: Line 1:
test
+
Directions: This portion of the exam is open-book, open-note, and CLOSED-person. You may use and test your code in Python. Copy and paste your answer in the spaces below. Be sure to put your name on your answer sheet.
 +
 
 +
7. Write a loop that prints out the first N terms of the following sequence:  0, 5, 10, 15, 20, 25, …
 +
 
 +
# Assume that the variable N has a value
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
8. Write a loop that prints out the first N terms of the following sequence:  1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ....
 +
 
 +
# Assume that the variable N has a value
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
9. Write a loop that prints out every other

Revision as of 12:42, 9 January 2009

Directions: This portion of the exam is open-book, open-note, and CLOSED-person. You may use and test your code in Python. Copy and paste your answer in the spaces below. Be sure to put your name on your answer sheet.

7. Write a loop that prints out the first N terms of the following sequence: 0, 5, 10, 15, 20, 25, …

  1. Assume that the variable N has a value







8. Write a loop that prints out the first N terms of the following sequence: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ....

  1. Assume that the variable N has a value







9. Write a loop that prints out every other