The LinkedIn Skill Assessments feature allows you to demonstrate your knowledge of the skills you’ve added on your profile. Job posters on LinkedIn can also add Skill Assessments as part of the job application process. This allows job posters to more efficiently and accurately verify the crucial skills a candidate should have for a role.
The topics in the Object-Oriented Programming (OOP) assessment include:
- Software Development
- Four Principles of OOP
- Object-Oriented Fundamentals
- Design Patterns
- Constructors and Destructors
- Aggregation, Composition, and Association
- Use Cases and User Stories
- Overloading and Overriding
- Domain Modeling
- Exception Handling
Question Format
Multiple Choice
Language
English
Table of Content
- 1 LinkedIn OOP Skill Assessment Answers
- 1.1 What is an example of dynamic binding?
- 1.2 For which case would the use of a static attribute be appropriate?
- 1.3 Why would you create an abstract class, if it can have no real instances?
- 1.4 When does static binding happen?
- 1.5 What is the best reason to use a design pattern?
- 1.6 What is encapsulation?
- 1.7 What is an IS-A relationship?
- 1.8 You want a method with behavior similar to a virtual method–it is meant to be overridden – expect that it does not have a method body. It just has a method signature. What kind of method should you use?
- 1.9 Which code creates a new object from the Employee class?
- 1.10 Which type of constructor cannot have a return type?
- 1.11 When is a constructor executed?
- 1.12 If a local class is defined in a function, what is true for an object of that class?
- 1.13 Which two blocks are used to handle and check errors?
- 1.14 Why would you implement composition using an id instead of a reference?
- 1.15 Which statement best describes the method of inheritance in OOP?
- 1.16 Which type of inheritance, when done continuously, is similar to a tree structure?
- 1.17 Which statement is true?
- 1.18 Which of the following is NOT an advantage of using getters and setters?
- 1.19 In context of OOP, what is association?
- 1.20 How are user stories different from use cases?
- 1.21 Which type of inheritance must be used so that the resultant is hybrid?
- 1.22 A language that does not support polymorphism but supports classes is considered what?
- 1.23 If two classes combine some private data members and provides public member functions to access and manipulate those data members. Where is abstraction used?
- 1.24 What are the five Creational Design patterns by the Gang of Four ?
- 1.25 In multilevel inheritance, one class inherits how many classes?
- 1.26 if an object is passed by reference, the changes made in the function are reflected _.
- 1.27 What is a method?
- 1.28 A mobile phone is made up of components such as a motherboard, camera, and sensors. The motherboard represents all the functions of a phone, the display shows the display only, and the phone is represented as a whole. Which of the following has the highest level of abstraction?
- 1.29 Which class has the highest degree of abstraction in a multilevel inheritance relationship of five levels?
- 1.30 Which is NOT one of the basic types of inheritance?
- 1.31 Why is code duplication so insidious?
- 1.32 When and how often is a static constructor called?
- 1.33 What does the code shown below demonstrate, and why?
- 1.34 What is the purpose os static constructor?
- 1.35 What are CRC Cards?
- 1.36 Which statement about compositions and aggregations is true?
- 1.37 What is the result of using more abstraction?
- 1.38 Which is false for a member function of a class?
- 1.39 Why is inheritance used when creating a new class?
- 1.40 In addition to attributes and behaviours, what quality must a class possess?
- 1.41 Which type of function among the following shows polymorphism?
- 1.42 Which words in the following list are candidates for objects: trumpet, clean, enrage, leaf, tree, collapse, active, and lively?
- 1.43 What best describes what object-oriented programming does?
- 1.44 Can abstract classes be used in multilevel inheritance?
- 1.45 What type of inheritance may lead to the diamond problem?
- 1.46 What is the relationship between abstraction and encapsulation?
- 1.47 Which of these keywords are access specifiers?
- 1.48 What is a reference to an object?
- 1.49 Why is unit testing harder in OOP than functional programming?
- 1.50 What is the function of a user diagram?
- 1.51 How do object behaviour and attributes differ?
- 1.52 The open/closed principle states that classes should be open for _ but closed for _.
- 1.53 Why would you override a method of a base class?
- 1.54 What is a copy constructor?
- 1.55 What defines the catch block most accurately?
- 1.56 There are five classes. Class E is derived from class D, D from C, C from B, and B from A. Which class constructor(s) will be called first if the object of E or D is created?
- 1.57 You have modules that are dependent on each other. If you change one module, you have to make changes in the dependent modules. What term is used to describe this problem, and what is a potential solution?
- 1.58 _ describes an aggregation
- 1.59 Which type of function can be used for polymorphism?
- 1.60 Which choice is a benefit of using dependency injection?
- 1.61 Are you reauired to return an object if it was passed by reference to a function, and why or why not?
- 1.62 Why is inheritance ?
- 1.63 What is the best example of a superclass and subclass relationship?
- 1.64 Which statements best describe the Gang of Four design patterns called Memento and Observer?
- 1.65 Why is inheritance?️
- 1.66 Are you required to return an object if it was passed by reference to a function, and why or why not?
- 1.67 Which statements best describe the Gang of Four design patterns called Memento and Observer?
- 1.68 What does the value (0.5,0.5,0.5) indicate in the class diagram specification position: Coordinate = (0.5,0.5,0.5)?
- 1.69 What is the most accurate example of the Liskov substitution principle?
- 1.70 What is the difference between a parameter and an argument?
- 1.71 What is the scope of a class nested inside another class?
- 1.72 Methods and attributes that define an object are a kind of blueprint called what?
- 1.73 Assume single inheritance is used with classes A and B while A is the base class. Then assume classes C, D, and E, where C is a base class and D is derived from C, then E is derived from D. Class C is made to inherit from class B. Which type of inheritance is reflected?
- 1.74 What is the main idea behind separation of concerns?
- 1.75 What is the purpose of the finally block?
- 1.76 Which choice is not an OOP language?
- 1.77 What is the function of a finalizer or destructor?
- 1.78 An instance of which type of class cannot be created?
- 1.79 In the context of OOP, what is composition?
- 1.80 Static polymorphism uses method _ ?
- 1.81 What does a concrete class not have?
- 1.82 How does dynamic typing complicate troubleshooting?
- 1.83 What is the difference between early binding and late binding?
- 1.84 What is the difference between an interface and an abstract class?
- 1.85 What parameters are required to be passed to a class constructor?Here they haven’t mentioned any specific language so let’s consider all languages.
- 1.86 What are the four principles of object-oriented programming?
- 1.87 From the SOLID principles of object-oriented programming, which statement best describes the Liskov substitution principle?
- 1.88 In addition to responsibilities, what should be listed on Class-responsability-collaboration (CRC) cards?
- 1.89 What is the best name for the function that corrects this assessment?
- 1.90 Which relationship best illustrates an abstract-concrete class relationship?
- 1.91 What cannot be used for polymorphism?
- 1.92 How many levels does multilevel inheritance allow in a program?
- 1.93 What is a virtual Method?
- 1.94 Which of these is not a basic principle of Object Oriented Programming?
- 1.95 How do object behaviour and attributes differ?
- 1.96 How coupled should your classes be and why?
- 1.97 Which statement best describes a friend class?
LinkedIn OOP Skill Assessment Answers
What is an example of dynamic binding?
- any method
- method overloading
- method overriding
- compiling
For which case would the use of a static attribute be appropriate?
- the number of people in each house in a small neighborhood
- the lot size for each house in a small neighborhood
- the color of each house in a small neighborhood
- the weather conditions for each house in a small neighborhood
Why would you create an abstract class, if it can have no real instances?
- to avoid redundant coding in children
- to explore a hypothetical class
- to prevent unwanted method implementation
- to reserve memory for an unspecified class type
- to have common behavior in derived classes
When does static binding happen?
- only when you export
- both at compile time and runtime
- at compile time
- at runtime
What is the best reason to use a design pattern?
- It will result in code that is more extensible and maintainable
- It will result in a more compact product.
- It will speed initial development.
- It will allow you to add that design pattern to your resume.
What is encapsulation?
- defining classes by focusing on what is important for a purpose
- hiding the data and implementation details within a class
- making all methods private
- using words to define classes
What is an IS-A relationship?
- It implies encapsulation.
- A superclass object has an IS-A relationship with its subclass.
- It implies a virtual method.
- A subclass object has an IS-A relationship with its superclass or interface
You want a method with behavior similar to a virtual method–it is meant to be overridden – expect that it does not have a method body. It just has a method signature. What kind of method should you use?
- an abstract method
- a public internal method
- an internal method
- a protected internal method
Which code creates a new object from the Employee class?
- Employee current Employee = Employee.Create();
- Employee current Employee = new Employee();
- Employee currentEmployee;
- Employee currentEmployee = Employee.New();
Which type of constructor cannot have a return type?
- default
- copy
- parameterized
- Constructors do not have a return type
When is a constructor executed?
- when an object is created from a class using the new keyword
- when an class is defined using the class keyword
- every time an object is referenced
- when an object is created from a class using the create keyword
If a local class is defined in a function, what is true for an object of that class?
- The object can be accessed, declared, and used locally in that function.
- The object must be declared inside any other function.
- The object is temporarily accessible outside the function.
- The object can call all the other class members anywhere in the program.
Which two blocks are used to handle and check errors?
- do and check
- catching and trying
- try and catch
- do and while
Why would you implement composition using an id instead of a reference?
- It makes it easier to save the entity.
- all of these answers
- It can make the entity retrieval more efficient
- It minimizes coupling.
Which statement best describes the method of inheritance in OOP?
- Inheritance describes the ability to create new classes based on an existing class.
- Inheritance means that a group of related properties, methods, and other members are treated as a single unit or object.
- Inheritance forces a class to have a single responsibility from only one parent.
- Inheritance means that you will never have multiple classes that can be used interchangeably, even though each class implements the same properties or methods in different ways.
Which type of inheritance, when done continuously, is similar to a tree structure?
- multilevel
- hierarchical and multiple
- hierarchical
- multiple
Which statement is true?
- A default parameter’s constructor is not equivalent to the default constructor
- A default constructor is inherited from a parent class
- A default constructor can be called explicitly
- A default constructor cannot be defined by the coder
Which of the following is NOT an advantage of using getters and setters?
- Getters and setters can speed up compilation.
- Getters and setters provide encapsulation of behavior.
- Getters and setters provide a debugging point for when a property change at runtime.
- Getters and setters permit different access levels.
In context of OOP, what is association?
- Association is a relationship where all objects have their own life cycle and there is no owner.
- Association is the process where model elements cooperate to provide higher-level behavior.
- Association is whole/part relationship where one object is composed of one or more other objects, each of which is considered a part of the whole.
- Association is where all objects have their own life cycle, but there is ownerhip, and child objects can not belong to another parent object.
How are user stories different from use cases?
- User Stories are shorter and less detailed.
- User stories are more accurate.
- User stories are more detailed and structured.
- User storised are more anecdotal and personal.
Which type of inheritance must be used so that the resultant is hybrid?
- multiple
- any type of inheritance
- multilevel
- hierarchical
A language that does not support polymorphism but supports classes is considered what?
- an object-based language
- a class-based language
- a procedure-oriented language
- if classes are supported, polymorphism will be supported
If two classes combine some private data members and provides public member functions to access and manipulate those data members. Where is abstraction used?
- Abstraction is using a private access specifier for data members
- Abstraction is using public member functions to access and manipulate the data members
- Abstraction is using the class concept with both data members and member functions
- There is insufficient information to decide where abstraction is being used.
What are the five Creational Design patterns by the Gang of Four ?
- Observer, State, Strategy, Template Method, and Visitor.
- Composite, Visitor, State, Prototype, and Singleton.
- Composite, Builder, Factory Method, Prototype, and Singleton.
- Abstract Factory, Builder, Factory Method, Prototype, and Singleton.
In multilevel inheritance, one class inherits how many classes?
- one class only
- two classes
- as many classes as required
- at least two classes
if an object is passed by reference, the changes made in the function are reflected _.
- to the main object of the caller function, too
- on the caller function object and also the called function object
- on the copy of the object that is made during the pass
- only in the local scope of the called function
What is a method?
- a set of instructions designed to perform a frequently used operation within a program and return no values
- the exact same thing as a function and subroutine
- a set of variables that can change over time
- a procedure associated with data and behaviour
A mobile phone is made up of components such as a motherboard, camera, and sensors. The motherboard represents all the functions of a phone, the display shows the display only, and the phone is represented as a whole. Which of the following has the highest level of abstraction?
- camera
- display
- motherboard
- mobile phone
Which class has the highest degree of abstraction in a multilevel inheritance relationship of five levels?
- the class at the third level
- the class at the first level
- All have the same degree of abstraction.
- the class at the second level
Which is NOT one of the basic types of inheritance?
- multilevel inheritance
- double inheritance
- single inheritance
- hierarchical inheritance
Why is code duplication so insidious?
- The duplication uses unnecessary space.
- One has to maintain all the duplicates.
- Duplication can cause intellectual property concerns.
- Duplication is easy to hide.
When and how often is a static constructor called?
- It is called initially when an object is created and called with every new object instance.
- It is called when an object is destroyed and only one time.
- It is called initially when an object is created and only one time.
- It is created at time when the object is discarded.
What does the code shown below demonstrate, and why?
static void Multiply(int num1, int num2) {};
static void Multiply(double num1, double num2, double num3) {};
static void Multiply(float num1, float num2) {};
- polymorphism, because each method can perform different task
- method overriding, because it display the same method name, different or same parameters, and same return type
- method overloading, because it allows the creation of several methods with the same name, wich differ by the type of input via parameter
- method overriding, because it display the same method name, different parameters, and same return type
What is the purpose os static constructor?
- to initialize all the members with static value
- to delete the static members when not required
- to initialize the static members of class
- to clear all the static members’ initialized values
What are CRC Cards?
- Code Responsibility Collection cards are a brainstorming tool used in the design of procedural software
- Class responsible collaboration cards are a brainstorming tool used in the design of oop software
- Code Responsibility Correction cards are tools used for debugging
- Code Responsibility Correction cards are tools for modeling
Which statement about compositions and aggregations is true?
- if one element of an aggregation is dereferenced, all its elements are eligible for garbage collection
- if a composition dies, the contents die
- the contents of a composition are all siblings
- an aggregation contains only abstract classes
What is the result of using more abstraction?
- it can increase code vulnerability
- it can make code unsafe
- it can limit code readability
- it can be safer for coding
Which is false for a member function of a class?
- Member functions can be defined only inside or outside the class body.
- Member functions can be made to be friends of another class.
- Member functions do not need to be declared inside the class definition.
- All member functions need to be defined.
Why is inheritance used when creating a new class?
- to protect attributes from unwanted changes
- to delegate coding responsibility more efficiently
- to conserve memory
- to avoid writing duplicate code
- to separate class behavior from the more general
In addition to attributes and behaviours, what quality must a class possess?
- a name
- a state
- a color
- an object
Which type of function among the following shows polymorphism?
- inline function
- undefined function
- virtual function
- class member function
Which words in the following list are candidates for objects: trumpet, clean, enrage, leaf, tree, collapse, active, and lively?
- leaf and tree
- clean, enrage, and collapse
- clean, active, and lively
- leaf, tree, and trumpet
What best describes what object-oriented programming does?
- It focuses on objects that interact cleanly with one another.
- It programs exclusively to interfaces.
- It programs exclusively to classes.
- It creates one class for all business logic.
Can abstract classes be used in multilevel inheritance?
- No, abstract classes can be used only in single-level inheritance since they must be immediately implemented.
- yes, always
- yes, but with only one abstract class
- No, abstract classes do not have constructors.
What type of inheritance may lead to the diamond problem?
- single level
- multilevel
- hierarchical
- multiple
What is the relationship between abstraction and encapsulation?
- Abstraction is about making relevant information visible, while encapsulation enables a programmer to implement the desired level of abstraction.
- Abstraction and encapsulation are essentially the same.
- Abstraction and encapsulation are unrelated.
- Encapsulation is about making relevant information visible, while abstraction enables a programmer to implement the desired level of encapsulation.
Which of these keywords are access specifiers?
- abstract and public
- public and private
- this and final
- final and abstract
What is a reference to an object?
- It is the address of variable only — not the method of an object.
- It is a shallow pointer that contains address of an object.
- It is the physical address of an object.
- It is the address where the variables and methods of an object are stored.
Why is unit testing harder in OOP than functional programming?
- Objects may maintain internal state, which is not easily accessible by the tests.
- The quality of unit testing frameworks for functional languages is better.
- OOP promotes code reuse, which means that your tests have to consider more use cases.
- Object-oriented languages tend to rely on frameworks such as Spring or Hibernate, which make them difficult to test.
What is the function of a user diagram?
- It connects actors to use cases.
- It links actors to roles played in all use cases.
- It lists all actors for each use case.
- It minimizes the number of actors required.
How do object behaviour and attributes differ?
- Behaviour describe dynamic properties; attributes are static.
- Attributes describe a state; behaviours describe a change.
- Attributes apply only to a specified object; behaviour apply to other linked objects.
- Behaviours are vector quantities; attributes are scalars.
The open/closed principle states that classes should be open for _ but closed for _.
- refactoring; duplication
- modification; duplication
- extension; modification
- reuse; encapsulation
Why would you override a method of a base class?
- to define a method that must be implemented in a derived class
- to define a custom implementation of an inherited member
- to define a method that must be implemented in a superclass only
- to define a class that can be inherited from
What is a copy constructor?
- It is a unique constructor for creating a new object as a copy of an object that already exists. There will always be only one copy constructor that can be either defined by the user or the system.
- It is a constructor that duplicates itself when requested on demand.
- It is a common constructor for preventing the creation of a new object as a copy of an object that already exists. There will always be multiple standard constructors that can be either defined by the user or the system.
- It is a constructor that duplicates itself on its own, based on memory available.
What defines the catch block most accurately?
- The catch block that will be executed is the one that best matches the type of exception thrown.
- Multiple catch blocks can never be associated with a single try block.
- Multiple catch blocks are mandatory for each try block.
- Multiple catch blocks will all be executed in the case of an exception.
There are five classes. Class E is derived from class D, D from C, C from B, and B from A. Which class constructor(s) will be called first if the object of E or D is created?
- A
- B
- C
- C and B
You have modules that are dependent on each other. If you change one module, you have to make changes in the dependent modules. What term is used to describe this problem, and what is a potential solution?
- A class of resources
- A group of methods
- A collection of objects
- A list of children
_ describes an aggregation
- A class of resources
- A group of methods
- A collection of objects
- A list of children
Which type of function can be used for polymorphism?
- virtual function
- inline function
- undefined function
- private function
Which choice is a benefit of using dependency injection?
- loose coupling
- code reusability
- lazy initialization
- data abstraction
Are you reauired to return an object if it was passed by reference to a function, and why or why not?
- Yes, the caller function needs to reflect the changes.
- No, you should use a global variable instead.
- No, changes will be automatically reflected in the calling function.
- Yes, the object must be the same in the caller function.
Why is inheritance ?
- Yes, the caller function needs to reflect the changes.
- No, you should use a global variable instead.
- No, changes will be automatically reflected in the calling function.
- Yes, the object must be the same in the caller function.
What is the best example of a superclass and subclass relationship?
- car:toyota
- ducks:pond
- toes:feet
- rock:stone
Which statements best describe the Gang of Four design patterns called Memento and Observer?
- Memento notifies multiple classes of changes. Observer captures and restores an object’s internal state.
- Memento defers the exact steps of an algorithm to a subclass. Observer defines a new operation to a class without change.
- Memento alters an object’s behavior when its state changes. Observer encapsulates an algorithm inside a class.
- Memento captures and restores an object’s internal state. Observer notifies multiple classes of changes.
Why is inheritance?️
- Yes, the caller function needs to reflect the changes.
- No, you should use a global variable instead.
- No, changes will be automatically reflected in the calling function.
- Yes, the object must be the same in the caller function.
Are you required to return an object if it was passed by reference to a function, and why or why not?
- Yes, the caller function needs to reflect the changes.
- No, you should use a global variable instead.
- No, changes will be automatically reflected in the calling function.
- Yes, the object must be the same in the caller function.
Which statements best describe the Gang of Four design patterns called Memento and Observer?
- Memento notifies multiple classes of changes. Observer captures and restores an object’s internal state.
- Memento defers the exact steps of an algorithm to a subclass. Observer defines a new operation to a class without change.
- Memento alters an object’s behavior when its state changes. Observer encapsulates an algorithm inside a class.
- Memento captures and restores an object’s internal state. Observer notifies multiple classes of changes.
What does the value (0.5,0.5,0.5) indicate in the class diagram specification position: Coordinate = (0.5,0.5,0.5)?
- a default value of the Coordinate attribute
- the size of the position array
- an increment of the position attribute value
- a default value of the position attribute
What is the most accurate example of the Liskov substitution principle?
- A
public class Car{
}
public class FlyingCars extends Car{
public void fly(){}
}
public class Tesla FlyingCar{}
public class Honda Car{} - B
public class Car{
public void fly(){}
}
public class Tesla extends Car{}
public class Honda extends Car{} - C
public class Car{
public void fly(){}
}
public class Tesla Car{}
public class Honda Car{} - D
public class Car{
}
public class FlyingCars extends Car{
public void fly(){}
}
public class Tesla extends FlyingCar{}
public class Honda extends Car{}
What is the difference between a parameter and an argument?
- An argument can have many values while a parameter can have only one value.
- An argument is the variable used for input values in a method. A parameter is the specific input value passed to the method.
- A parameter is a variable in the declaration of a function. An argument is the value of this variable that gets passed to the function.
- Parameters and arguments are the same
What is the scope of a class nested inside another class?
- Protected scope
- Private scope
- Global scope
- Depends on access specifier and inheritance used
Methods and attributes that define an object are a kind of blueprint called what?
- a collection
- a variable
- a class
- a procedure
Assume single inheritance is used with classes A and B while A is the base class. Then assume classes C, D, and E, where C is a base class and D is derived from C, then E is derived from D. Class C is made to inherit from class B. Which type of inheritance is reflected?
- Multilevel
- Hybrid
- Single level
- Multiple
What is the main idea behind separation of concerns?
- All of these answers
- Applications are decomposed into parts
- Parts are defined with minimal overlap
- Each part is responsible for a separate concern
What is the purpose of the finally block?
- To always run the finally block of code when the try block exits
- To run code when an exception has not occurred
- To run the block if an exception occurred
- To run code whenever garbage collection requires it
Which choice is not an OOP language?
- C#
- Java
- C
- Python
What is the function of a finalizer or destructor?
- To relinquish resources that are no longer needed
- To delete a variable name
- To reset an attribute value
- To hold space, even after an object is no longer being used
An instance of which type of class cannot be created?
- Protected class
- Base class
- Anonymous class
- Abstract class
In the context of OOP, what is composition?
- Composition is the act of one object passing to another object an operation to be performed on behalf of the initial object.
- Composition is a part/whole relationship where an object is composed of one or more other objects, each of which is considered a part of the whole.
- Composition is a binding where the class/name association is not made until the object designated by the name is created at execution time
- Composition is a process of collecting classes that provide a set of services for a particular domain
Static polymorphism uses method _ ?
- overloading
- inheritance
- abstraction
- overriding
What does a concrete class not have?
- parents
- pure virtual functions
- attributes
- purposes
How does dynamic typing complicate troubleshooting?
- It can be difficult to identify variables that are incorrectly typed
- The dynamic variables can assume only limited values
- Storage is fixed for dynamic variables
- Static variables are more flexible than dynamic variables
What is the difference between early binding and late binding?
- Early binding is when a variable is assigned a value when a scope is created. Late binding is when a variable is assigned a value after a scope is exited
- Early binding is when a variable is assigned a value when the program starts. Late binding is when a variable is assigned after the program is running
- There is no difference. In both cases, variables are assigned values when a program has completed startup and is running
- Early binding is when a variable is assigned its value at compile time. Late binding is when a variable is assigned a value at run time
What is the difference between an interface and an abstract class?
- Interfaces can contain code or data. Abstract classes do not contain code or data. A class can inherit from more than one abstract class but can only implement one interface
- Interfaces can contain code or data. Abstract classes do not contain code or data. A class can inherit from only one abstract class but can implement an unlimited number of interface
- Abstract classes can contain code or data. Interface do not contain code or data. A class can inherit from only one abstract class but can implement an unlimited number of interfaces
- Abstract classes can contain code or data. Interface do not contain code or data. A class can inherit from more than one abstract class but can only implement one interface
What parameters are required to be passed to a class constructor?
Here they haven’t mentioned any specific language so let’s consider all languages.
- reference to subclass // References to subclass are never required as you can simply Initialize subclass & use their object.
- reference to base class // References to the base class are not required in Java, Javascript & Python
- reference to this pointer // While Python & Javascript may require passing this or self in the constructor, It is not passed in Java constructor.
- none // Above 3 are incorrect so “none” is the answer
What are the four principles of object-oriented programming?
- manipulation, encapsulation, inheritance, and dependency inversion
- dependency inversion, open/closed principle, encapsulation, and inheritance
- inteFrom the SOLID principles of object-oriented programming, which statement best describes the Liskov substitution principle?rface segregation, abstraction, dependency inversion, and inheritance
- abstraction, encapsulation, inheritance, and polymorphism
From the SOLID principles of object-oriented programming, which statement best describes the Liskov substitution principle?
- A class should have only a single responsibility—that is, only changes to one part of the software’s specification should be able to affect the specification of the class.
- Software entities should be open for extension, but closed for modification.
- Many client-specific interfaces are better than one general-purpose interface.
- objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program.
In addition to responsibilities, what should be listed on Class-responsability-collaboration (CRC) cards?
- which programming language will be used.
- the programmer responsible for implementation.
- interacting classes.
- attributes.
What is the best name for the function that corrects this assessment?
- makeResult()
- questionScore()
- calculateScore()
- getAnswers()
Which relationship best illustrates an abstract-concrete class relationship?
- cat : kitten
- color : red
- planet : moon
- truck : window
What cannot be used for polymorphism?
- overloading constructors
- overloading member functions
- static member functions
- overloading predefined operator
How many levels does multilevel inheritance allow in a program?
- only 10 levels of inheritance
- as many levels of inheritance as required within 10 minutes
- as many levels of inheritance as required
- only the amount of levels memory permits, divided by processor speed
What is a virtual Method?
- a method that you expect may be redefined in derived classes
- a method that you do not expect to be redefined in derived classes
- a private method that you do not expect to be redefined in derived public classes
- a method that exists temporarily – once used, it ceases to be used by any caller
Which of these is not a basic principle of Object Oriented Programming?
- Encapsulation
- Compilation
- Inheritance
- Polymorphism
How do object behaviour and attributes differ?
- Behaviour describe dynamic properties; attributes are static.
- Attributes describe a state; behaviours describe a change.
- Attributes apply only to a specified object; behaviour apply to other linked objects.
- Behaviours are vector quantities; attributes are scalars.
How coupled should your classes be and why?
- You should increase coupling to improve dependencies between classes.
- You should limit coupling to reduce dependencies between classes.
- You should increase coupling so that class members relate to the class purpose.
- You should limit coupling so that class members relate to the class objective.
Which statement best describes a friend class?
- Friend classes support base class when necessary.
- A friend class can access the private and protected members of the class in which it is declared as a friend.
- Friend classes do not have any implementation.
- A friend class can access only protected members of the class of which it is a friend.
All Linkedin Skill Assessment Answers
List of Technical Skill Assessment
- LinkedIn .NET Framework Skill Assessment Quiz Answers
- LinkedIn Agile Methodologies Skill Assessment Quiz Answers
- LinkedIn Amazon Web Services (AWS) Skill Quiz Answers
- LinkedIn Android Assessment Quiz Answers
- LinkedIn AngularJS Skill Assessment Quiz Answers
- LinkedIn AWS Lambda Skill Assessment Answers
- LinkedIn Bash Skill Assessment Quiz Answers
- LinkedIn C Skill Assessment Quiz Answers
- LinkedIn C# Skill Assessment Quiz Answers
- LinkedIn C++ Skill Assessment Quiz Answers
- LinkedIn CSS Skill Assessment Quiz Answers
- LinkedIn Cyber Security Skill Assessment Quiz Answers
- LinkedIn Django Skill Assessment Quiz Answers
- LinkedIn Eclipse Skill Assessment Quiz Answers
- LinkedIn Front End Development Skill Assessment Quiz Answers
- LinkedIn Git Skill Assessment Quiz Answers
- LinkedIn Google Analytics Skill Assessment Quiz Answers
- LinkedIn Google Cloud Platform (GCP) Skill Assessment Quiz Answers
- LinkedIn Hadoop Skill Assessment Quiz Answers
- LinkedIn HTML Skill Assessment Quiz Answers
- LinkedIn IT Operation Skill Assessment Quiz Answers
- LinkedIn Java Skill Assessment Quiz Answers
- LinkedIn JavaScript Skill Assessment Quiz Answers
- LinkedIn JQuery Skill Assessment Quiz Answers
- LinkedIn JSON Skill Assessment Quiz Answers
- LinkedIn Windows Server Skill Assessment Quiz Answers
- LinkedIn XML Skill Assessment Answers
- LinkedIn Kotlin Skill Assessment Quiz Answers
- LinkedIn Linux Skill Assessment Quiz Answers
- LinkedIn Machine Learning Skill Assessment Quiz Answers
- LinkedIn Maven Skill Assessment Quiz Answers
- LinkedIn Microsoft Azure Skill Assessment Quiz Answers
- LinkedIn MongoDB Skill Assessment Quiz Answers
- LinkedIn MySQL Skill Assessment Quiz Answers
- LinkedIn Node JS Skill Assessment Quiz Answers
- LinkedIn NoSQL Skill Assessment Quiz Answers
- LinkedIn Objective-C Skill Assessment Quiz Answers
- LinkedIn OOP (Object-Oriented Programming Skill Assessment Quiz Answers
- LinkedIn PHP Skill Assessment Quiz Answers
- LinkedIn Python Skill Assessment Quiz Answers
- LinkedIn React JS Skill Assessment Quiz Answers
- LinkedIn Rest APIs Skill Assessment Quiz Answers
- LinkedIn R (Programming Language) Skill Assessment Quiz Answers
- LinkedIn Ruby on Rails Skill Assessment Quiz Answers
- LinkedIn Scala Skill Assessment Quiz Answers
- LinkedIn Search Engine Optimization (SEO) Skill Assessment Quiz Answers
- LinkedIn Spring Framework Skill Assessment Quiz Answers
- LinkedIn Swift Skill Assessment Quiz Answers
- LinkedIn T-SQL Skill Assessment Quiz Answers
- LinkedIn Unity Skill Assessment Quiz Answers
- LinkedIn Visual Basic for Application (VBA) Skill Assessment Quiz Answers
- LinkedIn WordPress Skill Assessment Quiz Answers
List of Business Skill Assessment
- LinkedIn Accounting Skill Assessment Quiz Answers
- LinkedIn Adobe Acrobat Skill Assessment Quiz Answers
- LinkedIn Google Ads Skill Assessment Quiz Answers
- LinkedIn Microsoft Access Skill Assessment Quiz Answers
- LinkedIn Microsoft Excel Skill Assessment Quiz Answers
- LinkedIn Microsoft Outlook Skill Assessment Quiz Answers
- LinkedIn Microsoft Power BI Skill Assessment Quiz Answers
- LinkedIn Microsoft PowerPoint Skill Assessment Quiz Answers
- LinkedIn Microsoft Project Skill Assessment Quiz Answers
- LinkedIn Microsoft Word Skill Assessment Quiz Answers
- LinkedIn SharePoint Skill Assessment Quiz Answers
- LinkedIn Visio Skill Assessment Quiz Answers
List of Design Skill Assessment