Computer Science Test II

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Kiranspgt
K
Kiranspgt
Community Contributor
Quizzes Created: 1 | Total Attempts: 66
Questions: 15 | Attempts: 66

SettingsSettingsSettings
Computer Science Test II - Quiz


This test covers
OOP concept
RDBMS
Networking


Questions and Answers
  • 1. 

    When a default constructor is explicitly defined by the programmer the default constructor provided by the compiler is overridden

    • A.

      True

    • B.

      False

    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.

    Rate this question:

  • 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.

    Rate this question:

  • 3. 

    Types of Inheritance

    • A.

      Single

    • B.

      Multiple

    • C.

      Multilevel

    • D.

      Hybrid

    • E.

      Hierarchical

    • F.

      Biological

    • G.

      Artificial

    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.

    Rate this question:

  • 4. 

    Private members of a Class are inherited

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    They are only visible and not accessible

    Rate this question:

  • 5. 

    Are constructors inherited?

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    No they are not. It is the responsibility of the programmer to invoke the constructor

    Rate this question:

  • 6. 

    Multilevel inheritance 

    • A.

      Transitive nature

    • B.

      One base class

    • C.

      Many base class but only one derived class

    • D.

      Option 4

    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.

    Rate this question:

  • 7. 

    Multiple Inheritance

    • A.

      Two base class and one derived class

    • B.

      One base class and one derived class

    • C.

      One base class and two derived class

    • D.

      Option4

    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.

    Rate this question:

  • 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.

    Rate this question:

  • 9. 

    80-20 rule states that 

    • A.

      80% traffic should be local and 20% should be outside the block

    • B.

      20% traffic should be local and 80% should be outside the block

    • C.

      Option 3

    • D.

      Option 4

    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.

    Rate this question:

  • 10. 

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

    • A.

      A block with maximum no of computer

    • B.

      A block with miniimum no of computer

    • C.

      A block with average no of computer

    • D.

      A block with no computer

    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.

    Rate this question:

  • 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.

    Rate this question:

  • 12. 

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

    • A.

      Repeater

    • B.

      Hub/Switch

    • C.

      Modem

    • D.

      Gateway

    • E.

      Satellite

    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.

    Rate this question:

Quiz Review Timeline +

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
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.