Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What must be true of a JavaScript function to allow it to be used within an expression. Question 1 options: 1) Nothing; any JavaScript function

What must be true of a JavaScript function to allow it to be used within an expression.

Question 1 options:

1) Nothing; any JavaScript function can be used in an expression.
2) It must return a value of type other than "undefined."
3) It must have an explicit "return" operator.
4) It must be called with at least one argument.

Save

Question 2 (5 points)

image text in transcribed

A Web developer wants to let the browser determine the initial positions of an element on a page, but wants to be able to move it later by using JavaScript. What position parameter should the developer code?

Question 2 options:

1) Static
2) None; positioning by the browser is the default
3) Relative
4) Absolute

Save

Question 3 (5 points)

image text in transcribed

When variables are passed as arguments to a JavaScript function, are they passed by value or by reference? (Passing by reference is also called passing by name.)

Question 3 options:

1) By value.
2) By reference.
3) Scalars are passed by value and objects are passed by reference.
4) Scalars are passed by reference and objects are passed by value.

Save

Question 4 (5 points)

image text in transcribed

Some CSS names contain hyphens, for example, margin-left. JavaScript must be able to refer to CSS properties. How are such names expressed in JavaScript?

Question 4 options:

1) Delete the hyphen and capitalize the following letter: marginLeft.
2) No change is necessary: margin-left.
3) Delete the hyphen: marginleft.
4) Escape the hyphen with a backslash: margin\-left.

Save

Question 5 (5 points)

image text in transcribed

What does the JavaScript confirm( ) method do?

Question 5 options:

1) Displays a dialog box with the message given as an argument and with OK/Cancel buttons; returns true if OK is pressed, false if Cancel is pressed.
2) Displays a dialog box with the message given as an argument and with an OK button; always returns true.
3) Displays a dialog box with an input field containing the message given as an argument and returns true if the message is unchanged, otherwise returns false.
4) Sends a confirming message to the server that form data has been checked. The form name is passed as an argument.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logics For Databases And Information Systems

Authors: Jan Chomicki ,Gunter Saake

1st Edition

1461375827, 978-1461375821

Students also viewed these Databases questions

Question

Define the term organizational boundary.

Answered: 1 week ago

Question

3. What are the current trends in computer hardware platforms?

Answered: 1 week ago