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

  Class diagram represents the relationship between parents

Draw a class diagram that represents the relationship between parents, children, and grandparents. Take into account that a person can have both a parent and a child. Annotate associations with roles and multiplicities.

  Explain why the teller application can call the withdraw

Explain why the Teller application can call the withdraw and deposit methods using a SavingsAccount object reference, even though we did not define these methods

  Create a messageframe class extending jframe

Create a MessageFrame class extending JFrame and a MessagePanel class extending JPanel.

  Prepare a contact form and validate the data in java

Prepare a contact form and validate the data in JAVA - Validation should confirm that all input meets the requirements

  Simulate and implement a game of blackjack

In this project you will simulate a game of BlackJack. You will implement the logic for a round; you will also provide the user with the option to play another round or exit the game.

  Create an array of date objects

Create an array of Date objects of size 4. Initialize the array by using a loop. In the loop, use the Scanner.nextLine() method to input a date as a string, convert it to a date by using the toDate() method, and assign the result to an element in ..

  Complete the polyhedron hierarchy

Program takes three types of Polyhedra from an input file and constructs the appropriate objects - you will be completing the Polyhedron Hierarchy-specifically the Composite class.

  Find the smallest complex number

Given a "Complex" class with all the standard methods for complex numbers, design the static method below to find and return the smallest complex number.

  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.

  Implement a recursive method that evaluates the gcd

Implement a recursive method that evaluates the GCD of the given numbers - Use the above fact to create a recursive method in Java that computes and returns the gcd of two positive integers. Comment the code.

  Write a comparator class that compares products by price

Write a comparator class that compares Products by price. Declare a priority queue that uses the comparator class in number 3 to compare Products.

  Working with numeric variables

Create a Java program for the following application. (it is in the second chapter of my Intro to "Java Programming" book (Murach 4th Edition)It involves1. working with numeric variables2.using the System.out object to print output to console

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