IP: JavaScript & jQuery

IP: JavaScript & jQuery

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

jenkins训练营

jenkins训练营

1st - 9th Grade

10 Qs

Design specifications

Design specifications

6th - 10th Grade

10 Qs

Menu-Menu pada Microsoft Excel Kelas A

Menu-Menu pada Microsoft Excel Kelas A

7th Grade - University

10 Qs

Interstate Competition

Interstate Competition

7th - 10th Grade

11 Qs

Programming Terminology

Programming Terminology

12th Grade

10 Qs

CPU and Cache

CPU and Cache

11th Grade

14 Qs

CSS - 10 grado

CSS - 10 grado

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

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