What is programming?
Writing in the language of a computer
Coding
These hold various values - you can declare, assign, or change their values.
Variables
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
A function works like a special machine that takes in any kind of input and produces a certain _____?
output
How many cards are in a standard deck of playing cards?
52
Breaking down a problem into multiple steps (like a computer does) is called _________ thinking.
computational
What are the two return values for the Boolean data type?
(What two values can it store or give?)
True/false
1/0
What does a loop do?
Makes a series of instructions/piece of code repeat
+50: until a given condition is met
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;
}
Which country invented fireworks?
China
What is the YWiC definition for Computer Science?
The creation and adaptation of technology.
What are the two most common numerical data types?
(Data types that are used for numbers)
int and double
What are >, <, ==, != all examples of?
comparators
What is the YWiC definition of an algorithm?
A process to follow to solve a problem
A set of instructions
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)
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
Name four data types commonly used in programming.
int, double, char, boolean, String, float, short, long, byte
One repetition of a loop is called a what?
iteration
Which of the following are algorithms?
Making a peanut butter and jelly sandwich
Performing your morning routine
Doing your daily chores
All of them
What is the only country in the world with purple on its flag?
Dominica
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
Which common data type is also actually a data structure?
String
This type of sequence can sometimes be complex, and is formed of multiple if-else statements or switch statements.
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
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