Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions