CS 1110
Prelim 2 Review
Fall 2013
Exam Info
Prelim 2: 7:309:00PM, Thursday, Nov. 14th
Last name A G in Olin 155
Last name H K in Olin 165
Last name L R in Olin 255
Last name S Z in Upson B17
To help you study:
Study guides, review slide
Cornell net id _ Section day _
Name _ Section time _
CS 100J Prelim 3
15 April 2008
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all questions before answering any. Budget your time wisely.
Cornell net id _ Section day _
Name _ Section time _
CS 100J Prelim 3
13 November 2007
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all questions before answering any. Budget your time wise
Cornell net id _
Name _
CS 1110 Prelim 3
Grades expected to be on the CMS late tonight
18 November 2008
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all the questions before beginning. Use
Cornell net id _
Name _
CS 100J Prelim 3
17 April 2007
0 _ out of 02 1 _ out of 15 2 _ out of 18 3 _ out of 20 4 _ out of 25 5 _ out of 20
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all q
CS 1110
Prelim 2 Review
Fall 2013
Exam Info
Prelim 1: 7:309:00PM, Thursday, October 17th
Last name A G in Olin 155
Last name H K in Olin 165
Last name L R in Olin 255
Last name S Z in Upson B17
To help you study:
Study guides, review sl
Cornell net id _
Name _
CS 100J Prelim 3
18 April 2006
0 _ out of 02 1 _ out of 15 2 _ out of 18 3 _ out of 20 4 _ out of 25 5 _ out of 20
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all q
Cornell net id _
Name _
CS 100J Prelim 3
14 November 2006
0 _ out of 1 _ out of 2 _ out of 3 _ out of 4 _ out of 5 _ 02 20 22 15 20
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all question
Cornell net id _ Section day _
Name _ Section time _
CS 1110 Prelim 2
Grading and posting of grades done Wednesday night
21 October 2008
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all the
Cornell net id _
Name _
CS 1110 Prelim 2
Grades are expected to be posted by 1AM tonight
12 March 2009
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all the questions before beginning. Use t
Cornell net id _ Section day _
Name _ Section time _
CS 100J Prelim 2
Well try to have grades posted by 1AM!
13 March 2008
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all the questions bef
Cornell net id _ Section day _
Name _ Section time _
CS 100J Prelim 2
Well try to have grades posted by 1AM!
16 October 2007
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at all questions befor
Cornell net id _ Section day _
Name _ Section time _
CS 100J Prelim 2
Have a good break!
16 March 2006
0 _ out of 02 1 _ out of 10 2 _ out of 15 3 _ out of 14 4 _ out of 22 5 _ out of 37 Total _ out of 100
This 90-minute exam has 6 questions (numbered 0.5
Cornell net id _ Section day _
Name _ Section time _
CS 100J Prelim 2
Have a good break!
15 March 2007
0 _ out of 02 1 _ out of 18 2 _ out of 20 3 _ out of 20
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minu
Cornell net id _ Section day _
Name _ Section time _
CS 100J Prelim 2
Have a good break!
17 October 2006
0 _ out of 02 1 _ out of 10 2 _ out of 15 3 _ out of 14 4 _ out of 22 5 _ out of 37 Total _ out of 100
This 90-minute exam has 6 questions (numbered 0
NAME _ Cornell Net id _
CS100J Prelim 1 21 February 2008 This 90-minute exam has 5 questions (numbered 0.4) worth a total of 100 points. Scan the whole test before starting. Budget your time wisely. Use the back of these pages if you need more space. You
NAME _ Cornell Net id _
CS1110 Prelim 1 19 February 2009 This 90-minute exam has 5 questions (numbered 0.4) worth a total of 100 points. Scan the whole test before starting. Budget your time wisely. Use the back of these pages if you need more space. You
CS 1110 Prelim 1 NAME (last, first)_
30 September 2008 Cornell NetId _
This 90-minute exam has 6 questions worth a total of 100 points. Look at the whole test before beginning to see what is expected. Budget your time wisely. Use the back of these pages i
PREPARING FOR THE FINAL EXAM
CS 1110: FALL 2012
This handout explains what you have to know for the nal exam. Most of the exam will include topics from
the previous two prelims. We have uploaded the solutions to each of these exams into CMS. Just click on
CS100J Prelim I, 25 Sept. 2007
CORNELL NETID _
NAME (PRINT LEGIBLY!)_ (last, first)
This 90-minute exam has 6 questions worth a total of 100 points. Spend a few minutes looking at all questions before beginning so that you can see what is expected. Budget
Cornell net id _
Name _
CS 100J Prelim 1
23 February 2006
0 _ out of 02 1 _ out of 16 2 _ out of 18 3 _ out of 22 4 _ out of 22 5 _ out of 20
This 90-minute exam has 6 questions (numbered 0.5) worth a total of 100 points. Spend a few minutes looking at al
Final CS100J, Spring 2007
NAME
NET ID
page 1
Grades for the final will be posted on the CMS as soon as it is graded, hopefully tonight but perhaps tomorrow. Grades for the course will take a few days more. You can look at your final when you return in the
Final CS100J, Spring 2008
NAME
NET ID
page 1
Grades for the final will be posted on the CMS as soon as it is graded, hopefully tonight but perhaps tomorrow. Grades for the course will take a few days more. You can look at your final when you return in the
Final CS1110, Fall 2008
NAME
NET ID
page 1
We grade the final Thursday. Grades for the final are expected be posted on the CMS in late afternoon. Grades for the course will take a few days more. You can look at your final when you return next year. HAVE A
Final CS100J, Fall 2006
NAME
NET ID
page 1
Grades for the final will be posted on the CMS tomorrow night, late. Grades for the course will take a few days more. You can look at your final when you return in the Spring. Thanks for taking the course. HAVE A
CS100J Spring 2008. Answers to final 1.int k= b.length-2; int big1= Math.max(b[k], b[k+1]); int big2= Math.min(b[k], b[k+1]); / inv: big1 is the largest int in b[k.b.length1], / big2 is second largest int in b[k.b.length1], / 0 <= k <= b.length-2 while (k
CS1110, Fall 2008.
Sample answer to Final
Gries djg17
1. int h= b.length; int k= 0; / inv: c[0.k-1] contains the odd elements of / b[h.b.length-1], in reverse order. while (h != 0) cfw_ h= h-1; if (b[h] % 2 = 1) cfw_ c[k]= b[h]; k= k+1; / post: c[0.k-1]
CS100J Spring 2007. Answers to final 1. s= cumprod(1 + zeros(1, n); % the signs num= s .* cumprod(5 + zeros(1,n); den= 1:n; value= cumsum(num ./ den); / postcondition: (digit sum of n) = c; 2. int m= n; int c= 0; /inv: (digit sum of n) = c + (digit sum of
Answer to Final
CS100J, Fall 2007
NAME David Gries
NET ID djg
page 1
Question 1. /* Let x be the value currently in b[h]. Permute b[h.k] and return an int j that satisfies b[h.j-1] <= b[j] = x < b[j+1.k]. */ public static int partition(int[] b, int h, int
CS 100J Prelim 2 Fall 2006 Answers Question 1. (a) Local variable: A variable declared in the body of a method. It is created when the frame for a call is created, before execution of the method body. (b) / Store in c the number of positions k in Strings