Definitions
Code Combat
Ozaria
Solve the Code
Random Facts About Coding
100

What is a STRING? 

a. A sequence of characters that are enclosed by quotation marks.

b. The rules of a computer language that govern how lines of code are written.

c. A code block that repeats a process while a condition is True

d. A programming structure that allows you to save/store information for later use.

a. A sequence of characters that are enclosed by quotation marks.

100

How many levels were in code combat? 

19

100

Write the appropriate code to help your avatar use a door: 

hero.use("door") 

100

Which is the object, the method, and the string?

a. Student.learn(4)

b. teacher.teach ("math")

c. hero.attack (enemy1)

d. chef.cook ("Popcorn")

d. chef.cook ("Popcorn")

100

Who was the first computer programmer? 

a. Albert Einstein 

b. Mark Zuckerberg 

c. Ada Lovelace

d. Charles Babbage 

c. Ada Lovelace

200

What is a WHILE LOOP?

a. A sequence of characters that are enclosed by quotation marks.

b. A specific and valid line of code that tells a computer to perform a specific action.

c. A code block that repeats a process while a condition is True.

d. To find and fix problems in a program.

c. A code block that repeats a process while a condition is True.

200

What is the difference between INTEGERS and FLOATS? 

Integers are any positive or negative number. Floats are numbers with decimals. 

200

Write the appropriate code for your avatar to perform a jump up: 

hero.jumpUp

200

How would you right a while loop for your avatar who needs to move up three times, rights twice, and attack an enemy? 

while True:

        hero.moveUp(3)

        hero. moveRight(2)

        hero.attack(enemy1)

200

How many different programming languages exist? 

a. 200

b. 700

c. 300

d. 800

b. 700

300

What is a BOOLEAN? 

a. A sequence of instructions that can be used to solve a problem or set of problems.

b. A data type used to represent true and false.

c. The act of combining string values using the addition operator (+). 

d. The act of creating a new function/method/procedure.

b. A data type used to represent true and false.

300

How many times do you have to attack an ogre for them to be defeated? 

twice 

300

Identify the object, the method, and the argument in that order: 

hero                  jumpUP              3               jumpUP

jumpUP             hero             jumpUP                3

3                        3                 hero                hero



hero

jump

3

300

If your hero doesn't know the names of the enemy, what code would we create to help them attack whoever is closet to them? 

Hint: there are two you need to create

enemy1 = hero.findnearestenemy()

hero.attack(enemy1)

300

In the programming world, a bug is an error that causes a program to crash or behave in strange ways. Who coined the term "bug" when referring to computers? 

a. Ada Lovelace

b. Abe Lincoln

c. Thomas Edison

d. Albert Einstein

c. Thomas Edison

400

What does REASSIGN mean? 

a. Give a variable a new value.

b. A statement that allows a procedure/method/function to give back a value to its call statement.

c. A smaller string found inside of a larger string.

d. A sequence of characters that are enclosed by quotation marks.

a. Give a variable a new value.

400

What "language" were we using in Code Combat? 

a. English

b. Python

c. Javascript

d. Swahili

b. Python

400

How many levels are in Chapter 1 of Ozaria? 

a. 15

b. 20

c. 24

d. 10

c. 24

400

I am trying to defeat an ogre. What is the appropriate line of code(s)? 

hero.attack(enemy)

hero.attack(enemy)

400

What is the name for a computer hacker with malicious intent? 

a. Black hat

b. a bad guy

c. Pink beret

d. Grey hat 

a. black hat 

500

Define VARIABLE.

a. Give a variable a new value.

b. A sequence of characters that are enclosed by quotation marks.

c. A code block that repeats a process while a condition is True.

d. A programming structure that allows you to save/store information for later use.

d. A programming structure that allows you to save/store information for later use.

500

Name one of the Ogres in CodeCombat. 

Brak, Ursa, Gert, Kratt

500

What is the appropriate code for your avatar to build a right face arrow? 

Hint: there is more than one thing you need to perform.

hero.moveRight

hero.build("rightArrow")

500

My hero wants to move left. What line of code is needed?

hero.moveLeft

500

Computer Programming was instrumental in helping end _________. 

a. the great depression 

b. WWII

c. WWI

d. Pearl Harbor

b. WWII