Computer Science Test II

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Kiranspgt
K
Kiranspgt
Community Contributor
Quizzes Created: 1 | Total Attempts: 69
| Attempts: 69 | Questions: 15
Please wait...
Question 1 / 15
0 %
0/100
Score 0/100
1. When a default constructor is explicitly defined by the programmer the default constructor provided by the compiler is overridden

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.

Submit
Please wait...
About This Quiz
Computer Science Test II - Quiz

The 'Computer Science Test II' focuses on fundamental concepts of object-oriented programming, including data types, constructors, and inheritance. It assesses understanding of class structures and the inheritance model,... see morecrucial for learners in computer science and software engineering. see less

2. 80-20 rule states that 

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.

Submit
3. Private members of a Class are inherited

Explanation

They are only visible and not accessible

Submit
4. As a network Engineer where would you suggest the placement of the Server

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.

Submit
5. Constructor overloading exhibits _____ 

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.

Submit
6. Match the following
Submit
7. When the distance between two block exceeds 80 m _____ should be placed between the blocks to amplify the signal

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.

Submit
8. Are constructors inherited?

Explanation

No they are not. It is the responsibility of the programmer to invoke the constructor

Submit
9. Multiple Inheritance

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.

Submit
10. Types of Inheritance

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.

Submit
11. A default constructor is _____ invoked when the _____ is created.

Explanation

A default constructor is automatically invoked when the object is created.

Submit
12. Multilevel inheritance 

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.

Submit
13. Network devices required for setting up a network(LAN) in a organisation are 

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.

Submit
14. Match the following
Submit
15. Match the following
Submit
View My Results

Quiz Review Timeline (Updated): Mar 30, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 30, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jan 31, 2016
    Quiz Created by
    Kiranspgt
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
When a default constructor is explicitly defined by the programmer the...
80-20 rule states that 
Private members of a Class are inherited
As a network Engineer where would you suggest the placement of the...
Constructor overloading exhibits _____ 
Match the following
When the distance between two block exceeds 80 m _____ should be...
Are constructors inherited?
Multiple Inheritance
Types of Inheritance
A default constructor is _____ invoked when the _____ is created.
Multilevel inheritance 
Network devices required for setting up a network(LAN) in a...
Match the following
Match the following
Alert!

Advertisement