Final Exam Study Guide

This week, you will have your final exam in class. This is a study guide for your benefit, so read the whole thing, and if you don’t understand the concepts, read over the lecture notes, go over the reference material like your textbook, or google it.

Remember that there is the previous lab exam 1 study guide. There is a points back packet with solutions. And you should understand the solutions to all the previous assignments.

A note about the exam itself

The exam will be in your lecture, closed book, and 50 minutes long. You should be able to answer each question in 2-3 minutes or 3-5 minutes if you need to write code. All this means is that the questions should be straightforward and simple, so don’t overthink it. You will be provided a reference sheet, so everything you need to know about p5.js functions should be on the exam.

Things you should be able to answer

Conditional Logic
What are booleans?
What are the logical operators?
How are conditionals used in for loops?
How are conditionals used in while loops?

Creating Objects
What are objects?
How would you declare an object using curly bracket notation?
How would you declare an object using a constructor?
Why do you always use the ‘this‘ keyword in objects?
How do you access an object’s attributes?
How would you access an object’s methods?
How would you initialize an array of objects?
How would you access an object in an array?
How do you keep track of objects in an array of objects?

String manipulation
How do you print a string with a number?
How do you print two strings together?
How do you get a substring of a string?
How do you split a string in two?
(Basically look over string methods in javascript)

Queues and Stacks
What are these?
How are they different?
How are they implemented using shift, unshift, push, and pop?

Image manipulation
How are images represented?
How are pixels represented?
How do you iterate through the pixels of an image?

Why is drawing with turtles different from drawing with shape primitives?
What are the main functions you use with turtles?
How do you draw shapes with turtles?
How do you draw multiple shapes with turtles?

Particle Systems
What are the major functions you can use in the Particle class?
How could you right your own Particle class that has basic functionalities?

Skills you should have

There will be several different question styles. Including:

  1. Match the code to the image
  2. Write a short loop to do a certain thing
  3. Write a short function to do a certain thing
  4. Write a short conditional statement to do a certain thing
  5. Given a piece of code, know what it will print at different stages

Don’t sweat the small things like “did I spell this correctly?” or “is this indented right?”
We’re looking to see that you understand the major concepts.

Good luck everyone!