Try to answer the following questions:
1. WhatIsTheNameForThisKindOfWritingWithAllTheWordsStuckTogether?
Choose an answer CamelCaps HumpLetters ForgotHowToUseTheSpaceBar GobbletyGookWriting
2. What will processing do if you give it these commands?
size(400, 400); noStroke(); fill(0,200,0); rect(0,0,200,100); fill(0,0,200); rectMode(CENTER); rect(200,200,100,100);
size(400, 400);
noStroke();
fill(0,200,0);
rect(0,0,200,100);
fill(0,0,200);
rectMode(CENTER);
rect(200,200,100,100);
3. How do you say this command?
if (circleSize == 10){ circleSize = 100; }
if (circleSize == 10){
circleSize = 100;
}
Choose an answer If circleSize equals 10, circleSize equals 100 If circleSize get 10, circleSize is equal to 100 If circleSize is equal to 10, circleSize equals 100 If circleSize is equal to 10, circleSize gets 100
4. What does the rectMode(CENTRE); command do?
Choose an answer Tells processing to draw rectangles Tells processing to draw one rectangle in the center Tells processing to draw a rect mode Tells processing to draw rectangles from their center point Tells processing to draw rectangles from their upper-left corner Nothing, because Processing uses American spelling
5. What does the rectMode(CENTER); command do?
Choose an answer Tells processing to draw rectangles Tells processing to draw one rectangle in the center Tells processing to draw a rect mode Tells processing to draw rectangles from their center point Tells processing to draw rectangles from their upper-left corner
6. What will happen if you tell processing the following?
size (400,400); background(0); fill(0,0,0); int mrVariable = 45; if (mrVariable == 30){ ellipse(200,200,20,20); }else { rectMode(CENTER); rect(200,200,20,20); }
size (400,400);
background(0);
fill(0,0,0);
int mrVariable = 45;
if (mrVariable == 30){
ellipse(200,200,20,20);
}else {
rectMode(CENTER); rect(200,200,20,20);
rect(200,200,20,20);
Choose an answer Processing will make a 20 pixel round circle in the middle Processing will make a 200 pixel round circle at point 20,20 Processing will make a 20 pixel square in the middle Processing will make a 200 pixel square at point 20,20 Processing will make a black 400 by 400 window and then crash Processing will crash
7. Will you be able to see the shape made by processing in question 5?
Choose an answer Yes, it will be visible No, it won't be visible No, processing will crash before at draws a shape
Go back to the home page.