Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

FGGGG Moving to the next question prevents changes to this answer. stion 17 In Object-oriented programming Encapsulation means in general Attributes are private and methods

image text in transcribedFGGGGimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

image text in transcribed

Moving to the next question prevents changes to this answer. stion 17 In Object-oriented programming Encapsulation means in general Attributes are private and methods are private Attributes are private and methods are public Attributes are public and methods are public Attributes are public and methods are private Moving to the next question prevents changes to this answer. Moving to the next question prevents changes to this answer. Uestion 18 is used to create an object. Class Constructor User-defined functions In-built functions Moving to the next question prevents changes to this answer. Moving to the next question prevents changes to this answer. Question 22 Which of the following is a valid declaration of an object of class Box? new Box obj; Box obj = new Box [] ; Box obj = new Box(); obj = new Box(); Moving to the next question prevents changes to this answer. Moving to the next question prevents changes to this answer. lestion 21 A class can be abstract even if it don't contain any abstract method True False Moving to the next question prevents changes to this answer. This test does not allow backtracking. Changes to the answer after subr Remaining Time: 43 minutes, 46 seconds. Question Completion Status: Moving to the next question prevents changes to this answer. Question 20 An abstract class can be instantiated using the new operator True False Moving to the next question prevents changes to this answer. Moving to the next question prevents changes to this answer. This relationship means : Aggregation Composition Inheritance Encapsulation Moving to the next question prevents changes to this answer. Moving to the next question prevents changes to this answer. lestion 23 A class can implement multiple interfaces in java True False Moving to the next question prevents changes to this answer. Moving to the next question prevents changes to this answer. Question 24 For the class Car which of the following could be a copy constructor? Public Car (int name); Public void Car (Car C); Public Car (Car C); Public Car(); Moving to the next question prevents changes to this answer. Moving to the next question prevents changes to this answer. uestion 25 An object file cannot contain object and primitive datatype at the same time True False Moving to the next question prevents changes to this answer. Instructions Timed Test This test has a time limit of 50 minutes. This test will save and submit automatically when the time expires. Warnings appear when half the time, 5 minutes, 1 minute, and 30 seconds remain. Multiple Attempts Not allowed. This test can only be taken once. Force Completion. This test can be saved and resumed at any point until time has expired. The timer will continue to run if you leave the test. This test does not allow backtracking. Changes to the answer after submission are prohibited. Remaining Time: 42 minutes, 00 seconds. Question Completion Status: Moving to the next question prevents changes to this answer. Question 26 Overloading allows a subclass or child class to provide a specific implementation of a method that is already provided by one of its super-classes or parent classes True False Moving to the next question prevents changes to this answer. Moving to the next question prevents changes to this answer. Question 27 The default value for an object is Null 0 "luooo" 1 Moving to the next question prevents changes to this answer. Moving to the next question prevents changes to this answer. lestion 28 An object file must contain only one data type True False Moving to the next question prevents changes to this answer. Remaining Time: 41 minutes, 18 seconds. Question Completion Status: Moving to the next question prevents changes to this answer. Question 29 What restriction is there on using the super reference in a constructor? It can only be used in the parent's constructor. Only one child class can use it. It must be used in the last statement of the constructor. It must be used in the first statement of the constructor. Moving to the next question prevents changes to this answer. Click Submit to complete this assessment. Question 30 Variable which is shared by all the instances of the class is declared using the keyword Static Final Const Inst Click Submit to complete this assessment. Suppose A is an interface, B is an abstract class and C is a concrete class. All classes have a default constructor. B implements A and C extends B Which of the following is correct? AX= new A() BX=newB() AX= new CO AX=newB() Moving to the next question prevents changes to this

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

ISBN: 3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

detail different ways to increase intrinsic motivation;

Answered: 1 week ago

Question

What is database?

Answered: 1 week ago

Question

What are Mergers ?

Answered: 1 week ago