What is wrong with the given syntax

Assignment Help JAVA Programming
Reference no: EM131353997

Question 1

You want to display a message on your Web page to users that don't have JavaScript enabled in their browser. Which of the following code snippets below performs this?
A. <!--You don't have JavaScript enabled //
B. <!--You don't have JavaScript enabled//
C. if (NOSCRIPT) You don't have JavaScript enabled
D. <NOSCRIPT>You don't have JavaScript
enabled</NOSCRIPT>

Question 2

What are the <NOSCRIPT> tags used for?
A. To turn off JavaScript on the users computer.
B. To disable JavaScript on the Web site.
C. To enclose a message inside the tags for users who don't have JavaScript enabled on their browser.
D. To indicate a Java Applet.

Question 3

A children's site wants to ask its users what 4 + 4 equals. Which method is best for obtaining the correct answer from the users?
A. alert()
B. prompt()
C. confirm()
D. request()

Question 4

Which of the following code snippets displays the proper use of the for loop?
A. for (i=10, i>5, i--) {
}
B. for (i=10; i>5; i--)
}
C. for ("i=10, i>5, i--") {
}
D. for i=10, i>5, i--{
}

Question 5

What does the following code do?
setTimeout("myFunction()", 100)
A. Executes myFunction 100 times
B. Executes myFunction after a counter reaches 100
C. Executes myFunction after pausing for 100 milliseconds
D. Executes myFunction for 100 milliseconds

Question 6

JavaScript refers to images by their __________ attribute.
A. GIF
B. JPEG
C. NAME
D. IMG

Question 7

When creating a rollover, the mouse event handlers must be placed in the __________ tag.
A. <A></A>
B. <IMG>
C. <SCRIPT></SCRIPT>
D. <MOUSE></MOUSE>

Question 8

The statement if (document.images) checks to see if the:
A. computer recognizes images.
B. browser recognizes JavaScript.
C. browser can preload the images.
D. browser recognizes image objects.

Question 9

When creating image rollovers, the images involved must have the same __________.
A. image type
B. size dimensions
C. color
D. subject matter

Question 10

A semicolon in a JavaScript marks the end of a __________.
A. line
B. function
C. method
D. statement

Question 11

A/An __________ references individual items in an array.
A. arrayIndex
B. arrayindex
C. subscript
D. superscript

Question 12

The __________ statement appears after the JavaScript statement in each case.
A. break
B. option
C. array
D. select

Question 13

To create an image object that can be referenced by JavaScript code, you must add the _________ attribute to the HTML IMG SRC tag.
A. object
B. form
C. name
D. event handler

Question 14

What is wrong with the following syntax?
function notify()
alert("You triggered a function")
A. There is no space between notify and ().
B. The braces { } are missing.
C. function should be capitalized.
D. You can't have a method in a function.

Question 15

An alternative to the If ... Else statement to test for multiple conditions is the __________ statement.
A. switch
B. array
C. while
D. index

Question 16

An __________ is a collection of data items, represented by one variable name.
A. index
B. array
C. alert
D. event handler

Question 17

The __________ method returns the number of milliseconds that have elapsed since 12:00 a.m., January 1, 1970.
A. getTime()
B. getDate()
C. timeNow()
D. secondsTime()

Question 18

One of the three steps necessary to create a rolling banner is to create an __________ object.
A. image
B. index
C. index of
D. initialization

Question 19

The __________ HTML tag is a form element used to define a selection list.
A. <LIST>
B. <SELECT>
C. <INDEX>
D. <BUTTON>

Question 20

Using the recursive method of setTimeout("myFunction()",5000) creates a delay of:
A. 5 seconds.
B. 5,000 seconds.
C. 50 seconds.
D. 5 minutes.

Reference no: EM131353997

Questions Cloud

Transition element and talk about the element physical : Pick one of the transition element and talk about the element's physical, chemical properties, preparation, discovery, and industrial application of that element.
Compare poems from a single poet : DAT 520- You may compare poems from a single poet, or compare poems across poets. Have a debatable, persuasive claim and focus on specific points of comparison, using the Lesson to guide your structure.
Aqueous solutions of ammonium chloride : Given 0.1-M aqueous solutions of ammonium chloride (NH4Cl) and ammonia (NH3) to the so- lution of that weak base. Calculate the volumes of salt and ammonia to be mixed, in order to make 50 mL of a buffer solution with pH = 9.0. The ammonium ion (N..
Milligrams of calcium carbonate are in a rolaids tablet : A Rolaids tablet contains calcium carbonate for neutralizing stomach acid. If a Rolaids tablet neutralizes 24.65 mL of 0.547 M hydrochloric acid, how many milligrams of calcium carbonate are in a Rolaids tablet?
What is wrong with the given syntax : What is wrong with the following syntax? One of the three steps necessary to create a rolling banner is to create an __________ object. The __________ HTML tag is a form element used to define a selection list.
What forms of water will be present at equilibrium : A 0.025 g sample of H2O is injected into a 1.00 L flask at 30.0 °C. What forms of water will be present at equilibrium? Vapor pressure of water at 30.0 °C is 31.8 mm Hg.
Substantial difference in boiling between ethanol : What is hydrogen bonding and how might hydrogen bonding be used to explain the substantial difference in boiling between ethanol CH3CH2OH (grain alcohol) and dimethyl ether (CH3OCH3)?
Arrow-pushing mechanism for the formation of product : Write a rational arrow-pushing mechanism for the formation of this product (when alpha-pinene is reacted with aqueous sulfuric acid). And then write a rational arrow-pushing mechanism for the formation of the decomposition product.
Do you think that aschs experiments were unethical : Do you think that Asch's experiments were unethical? What information would you include in the informed consent form for study subjects, if you were Solomon Asch, and what would you say to them during a debriefing?After thinking about Asch's rese..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd