Programming of Multiple-Choice Assignment

Student Name:___________________________

Score: ______________________________


1-: Chapter 1, 2, 3, 8.

2. OCA: Chapter 1, 2, 3


Exercise on paper: (1 points each)

1. that accomplish each of the following tasks:

a) Display the message “Enter an integer: “, leaving the cursor on the same line.

b) Assign the product of variables b and c to variable a.

c) Use a comment to state that a program performs a .




2.Which of the following Java statements contain variables whose values are modified?

a) p = i + j + k + 7;

b) System.out.println(“variables whose values are modified”);

c) System.out.println(“a = 5”);

d) value = input.nextInt();




3.Given thaty = ax3 + 7, which of the following are for this equation?


a) y = a * x * x * x + 7;

b) y = a * x * x * (x + 7);

c) y = (a * x) * x * (x + 7);

d) y = (a * x) * x * x + 7;

e) y = a * (x * x * x) + 7;

f) y = a * x * (x * x + 7);


Following assignments are from OCA: OracleCertified Associate Java SE 8 Programmer I

Ch1- Review Questions

(hint: try out in your java program if not sure)

4.Whichof the following are ? (Choose all that apply)



A. A$B

B. _helloWorld

C. true

D. java.lang

E. Public

F. 1980_s




5.What is the output of the following program?


1: public class WaterBottle {

2: private String brand;

3: private boolean empty;

4: public static void main(String[] args) {

5: WaterBottle wb = new WaterBottle();

6: System.out.print(“Empty = ” + wb.empty);

7: System.out.print(“, Brand = ” + wb.brand);

8: } }

G. Line 6 generates a compiler error.

H. Line 7 generates a compiler error.

I. There is no output.

J. Empty = false, Brand = null

K. Empty = false, Brand =

L. Empty = null, Brand = null


6.In the following code block, which of the following are true?


4: short numPets = 5;

5: int numGrains = 5.6;

6: String name = “Scruffy”;

7: numPets.length();

8: numGrains.length();

9: name.length();



(Choose all that apply)


M. Line 4 generates a compiler error.

N. Line 5 generates a compiler error.

O. Line 6 generates a compiler error.

P. Line 7 generates a compiler error.

Q. Line 8 generates a compiler error.


R. Line9 generates a compiler error.

S. The code compiles as is.

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Need assignment help? You can contact our live agent via WhatsApp using +1 718 717 2861

Feel free to ask questions, clarifications, or discounts available when placing an order.
  +1 718 717 2861           + 44 161 818 7126           [email protected]
  +1 718 717 2861         [email protected]