Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

JavaScript Questions

Question 1

What will the output be from the following code segment?var result;var problem = 37 % 7;document.write("

The value of result is " + problem +".

");

A. The value of result is 7.

B. The value of result is 5.2.

C. The value of result is 35.

D. The value of result is 2.

Question 2

Which of the following uses correct syntax to receive a value stored in totalCost? The value is beingreturned by a function named grandTotal (which is of type double)into a variable nameddiscountValue.

A. discountValue=grandTotal;

B. discountValue = totalCost;

C. grandTotal(totalCost)=discount(value);

D. discountValue = grandTotal(totalcost);

Question 3

What is the value of returnValue after the following code has been executed?x = "150";y = "100";returnValue= x + y;

A. You cannot perform a mathematical operation on these values. An error message will be generated.

B. 150100

C. 250

D. 150

Question 4

When you assign a string value to a variable, you must enclose the text in quotation marks.

True

False

Question 5

Web pages are identified by a unique address called a:

A. Uniform Resource Locator

B. Uniform Response Locator

C. Universal Resource Locator

D. Uniform Resource Link

Question 6

Declaring a variable is the same as initializing a variable.

True

False

Question 7

What is the value of returnValue after the following code has been executed?x = "150";y = "100";returnValue= x - y;

A. 50

B. You cannot perform a mathematical operation on these values. An error message will be generated.

C. 150100

D. 150

Question 8

An object name that is followed by parentheses represents an array.

True

False

Question 9

What is the printed after the following code has been executed?var x(10);var i = 3;x(i) = 7;document.write("

The stored value is " + x(3) +".

");

A. 10

B. 3

C. 7

D. 13

Question 10

A(n) _____ statement is used by a function to return a value.

A. return

B. Assignment

C. Call

D. Pass

Question 11

Define and discuss three of the following Array methods:

•join

•slice

•shift and unshift

•pop

•concat

•sort.

Java, Programming

  • Category:- Java
  • Reference No.:- M91771651
  • Price:- $45

Priced at Now at $45, Verified Solution

Have any Question?


Related Questions in Java

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assignment - method in our madnessthe emphasis for this

Assignment - "Method in our Madness" The emphasis for this assignment is methods with parameters. In preparation for this assignment, create a folder called Assign_3 for the DrJava projects for the assignment. A Cityscap ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As