Question: 1) Evaluate 19 % 7 2) Given: a = 3 and b = 2, evaluate: (10 % a ) * a * b / 3

1) Evaluate 19 % 7

2) Given: a = 3 and b = 2, evaluate:

(10 % a ) * a * b / 3 + (b * a)

3) Given the following code snippet, what will be displayed on the web page?

var X = 23;

var Y = 2;

var Z = 1+X * Y;

document.write(Z);

4) Given the following code snippet, what will be displayed on the web page if the user enters 55 at the prompt?

var Num = prompt("Enter a number:");

var result = Num + Num;

document.write(result);

5) Given the following code snippet, what will be displayed on the web page?

var X = 8;

var Y = 9;

var Z = X % Y;

document.write(Z);

6) What integer values of x would make the following statement true?

(x >= 3) && (x < 9)

7) What would the following code snippet display?

var x = 5;

if(x > 5)

document.write("Javascript is fun!");

else

document.write("Wrong!
");

document.write("JavaScript is not fun!");

8) What is the result of the following statement, given that count = 8?

if (count == 5)

9) What is the value of count when the following loop is exited?

var count = 2;

while( count < 20)

count=count*3;

10) How many times will "Happy Day!" display after the following code is executed?

var m = 3;

while ( m<=6) {

document.write("Happy Day!");

m++;

}

11) What will be displayed after the following loop is exited?

var name = "Javascript";

for(var x = 2; x < 0; x--)

document.write(name.charAt(x) + ", ");

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!