II PU Computer Science Viva Questions & Answers Feb' 2024

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

What is the default access specifier of a class in C++?

  • Protected
  • Friend
  • Public
  • Private (correct)

What is the operator used to access member functions of a class in C++?

  • :: (scope resolution)
  • + (addition)
  • -> (arrow) (correct)
  • - (subtraction)

Which term describes arranging elements in ascending or descending order?

  • Insertion
  • Deletion
  • Searching
  • Sorting (correct)

What is a collection of similar objects in C++?

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

What is the condition to apply binary search technique to search an element in an array?

<p>Elements in the array must be in ascending order (D)</p> Signup and view all the answers

What is an instance of a class called in C++?

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

What is the purpose of the TR tag in HTML?

<p>Defining a table row (D)</p> Signup and view all the answers

What is the operator used to allocate memory dynamically in C++?

<p>new operator (C)</p> Signup and view all the answers

What is the purpose of DHTML?

<p>Creating interactive webpages (D)</p> Signup and view all the answers

What is the role of the base class in inheritance?

<p>It provides properties to other classes (D)</p> Signup and view all the answers

When is a constructor invoked in C++?

<p>When object is created (D)</p> Signup and view all the answers

What is the characteristic of OOP implemented using function overloading?

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

Which tag is used to scroll text from one place to another in HTML?

<p>&lt;marquee&gt; (B)</p> Signup and view all the answers

What is the operator used to deallocate memory dynamically in C++?

<p>delete operator (C)</p> Signup and view all the answers

Flashcards

Default access specifier in C++ class

The default access specifier for members of a class is private.

Operator for member functions access

The operator used to access member functions of a class is the arrow operator (->).

Sorting

Arranging elements in ascending or descending order is called sorting.

Collection of similar objects in C++

A collection of similar objects in C++ is known as a class.

Signup and view all the flashcards

Condition for binary search

To apply binary search, the elements in the array must be in ascending order.

Signup and view all the flashcards

Instance of a class

An instance of a class in C++ is referred to as an object.

Signup and view all the flashcards

Purpose of TR tag in HTML

The TR tag in HTML is used for defining a table row.

Signup and view all the flashcards

Dynamic memory allocation operator

The operator used to allocate memory dynamically in C++ is the new operator.

Signup and view all the flashcards

Purpose of DHTML

DHTML is used for creating interactive webpages.

Signup and view all the flashcards

Role of base class in inheritance

The base class in inheritance provides properties to derived classes.

Signup and view all the flashcards

Constructor invocation

A constructor in C++ is invoked when an object is created.

Signup and view all the flashcards

Characteristic of OOP via function overloading

Polymorphism is a characteristic of OOP that can be implemented using function overloading.

Signup and view all the flashcards

Tag for scrolling text in HTML

The tag is used to scroll text from one place to another in HTML.

Signup and view all the flashcards

Dynamic memory deallocation operator

The operator used to deallocate memory dynamically in C++ is the delete operator.

Signup and view all the flashcards

Study Notes

C++ Basics

  • The default access specifier of a class in C++ is private.
  • The operator used to access member functions of a class in C++ is the dot operator (.) or the pointer operator (->).

Data Structures and Algorithms

  • Arranging elements in ascending or descending order is known as sorting.
  • A collection of similar objects in C++ is called an array.

Searching and Memory Management

  • The condition to apply binary search technique to search an element in an array is that the array must be sorted.
  • An instance of a class in C++ is called an object.

HTML

  • The purpose of the TR tag in HTML is to define a row in a table.
  • The tag used to scroll text from one place to another in HTML is the Marquee tag.

Dynamic Memory Allocation

  • The operator used to allocate memory dynamically in C++ is the new operator.
  • The operator used to deallocate memory dynamically in C++ is the delete operator.

Object-Oriented Programming

  • The purpose of DHTML is to create interactive and dynamic web pages.
  • The base class in inheritance provides a way to create a new class based on an existing class.
  • A constructor in C++ is invoked when an object is created.
  • The characteristic of OOP implemented using function overloading is polymorphism.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Use Quizgecko on...
Browser
Browser