Untitled

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 (B)</p> Signup and view all the answers

Main method can be overridden:

<p>False (B)</p> Signup and view all the answers

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

<p>Super (A)</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 (A)</p> Signup and view all the answers

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

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

Which is not a feature of OOP in general definitions?

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

Which feature of OOP indicates code reusability?

<p>Inheritance (D)</p> Signup and view all the answers

Which of the following is not true about polymorphism?

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

What does CSS stand for?

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

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

<p>interlinked (A)</p> Signup and view all the answers

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

<p>HTML (A)</p> Signup and view all the answers

Fill in the blank: HTML Hypertext ________________ Language

<p>Markup (A)</p> Signup and view all the answers

What does a hyperlink do?

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

What is the primary focus of abstraction in Java?

<p>Essentials (B)</p> Signup and view all the answers

In Java, what does abstraction aim to hide?

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

What aspect of Java does abstraction emphasize?

<p>Essential qualities (B)</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 (B)</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 (B)</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 (B)</p> Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

Use Quizgecko on...
Browser
Browser