IP: JavaScript & jQuery
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Allison Granstedt
Used 25+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, how would I declare a constant myName?
constant myName = "Michael Phelps";
var myName = "Michael Phelps";
const MyName = "Captain Sparrow";
const myName = "Princess Buttercup";
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do I declare a variable named weekDay and set it to "Tuesday"?
weekDay = "Tuesday";
let weekDay = "Tuesday";
const weekDay = "Tuesday";
WeekDay = "Tuesday";
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Which of the options below should replace ??? if we wish to sprint on the console "Gonna get coal" when the variable naughty is true?
if (???) {
console.log("Gonna get coal");
} else {
console.log("Lots of presents!");
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, how do I call myFunction()?
myFunction();
myFunction;
call myFunction();
call function myFunction();
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select one or more of the following answers to this question: Why are functions useful in JavaScript?
I can give a function any name I want.
Descriptive function names help programmers to understand the program design.
Any function can be called by from any other place in your code (code reuse).
A function gathers together a group of code to perform a particular task and gives it a name.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, what symbolizes "is equal to"?
=
!=
===
==
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the jQuery statement $(document).ready() do?
It moves the <script> to the end of the HTML page.
It starts the script immediately.
It waits until the browser has finished downloading the web page to begin executing.
8.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select one or more of the following statements to answer this question: What is jQuery?
A JavaScript library
It contains dynamic behavior functions
It Implements drawing functions
9.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In JavaScript, what are 2 differences between variables and constants?
Variables may be used in an If-else statement; constants cannot.
Constants must be set when they are declared; variables can be set later.
Variables can be changed; constants cannot be changed.
Constants can be changed; variables cannot be changed
Similar Resources on Wayground
10 questions
Soal BAB V PemWeb
Quiz
•
12th Grade
10 questions
Introduction To Java: Hello World
Quiz
•
7th - 12th Grade
10 questions
Mid semester kelas XI RPL Konsep pemodelan berorientasi objek
Quiz
•
11th Grade
10 questions
KUIS EXCEL
Quiz
•
10th Grade
12 questions
Text File Pop Quiz
Quiz
•
11th Grade
10 questions
Kuis CSS Dasar (1) - TKJ/RPL
Quiz
•
10th Grade
10 questions
APLIKASI PENGEMBANGAN PERANGKAT BERGERAK
Quiz
•
11th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th 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
