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

  Modeling the caves

Assignment 2 Description:  You are a mighty warrior, and armed with your trusty bow and 3 arrows, you enter The Caves in search of the mighty Wumpus. If you shoot the Wumpus, you are victorious and the masses will praise you, but if you stumble upon ..

  Implement the basic properties of a bank account

Define the class bankAccount to implement the basic properties of a bank account. An object of this class should store the subsequent data:

  Create servlet that display form when doget method is invoke

Create a Servlet that displays a form when the doGet method is invoked. The form will contain a post action that directs the form post back to the same servlet, which in doPost method will append the form data to a random access file.

  Write a small java application to read the file

Write a small Java program that uses the information you gained in part (a) to read the data in the database and print it to an output text file called accounts.txt

  The license plate game and csv parsing

Resulting method will correctly estimate that there are two syllables in quokka and two syllables in springbok, though it does get the number of syllables

  Explain security and permissions for the android platform

Briefly explain security and permissions for the Android Platform. Briefly describe some of the Android Platform Services. Describe the Android Platform Differences (complete, open, and free).

  The sixth amendment allows the due process right to council

The Sixth Amendment allows the due process right to council. Several Supreme Court cases have clarified this right for those who cannot afford their own attorneys. Discuss the right to an attorney for indigent defendants. What are the three main syst..

  Java application modeled after the game of hangman

Creating a Java application modeled after the game of hangman, where a user must guess a hidden word or phrase in a limited number of guesses.

  Develops algorithms for problem solving

The graduate designs and develops algorithms for problem solving and implements those algorithms using appropriate program code.

  Create exception classes

First, create three exception classes named NumberHighException, NumberLowException, and NumberNegativeException. Both NumberHighException and NumberLowException should be directly subclassed from the Exception class, but NumberNegativeException s..

  Write a java program that prints the numbers from 1 to 125

Write a Java Program that prints the numbers from 1 to 125. But for multiles of three print "Batman" instead of the number and for the multiples of five print "Superman". For instances which are multiples of both three and five "JusticeLeague".

  Support for cloud-based strategies

In this course, you are introduced to general Windows Server concepts like active directory, group policy, security, networking and IIS, access control, and much more. Now that you understand the basic concepts, we will delve a little deeper and l..

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