Untitled
22 Questions
6 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

The process by which one object can acquire the properties of another object:

  • A. Encapsulation
  • B. Inheritance (correct)
  • C. Polymorphism.
  • Constructors are used to:

  • A. To build a user interface.
  • B. Free memory.
  • C. Initialize a newly created object. (correct)
  • D. To create a sub-class.
  • An object that has more than one form is referred to as:

  • A. Inheritance
  • B. Interface
  • C. Abstract class
  • D. Polymorphism (correct)
  • Information Hiding can also be termed as:

    <p>B. Encapsulation</p> Signup and view all the answers

    Main method can be overridden:

    <p>False</p> Signup and view all the answers

    The keyword that is used to access the method or member variables from the superclass:

    <p>Super</p> Signup and view all the answers

    When sub class declares a method that has the same type of arguments as a method declared by one of its superclasses, it is termed as:

    <p>Method overriding</p> Signup and view all the answers

    What is the difference between method overloading and method overriding in Java?

    <p>All of the above.</p> Signup and view all the answers

    Which is not a feature of OOP in general definitions?

    <p>Duplicate/Redundant data</p> Signup and view all the answers

    Which feature of OOP indicates code reusability?

    <p>Inheritance</p> Signup and view all the answers

    Which of the following is not true about polymorphism?

    <p>Increases overhead of function definition always</p> Signup and view all the answers

    What does CSS stand for?

    <p>Cascading Style Sheets</p> Signup and view all the answers

    Website: A collection of _________________________ web pages on the World Wide Web

    <p>interlinked</p> Signup and view all the answers

    In computer science a language used to create web pages is...

    <p>HTML</p> Signup and view all the answers

    Fill in the blank: HTML Hypertext ________________ Language

    <p>Markup</p> Signup and view all the answers

    What does a hyperlink do?

    <p>Takes you to another web page Takes you to another website</p> Signup and view all the answers

    What is the primary focus of abstraction in Java?

    <p>Essentials</p> Signup and view all the answers

    In Java, what does abstraction aim to hide?

    <p>Specific details</p> Signup and view all the answers

    What aspect of Java does abstraction emphasize?

    <p>Essential qualities</p> Signup and view all the answers

    Which keyword is used to define a class in Java that cannot be instantiated and can only be used as a base for other classes?

    <p>abstract</p> Signup and view all the answers

    What is the term for the process of wrapping the data members and methods into a single unit known as a class?

    <p>encapsulation</p> Signup and view all the answers

    What is the access modifier that restricts the access to the members within the same class?

    <p>private</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser