Final Review - Unit 4
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
William Kelly
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
10 mins • 1 pt
Which of these are correct methods to create a function?
function myFunction {
// Some code }
function myFunction[] {
// Some code }
function myFunction() {
// Some code }
function myFunction(x, y, z) {
// Some code }
2.
MULTIPLE SELECT QUESTION
10 mins • 1 pt
Given the following code, which is considered the parameters of the function
function myFunction(a, b, c) {
var x = a + b + c;
}
x
a
b
c
3.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Given the following code, what is the final value of x?
var x = 0;
function myXFunction() {
x = x + 10;
}
x = x + 1;
11
0
10
1
4.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
What should go into the indicated location make the final value of x = 11?
var x = 0;
function myXFunction() {
x = x + 10;
}
WRITE CODE HERE
x = x + 1;
function myXFunction()
MYXFUNCTION()
myXFunction()
myxfunction()
5.
FILL IN THE BLANK QUESTION
10 mins • 1 pt
Fill in the blanks to allow the following button invoke the myFunction function when clicked
<button id="myButton" ________ />
function myFunction() {
//Some Code }
6.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Which of the following code will allow the button to invoke hisFunction?
<button id="myButton" value="Click Me" ________ />
function hisFunction(X, Y) {
//Some Code }
onclick = "hisFunction()"
onclick = "hisFunction"
onclick = "hisFunction(1)"
onclick = "hisFunction(1, 2)"
7.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
What code will result in the above?
alert("Please enter your phone number:")
confirm("Please enter your phone number:")
prompt("Please enter your phone number:")
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
17 questions
Bilişim Teknolojileri 6.Sınıf Yıl Sonu Tekrar Testi
Quiz
•
6th Grade - Professio...
15 questions
End of term assessment
Quiz
•
9th Grade
15 questions
KS4 - Representing Images
Quiz
•
9th - 11th Grade
20 questions
Lớp 5. Định dạng và bố trí hình ảnh trong văn bản
Quiz
•
5th Grade - University
20 questions
technopreneur
Quiz
•
10th Grade
20 questions
ASJ XI 22
Quiz
•
12th Grade - University
16 questions
D'où vient internet?
Quiz
•
9th - 10th Grade
20 questions
LATIHAN SIMDIG
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
