II PU Computer Science Viva Questions & Answers Feb' 2024

UnequivocalIambicPentameter avatar
UnequivocalIambicPentameter
·
·
Download

Start Quiz

Study Flashcards

14 Questions

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

Private

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

-> (arrow)

Which term describes arranging elements in ascending or descending order?

Sorting

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

Class

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

Elements in the array must be in ascending order

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

Object

What is the purpose of the TR tag in HTML?

Defining a table row

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

new operator

What is the purpose of DHTML?

Creating interactive webpages

What is the role of the base class in inheritance?

It provides properties to other classes

When is a constructor invoked in C++?

When object is created

What is the characteristic of OOP implemented using function overloading?

Polymorphism

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

<marquee>

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

delete operator

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.

Prepare for your II PU Computer Science viva with these questions and answers covering topics such as member functions, access specifiers, classes, and objects in C++. Test your knowledge before the exam.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Use Quizgecko on...
Browser
Browser