Exam 6: Javascript: Introduction to Scripting

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following statements would correctly print out the sentence "Hello World" in blue

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

D

Which of the following is not a valid JavaScript equality or relational operator

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

A

In the following line, the word writeln is a(n) _________ that performs a task or action in the script. Document.writeln("Hello World");

Free
(Multiple Choice)
4.7/5
(28)
Correct Answer:
Verified

D

Which of the following operators associates from right to left

(Multiple Choice)
4.8/5
(38)

Consider the following script. What is wrong with the following code < script type = "text/javascript" > Var firstNumber; ThirdNumber; FirstNumber = window.prompt("Enter an integer", "0"); SecondNumber = window.prompt("Enter an integer", "0"); ThirdNumber = firstNumber + secondNumber; < /script >

(Multiple Choice)
4.8/5
(27)

Consider the following HTML5 code. < html > < script type = "text/javascript" > < !-- < !-- document.writeln("Hello World"); -- > //-- > < /script > < /html > What would a browser capable of scripting display when executing this code

(Multiple Choice)
4.7/5
(40)

Which of the following is not a valid variable name

(Multiple Choice)
4.9/5
(39)

Whenever a value is placed in a memory location, the value________.

(Multiple Choice)
4.9/5
(31)

Which of the following sequences does not follow the rules of operator precedence Assume that operators are evaluated in the order listed from left to right.

(Multiple Choice)
4.9/5
(37)

What will the browser display if the following script is executed and the user enters 5 at both prompts < script type = "text/javascript" > < !-- Var firstNumber = window.prompt( "Enter an integer", "0" ); Var secondNumber= window.prompt( "Enter an integer", "0" ); Var thirdNumber; ThirdNumber = firstNumber + secondNumber; Document.write( thirdNumber ); //-- > < /script >

(Multiple Choice)
4.8/5
(27)

An alert dialog displaying the text "Welcome!" is created by calling _________.

(Multiple Choice)
4.9/5
(43)

What does the following expression evaluate to ( ( 3 + ( 5 + 4 ) * 7 ) + 4 ) / 5

(Multiple Choice)
4.8/5
(35)

In the following line the word document is a(n) ______ that resides in the computer's memory. Document.writeln("Hello World");

(Multiple Choice)
4.7/5
(42)

What is the result of the statement 17 % 5

(Multiple Choice)
4.8/5
(31)
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)