Try to answer the following questions:
1. When you see a cartoon, do the pictures actually move?
Choose an answer Yes, that's why they're cartoons! Yes, the pictures move, but not the background. No, they don't move when you see them in the newspaper. No, it is actually a bunch of frames switch faster than we can see
2. What is this processing procedure for?
void setup (){}
3. If you work for Kim's dad, Mr. Oetter, is the following code OK?
if (circleSize == 10){ circleSize = 100; }
if (circleSize == 10){
circleSize = 100;
}
Choose an answer Yes, it's perfect No, Mr. Oetter dosn't allow camelCaps in his company No, the == and = signs are wrong No, the first curly brace should be under the if
4. What is the void draw(){} procedure for?
Choose an answer This is the part where processing draws the animation For drawing an empty rectangle Breaks your pencils so you don't have to draw anything Tells processing to draw rectangles with no strokes I can't remember
5. How do you write "add 1 to mrX" in Processing?
Choose an answer mrX + 1 1 + mrX; mrX = 1; mrX = mrX + 1; mrX + 1 = mrX;
6. What will happen if you tell processing the following?
void setup() { size(400, 400); background(0); stroke(100,50,255); strokeWeight(20); smooth(); }
void setup()
{
size(400, 400); background(0); stroke(100,50,255); strokeWeight(20); smooth();
Choose an answer Processing will do nothing Processing will make a black 400 by 400 window Processing will make a black 400 by 400 window with a smooth purple dot Processing will crash
7. What will processing draw with these commands?
int mrX = 40; point(mrX,200); mrX = mrX + 40; point(mrX, 200);
int mrX = 40;
point(mrX,200);
mrX = mrX + 40;
point(mrX, 200);
Choose an answer Nothing, processing will crash A point at x=40, y=200 A point at x=200, y=40 Points at x=40, y=200 and x=40, y=240 Points at x=200, y=40 and x=80, y=200 Points at x=40, y=200 and x=80, y=200 Points at x=40, y=200 and x=80, y=240
Go back to the home page.