1.
When a default constructor is explicitly defined by the programmer the default constructor provided by the compiler is overridden
Correct Answer
A. True
Explanation
When a default constructor is explicitly defined by the programmer, it means that the programmer has provided their own implementation of the default constructor. This overrides the default constructor that is automatically provided by the compiler. Therefore, the answer is true.
2.
A default constructor is ________ invoked when the ________ is created.
Correct Answer
automatically, automatic
object
Explanation
A default constructor is automatically invoked when the object is created.
3.
Types of Inheritance
Correct Answer(s)
A. Single
B. Multiple
C. Multilevel
D. Hybrid
E. Hierarchical
Explanation
The given answer lists different types of inheritance. Single inheritance refers to a class inheriting from only one base class. Multiple inheritance occurs when a class inherits from multiple base classes. Multilevel inheritance happens when a derived class inherits from another derived class. Hybrid inheritance is a combination of multiple and multilevel inheritance. Hierarchical inheritance is when multiple derived classes inherit from a single base class. Biological inheritance refers to the passing of traits from parents to offspring. Artificial inheritance may refer to the concept of artificially designing or creating inheritance relationships in programming.
4.
Private members of a Class are inherited
Correct Answer
B. False
Explanation
They are only visible and not accessible
5.
Are constructors inherited?
Correct Answer
B. False
Explanation
No they are not. It is the responsibility of the programmer to invoke the constructor
6.
Multilevel inheritance
Correct Answer
A. Transitive nature
Explanation
Transitive nature refers to the ability of a derived class to inherit properties and methods from multiple levels of base classes. In multilevel inheritance, a derived class can inherit from a base class, which in turn can inherit from another base class. This allows for a hierarchical structure where properties and methods can be passed down through multiple levels. Therefore, option 4, which states that multilevel inheritance has a transitive nature, is the correct answer.
7.
Multiple Inheritance
Correct Answer
A. Two base class and one derived class
Explanation
The correct answer is "Two base class and one derived class." This indicates that there are two parent classes and one child class in the context of multiple inheritance. In multiple inheritance, a derived class can inherit attributes and behaviors from multiple base classes. Therefore, having two base classes and one derived class suggests that the derived class inherits from both parent classes.
8.
Constructor overloading exhibits ________
Correct Answer
Polymorphism, polymorphism
Explanation
Constructor overloading exhibits polymorphism. Polymorphism refers to the ability of an object to take on many forms. In the case of constructor overloading, multiple constructors can be defined within a class with different parameters. This allows objects to be created in different ways, depending on the arguments passed to the constructor. The choice of which constructor to use is determined at compile-time based on the arguments provided. This flexibility in creating objects is a form of polymorphism, as the same constructor name can be used to create objects with different behaviors.
9.
80-20 rule states that
Correct Answer
A. 80% traffic should be local and 20% should be outside the block
Explanation
The 80-20 rule, also known as the Pareto principle, states that 80% of the effects come from 20% of the causes. In the context of traffic, it means that 80% of the traffic should be local, originating from within the block, while the remaining 20% should come from outside the block. This principle suggests that a majority of the traffic should be generated by the local community, while a smaller portion should be attributed to external sources.
10.
As a network Engineer where would you suggest the placement of the Server
Correct Answer
A. A block with maximum no of computer
Explanation
Placing the server in a block with maximum number of computers would ensure efficient and effective network management. This is because a larger number of computers would require more resources and bandwidth, and placing the server in this block would allow for better distribution of these resources. Additionally, having the server in a block with maximum number of computers would also facilitate easier troubleshooting and maintenance, as any issues or updates can be addressed for a larger user base at once.
11.
When the distance between two block exceeds 80 m ________ should be placed between the blocks to amplify the signal
Correct Answer
Repeater, repeater
Explanation
When the distance between two blocks exceeds 80 m, a repeater should be placed between the blocks to amplify the signal. A repeater is a device that receives a signal, cleans it up, and retransmits it, effectively extending the range of the signal. In this scenario, since the distance between the blocks is too far for the signal to reach without degradation, a repeater is necessary to boost the signal and ensure its quality over the extended distance.
12.
Network devices required for setting up a network(LAN) in a organisation are
Correct Answer(s)
A. Repeater
B. Hub/Switch
C. Modem
Explanation
The network devices required for setting up a network (LAN) in an organization are a repeater, hub/switch, and modem. A repeater is used to amplify or regenerate signals to extend the network's range. A hub/switch is used to connect multiple devices within the network and facilitate communication between them. A modem is necessary for connecting the LAN to the internet. These devices work together to establish a functional network infrastructure within the organization.