Question 1 You must use the Java interpreter to translate the bytecode into executable statements be 1 answer below »

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper HERE Order a Different Paper HERE

Question 1

You must use the Java interpreter to translate the bytecode into executable statements before running a Java application.

True

False
.

1 points  

Question 2

You can use virtually any number of nested loops; however, at some point, your machine will no longer be able to store all the necessary looping information.

True

False
.

1 points  

Question 3

The ____ is the type to which all operands in an expression are converted so that they are compatible with each other.

a.
numbered

b.
unifying type

c.
data type

d.
primitive

.

1 points  

Question 4

The method ____ is the first line of a method.

a.
argument

b.
declaration

c.
statement

d.
address

.

1 points  

Question 5

A statement that will alter the value of the loop control variable is included in the body of a loop.

True

False
.

1 points  

Question 6

A variable comes into existence, or ____, when you declare it.

a.
goes out of scope

b.
overrides scope

c.
is referenced

d.
comes into scope

.

1 points  

Question 7

An alternative to importing a class is to import an entire package of classes.

True

False
.

1 points  

Question 8

If a compiler detects a violation of language rules, it refuses to translate the class to ____.

a.
machine code

b.
Java

c.
an application

d.
a logic error

.

1 points  

Question 9

The statements that make up a loop body will continue to execute as long as the expression value remains false.

True

False
.

1 points  

Question 10

When you run a Java application using the ____ command, do not add the .class extension to the filename.

a.
class

b.
static

c.
output

d.
java

.

1 points  

Question 11

When you execute an ifA????1else statement, only one of the resulting actions takes place depending on the evaluation of the ____ following the if.

a.
keyword

b.
independent statement

c.
else statement

d.
Boolean expression

.

1 points  

Question 12

The name of the ____ is always the same as the name of the class whose objects it creates.

a.
constructor

b.
variable

c.
method

d.
argument

.

1 points  

Question 13

When they have the same name, variables within ____ of a class override the classA????1s fields.

a.
packages

b.
methods

c.
fields

d.
statements

.

1 points  

Question 14

Application classes frequently instantiate objects that use the objects of other classes.

True

False
.

1 points  

Question 15

It is important that the loop control ____ be altered within the body of the loop.

a.
constant

b.
variable

c.
argument

d.
value

.

1 points  

Question 16

In the switch structure, break is followed by one of the possible values for the test expression and a colon.

True

False
.

1 points  

Question 17

A ____ data type can hold 14 or 15 significant digits of accuracy.

a.
float

b.
double

c.
char

d.
boolean

.

1 points  

Question 18

A locally declared variable always ____ another variable with the same name elsewhere in the class.

a.
masks

b.
deletes

c.
uses

d.
creates

.

1 points  

Question 19

Method names that begin with ____ and set are very typical.

a.
read

b.
next

c.
call

d.
get

.

1 points  

Question 20

The interface is the part of a method that the methodA????1s client does not see.

True

False
.

1 points  

Question 21

It is illegal to declare the same variable name more than once within a block.

True

False
.

1 points  

Question 22

The order of the conditional expressions in the following is most important within a(n) ____ loop.
while(requestedNum > LIMIT || requestedNum < 0)A????1

a.
pretest

b.
nested

c.
posttest

d.
indefinite

.

1 points  

Question 23

____ is the encapsulation of method details within a class.

a.
Implementation hiding

b.
An interface

c.
Instantiation

d.
A calling method

.

1 points  

Question 24

   public class First
   {
     public static void main(String[] args)
     {
        System.out.println(A????1First Java applicationA????1);
     }
   }

Given the above code, which item identifies the methodA????1s return type?

a.
static

b.
void

c.
public

d.
println

.

1 points  

Question 25

The ____ loop checks the value of the loop control variable at the bottom of the loop after one repetition has occurred.

a.
doA????1while

b.
for

c.
else

d.
while

.

1 points  

Question 26

You can use the ____, which is written as ||, if you want some action to occur when at least one of two conditions is true.

a.
switch statement

b.
conditional OR operator

