Solve the expression:
6*4 + 18/3
What is 30?
A loop that repeats until a condition becomes false is called this.
What is a while loop?
What is the minimum number of parameters needed to call this function?
function drawBox(width, height, color)
What is 3?
Something triggered by a user action like clicking or typing is called this.
What is an event?
The Jacquard Loom used this technology to control patterns.
What are punched cards?
What allows a variable to be used from anywhere in the program?
What is global?
How many times will “Hello” print?
repeat 3 times {
repeat 5 times {
console.log("Hello");
}
}
What is 15 times?
Which variable is a parameter?
function total(price, tax){
let finalCost = price + tax;
return finalCost;
}
What is price or tax?
Which function runs code repeatedly every few milliseconds?
What is setTimer?
This computer scientist helped crack the German Enigma code during WWII.
Who is Alan Turing?
A variable declared inside a function is called this type of variable.
What is a local variable?
Choose the logical operator:
if(score > 70 _____ score < 100)
What is &&?
What is returned?
function multiply(a, b){
return a * b;
}
What is the product of a and b?
Which method runs a callback function when the mouse is clicked?
What is mouseClickMethod?
What type of AI creates new text, images, or music?
What is Generative AI?
This keyword sends a value back to where a function was called.
What is return?
What is the final value?
let num = 12;
let result = (num > 5) || (num < 2);
What is true?
What will print?
function main(){
let x = 4;
show(x);
console.log(x);
}
function show(num){
console.log(num + 6);
}
What is:
10
4
Which variable changes horizontal movement in animation?
What is dx?
This type of AI uses previous information to make predictions.
What is Predictive AI?
A block of reusable code that performs one specific task is called this.
What is a function?
What prints?
for(let i = 2; i < 12; i += 3){
console.log(i);
}
What is:
2
5
8
11
Functions that use parameters instead of hard-coded values are more __________.
What is reusable?
What code makes a bouncing ball reverse vertical direction?
dy = _____;
What is -dy?
Which development helped make computers easier for average people to use?
What is Graphical User Interface (GUI)?