CATAN
CODING
GRAMMAR
100

Name 5 resources in Catan.

Lumber, Brick, Ore, Sheep, Grain

100

What is the purpose of a loop?

A loop repeats code several times. It allows for code to repeat without it having to be typed out several times.

100

Select the correct sentence:

1. Me and my friend went to the store.

2. He is mean to my friends and I.

3. I hope someone like my brother or me will do it.

3

200

How many resource hexes are on the board?

19

200

What is the difference between a for loop and a while loop?

a. A for loop repeats code n times; a while loop repeats until a condition is met.

b. A for loop repeats code n times, cycling through a list; a while loop repeats until a condition is false.

c. A for loop does something repeatedly if a condition occurs somewhere; a while loop repeats forever.

B

200

Which of these is an adverb?

a. Intelligent

b. Intelligence

c. Intelligently

c

300

Name two resources, one with 4 corresponding production hexes on the board and one resource with 3.

Ore and Brick are 3

Wood, Grain, and sheep have 4

300

What does a function do?

Runs code every time it is called, rather than code having to be repeatedly written. It also takes parameters so that it can output or run slightly changed code.

300

In the sentence He was very excited, the 'very' acts as what part of speech?

Adverb

400

What are the odds of rolling a six, expressed as a fraction OR a percent?

The answer may be at most 5% off.

5/36

13.9%

400

What are classes and objects for?

Objects store things that cannot be stored in a variable and instead have multiple properties that can be stored into a class.

400

What is 7*7/7+7? (Has absolutely nothing to do with grammar)

14

500

How many dots (each resembling one possible roll combination) do the numbers 5, 8, and 10 have combined?

12

500

What is recursion?

A way to find a solution by solving smaller versions of the problem. Recursion can be done by calling a function inside its definition with a simpler parameter.

500

JACKPOT! FREE POINTS

...