c.
logical AND operator

d.
range check

.

1 points  

Question 27

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.

a.
DOS

b.
Java

c.
graphical

d.
Windows

.

1 points  

Question 28

When an object of one class is a data field within another class, they are related by ____.

a.
scope

b.
extension

c.
composition

d.
is-a

.

1 points  

Question 29

____ variables are variables that are shared by every instantiation of a class.

a.
Class

b.
Instance

c.
Time

d.
Integer

.

1 points  

Question 30

A ____ is a structure that allows repeated execution of a block of statements.

a.
loop control

b.
loop

c.
Boolean expression

d.
body

.

1 points  

Question 31

A(n) ____ is a program module that contains a series of statements that carry out a task.

a.
method

b.
application

c.
declaration

d.
argument

.

1 points  

Question 32

When a numeric variable is concatenated to a String, the entire expression becomes a(n) ____.

a.
method

b.
int

c.
constant

d.
String

.

1 points  

Question 33

When you overload a Java method, you write multiple methods with a shared name.

True

False
.

1 points  

Question 34

____ describes the feature of languages that allows the same word to be interpreted correctly in different situations based on the context.

a.
Insulation

b.
Polymorphism

c.
Source code

d.
Architecturally neutral

.

1 points  

Question 35

A(n) ____ loop is one that performs no actions other than looping.

a.
nested

b.
posttest

c.
indefinite

d.
do-nothing

.

1 points  

Question 36

Methods that retrieve values are called ____ methods.

a.
static

b.
accessor

c.
mutator

d.
class

.

1 points  

Question 37

When you issue the command to compile a class containing errors, the Java compiler does not produce any error messages. You will first need to run the class in order to see error messages.

True

False
.

1 points  

Question 38

If an objectA????1s methods are well written, the user is unaware of the low-level details of how the methods are executed, and the user must simply understand the interface or interaction between the method and the object.

True

False
.

1 points  

Question 39

Which of the following is NOT an initial value assigned to an objectA????1s data field by a default constructor?

a.
character fields set to Unicode A????1u0000A????1

b.
numeric fields set to 0

c.
Boolean fields set to true

d.
a field of object references set to null

.

1 points  

Question 40

In Java, when a numeric variable is concatenated to a String using the ____, the entire expression becomes a String.

a.
concatenate statement

b.
plus sign

c.
equal sign

d.
string statement

.

1 points  

Question 41

Another name for a nonstatic member class is a(n) ____.

a.
inner class

b.
anonymous class

c.
static member class

d.
local class

.

1 points  

Question 42

You can initialize more than one variable in a for loop by placing a(n) ____ between the separate statements.

a.
period

b.
equal sign

c.
comma

d.
semicolon

.

1 points  

Question 43

An alternative to using a Boolean expression, such as someVariable == 10, is to store the Boolean expressionA????1s value in a Boolean variable.

True

False
.

1 points  

Question 44

When a variable ceases to exist at the end of a method, programmers say the variable ____.

a.
goes out of scope

b.
is out of memory range

c.
is undeclared

d.
is lost

.

1 points  

Question 45

Before entering a loop, the first input, or ____, is retrieved.

a.
posttest loop

b.
loop body

c.
empty body

d.
priming read

.

1 points  

Question 46

How many times will outputLabel be called?
for(customer = 1; customer <= 20; ++customer)
     for(color = 1; color <= 3; ++color)
          outputLabel();

a.
0

b.
3

c.
20

d.
60

.

1 points  

Question 47

You can use the keyword final with methods or classes.

True

False
.

1 points  

Question 48

The reference to an object that is passed to any objectA????1s nonstatic class method is called the ____.

a.
magic number

b.
literal constant

c.
this reference

d.
reference

.

1 points  

Question 49

In order to improve loop performance, itA????1s important to make sure the loop does not include unnecessary operations or statements.

True

False
.

1 points  

Question 50

You use ____ operators to perform calculations with values in your programs.

a.
integer

b.
precedence

c.
calculation

d.
arithmetic

Any help is greatly apperciated.