A compiler could discover all of the following programming errors, except
___________________________. - ANS-newBalanceDue calculated by means of adding
customerPayment to oldBalanceDue as opposed to substracting it
A do-even as loop continually executes _____________________. - ANS-one or extra times
A graphical interface used to expand and debug Java applications is known as:
_______________________________. - ANS-an Integrated Development Environment
(IDE)
A organization of statements that execute as a unit is a _____________________. -
ANS-block
A Java item may be a area in any other Java object. - ANS-True
A programmer's most important mission earlier than planning the good judgment to a
application is to ________________________. - ANS-understand the trouble
A programming language's regulations are its ________________________. - ANS-syntax
A variable declared as type double can save _____________________. - ANS-a 64-bit
value used to symbolize numbers with fractional elements
All choice statements should have _________________________ - ANS-an if clause
Assume that a is 10 and b is 20. Which of the subsequent evaluates to real? - ANS-a <= 10
OR b > a AND a <> b?
Assume that you have created a class named Dog that incorporates a statistics discipline
named weight and an instance method named setWeight(). Further assume that the
setWeight() approach is public and accepts a numeric parameter named pounds. Which of
the subsequent statements efficiently sets a Dog's weight in the setWeight() method? -
ANS-weight = pounds
Assume the following (int) values for a fixed of variables:
a = five; b = 17; c = 27; d = -1;
Then, does the following boolean expression examine as genuine or false?
((a < 5) && (b > 10)) 3zero)) - ANS-proper
Consider the following code fragment:
for (int i=zero; i<10; ++i)
for (int j=zero; j<10; ++j)
, System.Out.Println("Hello");
How generally does the code fragment print the word "Hello"? - ANS-a hundred instances
Consider the subsequent code fragment:
for (int i=five; i<=7; ++i) System.Out.Println(i);
The code will print: - ANS-5
6
7
if a > b? Is fake, then which of the following is constantly genuine? - ANS-a <= b?
If you mistakenly pass over the announcement that alters a loop manage variable, the
maximum likely end result is _____. - ANS-an countless loop
If you need to examine the String variable myvar and the literal "Yes" which boolean
expression could you operate? __________________________ -
ANS-("Yes".Equals(myvar))
In the following pseudocode how in many instances is "Adios" output if p = 2 and q = 4?
Whilst p < q
output "Adios"
r=1
at the same time as r < q
output "Adios"
r=r+1
endwhile
p=p+1
endwhile - ANS-eight
In the following pseudocode, how frequently is "Adios" output if p = 2 and q = four?
At the same time as p < q
output "Adios"
r=1
even as r < q
output "Adios"
r=r+1
endwhile
p=p+1
endwhile - ANS-eight
In the subsequent pseudocode, how frequently is Goodbye output if j = 2, okay = 5, and n =
nine?
Whilst j < ok
m=6
while m < n