Question
QUESTION 16 Using JavaScript to add dynamic behavior to a web page is called _____. client-side scripting server-side scripting remote procedure calls (RPC) document modification
QUESTION 16
-
Using JavaScript to add dynamic behavior to a web page is called _____.
client-side scripting
server-side scripting
remote procedure calls (RPC)
document modification analysis (DMA)
2 points
QUESTION 17
-
function code will normally execute ____
when the function is called
automatically when the page loads
2 points
QUESTION 18
-
In this statement x = 22.5
22.5 is called a literal value
22.5 is called a moniker
2 points
QUESTION 19
-
A JavaScript program can access the elements on a web page in the user's browser and do things to those elements.
True
False
2 points
QUESTION 20
-
the comparison operator != means not equal to.
True
False
2 points
QUESTION 21
-
This code
x = 5 % 2;
assigns 1 to x
assigns 2 to x
assigns 2.5 to x
2 points
QUESTION 22
-
What happens when this code executes?
x = 76 + "trombones";
the string "76trombones" is assigned to x
a new variable named 76trombones is created
you will get an error for trying to add a non-number.
the string "76 trombones" is assigned to x
2 points
QUESTION 23
-
JavaScript can detect user actions like _____.
mouse clicks and keyboard action
imagining what a vanilla milkshake would taste like
trip the lights fantastic
make lemonade out of lemons
2 points
QUESTION 24
-
Your book's description of the array slice method is not correct. Answer this question as true for 2 easy points. (this is not a trick)
True
False
2 points
QUESTION 25
-
This code
x += 1;
adds one to the previous value of x
makes x = 1 no matter what it was before
2 points
QUESTION 26
-
Variables declared in a function have _____ scope.
local
global
all of the above
intermediate
2 points
QUESTION 27
-
A browser loads a web page from top to bottom. The stuff at the top will be seen by the browser before the stuff at the bottom.
True
False
2 points
QUESTION 28
-
JavaScript does not have much, if anything, to do with the Java programming language.
True
False
2 points
QUESTION 29
-
Your html form is named f1. The form has a textbox with an id = 'age' and a name = 'userAge'. Assume the user types a number into the textbox. Which of the following would successfully assign the value entered to the variable x?
x = document.f1.userAge.value;
x = document.form1.userAge.value;
x = document.getElementByid("userage").value;
x = document.getElementByid("f1.age").value;
2 points
QUESTION 30
-
Functions are one of the basic building blocks of JavaScript.
True
False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started