Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1) What does a browser do when it encounters the following code in a web page? document.write( It works!); A) displays It works! in

Question 1)

What does a browser do when it encounters the following code in a web page? document.write( "It works!");

A) nothing
B) 3
C) x
D) x = 3
E) var x = 3;

Question 9)

What is the value of x after this code is executed? (It is inside SCRIPT tags). var y = 2; x = 1 + 2 * y + 3;

A) 0
B) 8
C) 9
D) 11
E) 15

Question 101 pts

What is displayed by the program below? (It is inside SCRIPT tags). var x = 3; var y = 4; document.write( (x + 1) ^ (y - 1) ;

A) 256
B) 81
C) 64
D) 9
E) nothing because there is a syntax error

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions