IP: JavaScript & jQuery
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Allison Granstedt
Used 25+ times
FREE Resource
Enhance your content
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
TIK Kelas X
Quiz
•
10th Grade
10 questions
Installing and Carrying Out Variation of Application Software
Quiz
•
10th Grade
10 questions
Review Quiz #2- Productivity Tools
Quiz
•
11th - 12th Grade
13 questions
Spreadsheet Window Basics
Quiz
•
10th Grade
10 questions
Mastering Microsoft 365 Applications
Quiz
•
12th Grade - University
11 questions
Structured Programming
Quiz
•
9th Grade
10 questions
Asesmen Formatif Arduino
Quiz
•
12th Grade
13 questions
Computer Internal and External
Quiz
•
6th - 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
