
Code.org functions

Quiz
•
Computers
•
10th Grade
•
Hard

Khalil Youssef
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the correct format to define a function?
Note: The name of the Function is "multiplyBy2"
multiplyBy2();
function multiplyBy2(){
//steps to execute function
}
function multiplyBy2
multiplyBy2{5}{
//steps of function
}
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
(assume the function name is doStuff)
//list of steps to execute
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
His name is Fred and he is less than 16 years old
if (name = "fred" && age < 16 )
if (name === "fred" && age < 16 )
if (name = "fred" || age < 16 )
if (name === "fred" || age < 16 )
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Repeat something 10 times
repeat 10
for (var i=0; i<10; i++)
repeat { } until 10;
while (i = 10)
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
int count = 0;
while (count < 10) {
System.out.println("Welcome to Java");
count++;
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a loop that runs from 0 to 9. What goes in the blank space?
var i;
for ( i= 0 ; i < ___ ; i++ ) {
console.log (i);
}
10
9
5
4
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Hangman Game - Programming Questions

Quiz
•
7th - 11th Grade
10 questions
Excel Intro

Quiz
•
7th - 12th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
14 questions
2019 Macy's Thanksgiving Day Parade

Quiz
•
3rd - 12th Grade
15 questions
CS1 Unit 9 Review

Quiz
•
9th - 12th Grade
14 questions
p5.js Week1 PREtest

Quiz
•
7th - 12th Grade
15 questions
Películas

Quiz
•
10th Grade
15 questions
AutoCad

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade