IP: JavaScript & jQuery

IP: JavaScript & jQuery

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

Basic Printf

Basic Printf

1st - 10th Grade

10 Qs

PowerPoint Quiz 2

PowerPoint Quiz 2

9th Grade

13 Qs

Java Fundamentals

Java Fundamentals

12th Grade

10 Qs

WW2 : TLE QUIZ

WW2 : TLE QUIZ

9th Grade

11 Qs

BlueJ

BlueJ

10th Grade

10 Qs

𝐂𝐡𝐚𝐩𝐭𝐞𝐫 𝟐—The Blueprints for Modern Computers

𝐂𝐡𝐚𝐩𝐭𝐞𝐫 𝟐—The Blueprints for Modern Computers

10th Grade

10 Qs

BÀI KIỂM TRA 15P HK2 TIN HỌC 11

BÀI KIỂM TRA 15P HK2 TIN HỌC 11

11th Grade

10 Qs

Processing 10

Processing 10

10th Grade

10 Qs

IP: JavaScript & jQuery

IP: JavaScript & jQuery

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Allison Granstedt

Used 25+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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