Thinking Like a Computer
Wrangling Data
Loops and Logic
Functions and Algorithms
Trivia Test
100

What is programming?

Writing in the language of a computer

Coding

100

These hold various values - you can declare, assign, or change their values.

Variables

100

If I did my homework, I'll go to the movies.

Else, I'll stay home.

What kind of statement is this?

if-else statement

100

A function works like a special machine that takes in any kind of input and produces a certain _____?

output

100

How many cards are in a standard deck of playing cards?

52

200

Breaking down a problem into multiple steps (like a computer does) is called _________ thinking.

computational

200

What are the two return values for the Boolean data type?

(What two values can it store or give?)

True/false

1/0

200

What does a loop do?

Makes a series of instructions/piece of code repeat

+50: until a given condition is met

200

What value will this function return?

int x = 5;

multiplyByFive(x);

25

And the full function would look something like this in Java:

public int multiplyByFive(int x){

        return x * 5;

}

200

Which country invented fireworks?

China

300

What is the YWiC definition for Computer Science?

The creation and adaptation of technology.

300

What are the two most common numerical data types?

(Data types that are used for numbers)

int and double

300

What are >, <, ==, != all examples of?

comparators

300

What is the YWiC definition of an algorithm?

A process to follow to solve a problem

A set of instructions

300

What is the number one best-selling book of all time?

The Bible

(with over 5 billion copies estimated to have been sold by 2015)

400

What are the three most important words in this sentence? (What three words are left over after abstraction?)


The gigantic, colorful butterfly flew higher and higher into the sky.

The butterfly flew

400

Name four data types commonly used in programming.

int, double, char, boolean, String, float, short, long, byte

400

One repetition of a loop is called a what?

iteration

400

Which of the following are algorithms?


Making a peanut butter and jelly sandwich

Performing your morning routine

Doing your daily chores


All of them

400

What is the only country in the world with purple on its flag?

Dominica

500

Who used computational thinking below?


Yuki planned out the best route to take to her friend's house before leaving.

Mariposa wandered around town until she found a restaurant to eat at.

Sarahi made a step-by-step battle strategy to defeat a tough video game boss.

Yuki and Sarahi

500

Which common data type is also actually a data structure?

String

500

This type of sequence can sometimes be complex, and is formed of multiple if-else statements or switch statements.

branching sequence
500

What is one reason why functions are useful in programming?

They make code shorter

They make code neater/easier to read

They allow programmers to perform certain tasks on pieces of code repeatedly

**Other answers also accepted


500

Name one species of animal that is actually immortal.

OR

Name the first animal that has ever been known to survive complete exposure to outer space.

Immortal jellyfish

Planarian flatworm

Hydra

--------------------------------------------------

Tardigrade / Water-bear

M
e
n
u