Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Question 1.
Which of the following is NOT a component of a variable declaration statement?
Data type identifier
Symbolic constant
Variable name
Ending semicolon

Question 2.
A __________ is a named memory location that you can use to store a value.
cast
variable
reference
primitive

Question 3.
In a __________ environment, you can change directories using the cd command. For example, to change to a directory named MyClasses, you type cd MyClasses and press Enter.
Windows
Java
graphical
DOS

Question 4.
__________ variables are variables that are shared by every instantiation of a class.
Integer
Instance
Class
Time

Question 5.
You can store any character, including nonprinting characters such as a backspace or a tab, in a(n) __________ variable.
int
char
boolean
set

Question 6.
When an application contains just one version of a method, you can call the method using a(n) __________ of the correct data type.
parameter
scope
output
constructor

Question 7.
A(n) __________ variable can hold only one of two values: true or false.
integer
Boolean
true
comparison

Question 8.
A method can receive __________ arguments, even if it is defined as needing double arguments.
string
integer
constructor
send

Question 9.
A unique identifier is most likely used as a __________ key in a database.
special
public
static
primary

Question 10.
If a compiler detects a violation of language rules, it refuses to translate the class to __________.
an application
a logic error
machine code
Java

Question 11.
__________ refers to the hiding of data and methods within an object.
Instance
Inheritance
Passed
Encapsulation

Question 12.
In Java, when a numeric variable is concatenated to a String using the __________, the entire expression becomes a String.
plus sign
equal sign
concatenate statement
string statement

Question 13.
After a successful compile, you can run the class file on any computer that has a __________.
Java language interpreter
web browser
text editor
DOS

Question 14.
A(n) __________ variable is known only within the boundaries of the method.
method
local
double
instance

Question 15.
A locally declared variable always __________ another variable with the same name elsewhere in the class.
creates
masks
deletes
uses

Question 16.
A __________ is an error not detected until the program asks the computer to do something wrong or even illegal, while executing.
syntax error
runtime error
package
Java API

Question 17.
The percent sign is the __________ operator.
remainder
remaining
percentage
integer division

Question 18.
A data item is __________ when it cannot be changed while a program is running.
variable
constant
primitive
literal

Question 19.
A __________ data type can hold 14 or 15 significant digits of accuracy.
double
float
char
boolean

Question 20.
Java contains a class named __________ that allows you to produce dialog boxes.
JBox
JOptionPane
JDialog
JGUI

Java, Programming

  • Category:- Java
  • Reference No.:- M91944746
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Java

Solving 2nd degree equationsbull write the following java

Solving 2nd degree equations • Write the following Java methods • boolean real-sols(double a, double b, double c): it returns true if the 2nd degree equation ax2 + bx + c has real solutions • double solution1(double a, d ...

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 ...

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 ...

Assignment - java program using array of objectsobjectives

Assignment - 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 Menu ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

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 instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

  • 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