Final Exam
- 3 Hours, 11 questions. It is my expectation that everyone should have enough time to at least attempt each question, and it is possible that many of you will finish before the full 3 hours.
- Written on paper: no computers, calculators or other aids
- Closed book
- Some built-in R function descriptions will be provided
- The final exam covers everything from the lectures, labs, exercises, and assignments, except the following:
- Linear Modelling
- Recursion
- Runtime Complexity
Past Exams (solutions not available, but feel free to discuss them on Piazza):
Remember that like the quizzes, our exam will not have the same format as the previous terms, and you should follow the style and coding guidlines taught in our course, not in the past exams.
Quiz 2
- Our Quiz 2:
Quiz 2 Version A (White paper).
Quiz 2 Version B (Orange paper). - Quiz 2 solutions. Note that these are sample solutions, and there are different ways to answer some of the questions and write the functions.
Quiz 2 Version A Solution.
Quiz 2 Version B Solution.
- 35 Minutes
- Written on paper: no computers, calculators or other aids
- Closed book
- Some built-in R function descriptions may be provided
- You may write using a pencil; however, work written in pencil will not be considered for remarking.
- Everything up to the March 12th lecture
- Make sure you understand the basic concepts you were tested on in Quiz 1
- R data types - (lists, dictionaries (named lists), matrices, data frames)
- Putting data into a data frame, extracting and editing data in a data frame
- Basic plotting
- Random number generation
- Understand the lecture notes from the console, lecture slides, and R code, as well as the labs.
Quiz 1
- Our Quiz 1:
Quiz 1 Version A (White paper).
Quiz 1 Version B (Yellow paper). - Quiz 1 solutions. Note that these are sample solutions, and there are different ways to answer some of the questions and write the functions.
Quiz 1 Version A Solution.
Quiz 1 Version B Solution.
- Everything up to the February 5th lecture
- Indicate the console output of a block of code
- Know how function calls work
- How to work with the R data types we've seen so far (i.e. numbers, strings, vectors)
- How to define functions with different program flow changes (if statements, loops, etc.)
- Understand the lecture notes from the console, lecture slides, and R code.
Past Tests/Midterms
A word of advice: Study first without looking at the solutions. Figuring out how to solve a problem yourself, and solving it, is quite different than understanding the solution someone else wrote.
Note that these solutions may contain small errors that previous instructors didn't fix in the files. Also, for some problems, there may be more than one correct solution. If you have questions about any of the solutions, please ask on Piazza, and help other students with their questions.
Notes on the past tests:
- The previous offering CSC121 was taught slightly differently, so you may see things in the past tests that have some differences to what we've learned in class (particularly in terms of style). At all times, you must follow the guidelines we learned in our class, not in previous terms. Ask on Piazza if something is unclear.
- The format of our quiz will not necessarily be the same as those of the past tests.
- Winter 2016 Quiz 2 (Solution)
- Winter 2016 Quiz 3 (All questions except Q2) (Solution)
Here are some past tests for Quiz 1:
NOTE: If-statements in these past tests might not have curly brackets around their body code. Do not use this format on the quizzes or exercises/assignments.
- CSC121 Winter 2017 (All questions except Q6): Winter 2017 Midterm (Solution)
- CSC120 (R Section) Winter 2016: Winter 2016 Quiz 1 (Solution)