Question: A: Multiple Choice [10 marks] Write your answer clearly in the space provided (the boxes on the right-hand side of possible answers). Your answer must

 A: Multiple Choice [10 marks] Write your answer clearly in the

A: Multiple Choice [10 marks] Write your answer clearly in the space provided (the boxes on the right-hand side of possible answers). Your answer must be capitalized. 1. What is the accessibility of a default (no access modifier) attributei? (A) Any class in the same package has access to this attribute (B) Only the class itself has access to the this attribute (C) Only the class and its subclasses have access to this attribute 2. Consider method overriding. Which object-oriented programming principle is method overriding NOT a part of? (A) Polymorphism (B) Encapsulation (C) Inheritance 3. How many primitive data types does Java have? (A) 4 (B) 8 (C) There is no limit to how many of these data types can be created 5. Consider the foo method: public static Stirng grade(double x) // parpose: returns the letter grade associated with the input value // precondition: 0 100 // postcondition: returns the correct letter grade Which of the following is NOT a black-box border case? (A) x-80 (B) 82 (C) x-86

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!