
Code.org functions
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Khalil Youssef
Used 8+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is true regarding naming functions?
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
How do you call a function in JavaScript?
(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
How many times will the following code print "Welcome to Java"?
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Computer Software
Quiz
•
8th - 12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
15 questions
CSS quiz No. 4 (4th qtr)
Quiz
•
10th Grade
10 questions
𝐂𝐡𝐚𝐩𝐭𝐞𝐫 𝟐—The Blueprints for Modern Computers
Quiz
•
10th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
15 questions
Basics in Java
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
