




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





if a String variable called greeting contains the characters "hello" what does the following expression do:
if a string variable called pioneer contains the characters "Grace Murray Hopper", what is the result of the following expression:
given the following declaration which expression would extract the substring "ledge"
what output would be produced when the following is executed: String state = "Mississippi";
If a String variable called address contains the characters "123 Main Street", what is the result of the following expression:
which statement would produce the following output?
Pah Oom Pah Pah," that's how it goes."); which of the following literals is NOT valid: a. '"' b. ""\n" c. ""\n""
what is the output of the following statement:
code for a particular Unicode character
sequence
ordering
supplementary characters
if (total > 8)
processing continues what output is printed by the following code if it is executed when appetizer is 3 and entree is 12? if (appetizer > 1) if (entree < 7) System.out.println("ketchup"); else System.out.println("mustard"); else if (appetizer < 0) System.out.println("mayonnaise"); else
What is wrong with the following code: if (count > 5) if (sum < MAX) System.out.println("cattywampus"); else
processing Of the options given, what values of the variables height, size, and width would cause the following code to set the variable weight to 100? if (height < size) { weight = 50; if (width < 20)
System.out.println("short"); } else { if (width > 100) weight = 100; System.out.println("tall"); } a. height = 15, size = 10, width = 110 b. height = 15, size = 25, width = 50 c. height = 20, size = 12, width = 90
arithmetic
can
the exclusive or operator (^) produces/does not produce results that are opposite to the regular or
If the value of num is 7 and the value of max is 10 what is the value of num after the following statement is executed:
What does the following statement print:
if count is negative
the Java - ___ is a repetition statement, or loop, allowing you to execute a set of programming
return type