Font size
S
M
L
XL
WorksheetsFOC II Exam
Total questions: 51
Worksheet time: 26mins
Name
Class
Date
1.
The assumptions we make and what must be true before the function is called is known as?
a)
Precondition
b)
Postcondition
c)
Adaptation
d)
Comments
2.
What is meant by the term "Design Thinking"?
a)
The ability to understand and share the feelings of another.
b)
Speaking in 3rd person, form of idea of, imagine or conceive.
c)
The first preliminary model of something.
d)
The creative strategies designers use to create experience and solutions to problems.
3.
Name the 5 Steps in the Design Cycle in ORDER:
a)
Test, Prototype, Ideate, Define, Empathize
b)
Empathize, Define, Ideate, Prototype, Test
c)
Empathize, Define, Prototype, Ideate, Test
4.
If Karel is facing South and the code is: turnAround(); which way will Karel be facing ?
a)
North
b)
South
c)
East
d)
West
5.
What can be used to teach Karel a new skill?
a)
Functions
b)
Variables
c)
Dog Treats
d)
Karel can do anything
6.
Walls represent the borders of Karel's world. Can Karel go through these walls?
a)
Yes
b)
No
7.
Which function will teach Karel how to spin in a circle one time?
a)
Option 1
b)
Option 2
c)
Option 3
d)
Option 4
8.
How many times should you call the start function in a program?
a)
0
b)
1
c)
2
d)
How many you like.
9.
What type of variable best represents the following line of code:
var numApples = 2;
a)
Integer
b)
Float
c)
Boolean
d)
String
10.
What type of variable best represents the following line of code?
var wantBushel = true;
a)
Integer
b)
Float
c)
Boolean
d)
String
11.
What type of variable best represents the following line of code?
var typeOfApple = "Pink Lady";
a)
Integer
b)
Float
c)
Boolean
d)
String
12.
What function do you need to call to ask the user of the program to enter text?
a)
readLine
b)
readLn
c)
text
d)
println
13.
A diagram that represents an algorithm or set of instructions is called a...
a)
Precondition
b)
Picture
c)
Flow Chart
d)
None of the above
14.
A set of steps (instructions) used to complete a task is an...
a)
Flow Chart
b)
Abstraction
c)
Decomposition
d)
Algroithm
15.
What is a street in a Karel world?
a)
A row
b)
A column
c)
A single point
d)
Karel's position
16.
The ability to understand and share the feelings of others is known as?
a)
empathy
b)
ideate
c)
iterate
d)
sympathy
17.
What is an avenue in a Karel world?
a)
A row
b)
A column
c)
A single point
d)
Karel's position
18.
If Karel is facing North and the code is:
a)
North
b)
South
c)
East
d)
West
19.
These skills are interpersonal (people) skills. They are harder to define and evaluate. They are known as
a)
team skills
b)
great skills
c)
soft skills
d)
hard skills
20.
What is top down design?
a)
Top down design is a way that you can create designs on a computer to put on a web page
b)
Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve.
c)
Top down design is a way of designing your programs starting with the individual commands first
d)
Top down design is a way to use loops and classes to decompose the problem
21.
Finding and fixing errors in programming is called?
a)
JavaScript
b)
Code
c)
Programs
d)
Debugging
22.
What is a code comment?
a)
A way to teach Karel a new word.
b)
A way to give notes to the reader to explain what your code is doing.
c)
A message to your teacher in code.
d)
A place to write whatever you want in your code.
23.
Why do we use if statements in JavaScript?
a)
To break out of some block of code.
b)
To repeat something for a fixed number of times.
c)
To do something while a condition is true.
d)
To do something only if a condition is true.
24.
which of these is not a soft skill?
a)
Coding
b)
Motivation
c)
Flexibility
d)
Leadership
25.
Why do we use if/else statements in JavaScript?
a)
To repeat something for a fixed number of times.
b)
To break out of some block of code.
c)
To either do something if a condition is true or do something else.
d)
To repeat something while a condition is true.
26.
What is a good example of a hard skill?
a)
Honesty
b)
Bachelor's Degree
c)
Communication
d)
Teamwork
27.
Why do we use while loops in JavaScript?
a)
To break out of some block of code.
b)
To do something if a condition is true.
c)
To repeat some code while a condition is true.
d)
To repeat something for a fixed number of times.
28.
You need to write a program that has Karel move if the front is clear, but if it is not clear, Karel will do nothing. Which control structure do you need to use?
a)
If Statement
b)
If / Else Statement
c)
While Loop
d)
For Loop
29.
You need to write a program where Karel will take a ball if there is a ball present, otherwise Karel should put down a ball. Which control structure do you need to use?
a)
If Statement
b)
If / Else Statement
c)
While Loop
d)
For Loop
30.
What type of error do we have if the program doesn't start running?
a)
Syntax Error
b)
Runtime Error
c)
Logic Error
d)
None of the Above
31.
Debugging Basics has two main strategies. They are ?
a)
Attention to Detail and Tricky Bugs
b)
Attention to Detail and Questioning Assumptions
c)
Questioning Assumptions and Tricky Bugs
32.
What function do you need to call to ask the user of the program to enter text?
a)
readLine
b)
readln
c)
text
d)
println
33.
The four steps of the problem solving process are:
a)
Reflect, Define, Try, Prepare
b)
Define, Try, Prepare, Reflect
c)
Define, Prepare, Try, Reflect
d)
Try, Prepare, Define, Reflect
34.
What type of error do we have when the program starts running, but doesn't do what it is supposed to do?
a)
Syntax Error
b)
Runtime Error
c)
Logic Error
d)
None of the Above
35.
What color would be created by the following lines of code?
a)
Black
b)
Yellow
c)
Green
d)
Red
36.
A store has 20 apples in its inventory. How can you store this information in a JavaScript variable?
a)
var numApples == 20;
b)
20 = numApples;
c)
var numApples = 20;
d)
var num apples = 20;
37.
What term means getting your ideas out of your head and into the physical world?
a)
testing
b)
prototyping
c)
iteratation
d)
ideate
38.
These skills are typically quantifiable type skills can be easily defined and evaluate. They are known as ?
a)
great skills
b)
soft skills
c)
hard skills
d)
team skills
39.
Why do we use functions in programming?
a)
Avoid repeating code
b)
Break down our program into smaller parts
c)
Make our program more readable
d)
All of the above
40.
What is the proper function to call to print to the screen?
a)
println
b)
write
c)
post
d)
PRINT
41.
What color would be created by the following hexadecimal value? OOFFOO
a)
Purple
b)
Orange
c)
Red
d)
Green
42.
What is done during the "try" step of the Problem Solving Process?
a)
Identify your constraints
b)
Put your plan into action
c)
Make a Plan
d)
Decide what can be improved
43.
In a graphics canvas, what are the coordinates of the bottom left corner of the window?
a)
0, getHeight();
b)
0, getWidth()
c)
getHeight(), getWidth()
d)
getWidth(), getHeight()
44.
What are the coordinates of the center of the canvas?
a)
getWidth(), getHeight()
b)
getWidth() / 2, getHeight() / 2
c)
getHeight() - getWidth(), getWidth() - getHeight()
d)
getHeight() / 2, getWidth() / 2
45.
Which of the following choices is a properly formed JavaScript variable name, meaning it is both legal in the JavaScript language and considered good style?
a)
first_name
b)
FirstName
c)
firstName
d)
First Name
46.
What is meant by "brainstorming several different solutions to the problem"?
a)
Gain Empathy
b)
Define the Problem
c)
Ideate Potential Solutions
47.
Since the Design Thinking Process is cyclical, we should go back and repeat any steps based on information we get from testing. The term for this is known as:
a)
Ideate
b)
Iterate
c)
Prototype
d)
Growth Mindset
48.
True or False? The point in Growth Mindset is to fail and see where we can improve.
a)
True
b)
False
49.
The user interface is the point where a user ______________ with your program
a)
Talks
b)
Evaluates
c)
Interacts
d)
Communicates
50.
True or False? Machine Learning is defined as how computers recognize patterns and make decisions without being explicitly programmed.
a)
True
b)
False
51.
Define features
a)
When a human trains a model to learn with examples
b)
The process of giving examples to a model so it can learn
c)
The inputs that the model uses to make decisions
d)
The output you are trying to decide or predict with a model
Reset
