Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 11 What is displayed by the program below? (It is inside SCRIPT tags) v

ID: 3725415 • Letter: Q

Question

Question 11

What is displayed by the program below? (It is inside SCRIPT tags)

var x = 1;
document.write( y );
var y = x + 2;

1

2

3

4

some strange undefined value

Question 12

All of the statements below have no syntax errors. Which statement is not being used for its intended purpose?

var firstName = window.prompt( "Enter your name");

window.prompt("Enter your age");

window.alert("Hello there");

var x = 3;

all statements above are used the right way

Question 13

What is the value of x after the code below is placed inside of <script> tags executed?

(all strings are denoted with " " quotation marks just as JavaScript requires them)

var x = "a";
var y = "1";
x = x + y;

"1a"

"a1"

"ax"

"y1"

none of the above

Question 14

Single, individual JavaScript statements can appear anywhere within a web page, mixed in with HTML statements. They do not have to be inside script tags.

True

False

Question 15

All information that a user enters into a prompt() box is text, including digits. If you want to do calculations with numbers entered by the user into a prompt() box, you have to send that input through a parsing function.

True

False

Question 16

In the following JavaScript statement, jumble() is the name of a method and tumble is the name of an object.

tumble.jumble()

True

False

1

2

Explanation / Answer

Question 11 :some strange undefined value

Question 12 : all statements above are used the right way


Question 13 : a1


Question 14 : false

Question 15 :
True


Question 16 : True

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote