Skip to content

Latest commit

 

History

History
75 lines (54 loc) · 1.85 KB

02 - FP Advanced.md

File metadata and controls

75 lines (54 loc) · 1.85 KB

✨ FP Advanced ✨

Write a Processing program that will draw the following diagram in a window of the appropriate size that has a white background.

The light grey lines and text are not part of the diagram, they indicate pixel boundaries.

emojiSketch.png

Write a Processing program that will draw the following diagram in a window of the appropriate size that has a white background.

The light grey lines and text are not part of the diagram, they indicate pixel boundaries.

pokeball.png

Of the types below, which is the right type for the value "t"?

  • int
  • char
  • String
  • float
  • boolean

An algorithm that prints the sum of two numbers is:

  1. Informed changer
  2. Informed producer
  3. Changer
  4. Producer

Of the types below, which is the right type for the value "true"?

  • int
  • char
  • String
  • float
  • boolean

Write a Processing program that will draw the following diagram in a window of the appropriate size that has a white background.

The light grey lines and text are not part of the diagram, they indicate pixel boundaries.

eye.png

An algorithm that returns the product of two random integers is:

  1. Informed changer
  2. Informed producer
  3. Changer
  4. Producer

Of the types below, which is the right type for the value 't'?

  • int
  • char
  • String
  • float
  • boolean

Of the types below, which is the right type for the value false?

  • int
  • char
  • String
  • float
  • boolean

Which lines of code in the following code are statements?

void setup() {
	size(400, 200);
}

void draw() {
	//This should draw a line from the top left to the bottom right
	line(0, 0, width, height);
}