Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

OOP LEC [FA3]

CCS0023 / CS0070

QuestionAnswer
True or False: This line of code is correct System.out.println("Hi!"); True
State of an object are also known as Properties
When we want to print in Java, we use the code ...... System.out.println();
________ describes the task to be performed on objects. OOP
[True or False] Constructor – declared either at the start or end of a class definition. These variables identify the data stored in the object. False
[True or False] Instance Variables are variables stored in the class and are available to all objects of a class or objects of other classes if access is permitted False
a method that is accessible within and outside the package but through inheritance only. Protected
Constructor – a method that is automatically executed when an object is created. This method is used to initialize the attributes. True
static Variable used in defining a class variable True
Encapsulation is implemented by using__________ Private
Encapsulation is also called as? Data Hiding
[True or False] Encapsulation is the way to add functions in a user defined structure. False
[True or False] In Inheritance, the programmer can change one part of the code without affecting other parts False
In Encapsulation, Class variables can be made read-only or write-only True
If a derived class object is created, which constructor is called first? Base class constructor
Which programming language doesn't support multiple inheritance? Java
[True or False] In hierarchical inheritance, all the classes involve some kind of inheritance. False
If base class contains 2 nested classes, will it be possible to implement single level inheritance? Yes, always
[True or False or Sometimes] Encapsulation means "open to all" and indicates that the internal workings of an object are entirely visible to the outside world. False
[True or False] Procedural Programming describes the task to be performed on objects. False
What is the difference between a class and an object? A class is a blueprint to make an object
Which one of these is a data type? Group of answer choices byte gold fold bit Byte
[True or False] Access (Getter) – a method that is used to access or retrieve data. False
[True or False] this keyword can be passed as argument in the constructor call. True
[True or False] this keyword can be used to invoke current class method (implicitly) True
[True or False] this keyword can be passed as an argument in the method call. True
_________– implement the business rules for which the application is being developed Group of answer choices Custom Methods Standard Methods Constructor Method Custom Methods
[True or False] Encapsulation is implemented by using private True
[True or False ] There is an Increased security of data with Encapsulation True
Which language doesn't support single level inheritance? Group of answer choices Java All languages support it C++ Kotlin All languages support it
How can you make the private members inheritable? It can be done both by making the visibility mode public or protected
Which among the following best defines single level inheritance? A class inheriting a base class
Members which are not intended to be inherited are declared as ________________ Private members
If multi-level inheritance is used, First class B inherits class A, then C inherits B and so on. Till how many classes can this go on? There is no limit
Which of following statement(s) can result in new object instance creation if executed successfully. All
What is it called where child object gets killed if parent object is killed? Group of answer choices Aggregation Composition Encapsulation Association Composition
Sally is writing some Object-Oriented Program code for a vehicle which contains the attributes (manufacturer, color, and price), along with what she wants the vehicle to be able to do (start, drive, and park). This is known as _____. method
[True or False] Standard Methods – implement the business rules for which the application is being developed false
[True or False] this keyword can also be used to return the current class instance True
[True or False] this() can be used to invoke current class constructor. True
a variable that is accessible within and outside the package but through inheritance only. protected variable
[True or False] Abstraction is the way to add functions in a user defined structure. False
The encapsulation is achieved by combining which ones into a class? Methods and Attribute
[True or False] In Encapsulation, the programmer can change one part of the code without affecting other parts True
Which type of inheritance cannot involve private inheritance? All types can have private inheritance
How many classes can be inherited by a single class in java? Only 1
Which among the following is correct for a hierarchical inheritance? One base class can be derived into other two derived classes or more
Which constructor will be called first from the classes involved in single inheritance from object of derived class? Base class constructor
Sally is continuing work on her Object-Oriented Program and is writing code for a car, truck, and bus. These items under the class called vehicle are referred to as _____. class?
Which of the following is not OOPS concept in Java? Compilation
[True or False] Procedural Programming is a technique of solving a problem and breaking it down into smaller parts and solving each of the smaller problems. True
[True or False] The focus of procedural programming is to break down a programming task into a collection of variables, data structures, and subroutines True
When does method overloading is determined? At compile time
________ – a method that is automatically executed when an object is created. This method is used to initialize the attributes. Constructor
[True or False] Class Variables are variables stored in each object of a class, usually referred to as the non-static member fields of a class. False
[True or False] Instance Variables are variables stored in each object of a class, usually referred to as the non-static member fields of a class. True
Encapsulation is supported by ___________ Classes
[True or False] Encapsulation has Better control of class attributes and methods True
[True or False] Encapsulation has poor control of class attributes and methods False
Which among the following best describes encapsulation? It is a way of combining various data members and member functions that operate on those data members into a single unit
If class A and class B are derived from class C and class D, then ________________ Those are 2 pairs of single inheritance
________ is a technique of solving a problem and breaking it down into smaller parts and solving each of the smaller problems. Procedural programming
Which of the following is a type of polymorphism in Java? Compile time polymorphism
As a blueprint is a design for a house, a class is a design for a: object
[True or False] // allows for a single line comment? True
a method that is only accessible within the class where it is declared. private method
___________– a method that is used to change the data. Mutator (Setter)
[True or False] non-static Variables are variables stored in each object of a class, usually referred to as the non-static member fields of a class. True
[True or False] Standard Methods – used to change or access the private data in an object. True
Which among the following should be encapsulated? The data which is prone to change is near future
[True or False] There is no security of data with Encapsulation False
Single level inheritance will be best for___________ Inheriting a class which performs all the calculations
Which among the following best describes the Inheritance? Using the data and functions into derived segment
Created by: AdoKwatro
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards