Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago