
Intro to JavaScript
Authored by Ebeliz Rodriguez
Computers, Other
9th - 12th Grade
Used 51+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let's say you defined a function called startTheParty in your program. What line of code would call that function?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to define a function for drawing houses and then use it to draw multiple houses. Where should you define that function?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these lines of code correctly define a function?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these lines of code define a function that takes 2 parameters?
var note, tempo;
};
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have a function named funkyFunc that takes 2 parameters. What line of code validly calls it and passes in 2 values?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You've defined a function named calcAge that takes three parameters (day/month/year) and returns a value. How do you call that function and store the resulting value?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword do you need to use if you want your function to return a value?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?