0% found this document useful (0 votes)
32 views3 pages

Ii Puc Practical Examination, Feb - Mar 2022: Viva Questions 1. 2. 3. 4. 5

The document contains 30 questions and answers related to C++ programming and HTML. Some of the key topics covered include access specifiers in C++, scope resolution operator, default access specifier, definition of class and object, dot operator, inline functions, function overloading, constructors and destructors, pointers, linear data structures like stacks and queues, inheritance, base class, HTML tags like <img> and <tr>, difference between checkboxes and radio buttons, and text formatting tags.

Uploaded by

Rishi Kesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views3 pages

Ii Puc Practical Examination, Feb - Mar 2022: Viva Questions 1. 2. 3. 4. 5

The document contains 30 questions and answers related to C++ programming and HTML. Some of the key topics covered include access specifiers in C++, scope resolution operator, default access specifier, definition of class and object, dot operator, inline functions, function overloading, constructors and destructors, pointers, linear data structures like stacks and queues, inheritance, base class, HTML tags like <img> and <tr>, difference between checkboxes and radio buttons, and text formatting tags.

Uploaded by

Rishi Kesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

II PUC PRACTICAL EXAMINATION, FEB - MAR 2022

VIVA QUESTIONS

1. Mention the different access specifiers in C++


Ans: Private, Public and Protected
2. What is the significance of scope resolution operator (: :) in C++?
Ans: To define the member functions outside the class.
3. Which is the default access specifier in C++.
Ans: private
4. What is an object?
Ans: Instance of a class (Or Any Relevant Definition).
5. Define class.
Ans: Class is a way of grouping objects having similar characteristics. (Or Any Relevant
Definition)
6. Which operator is used to invoke data member and member function?
Ans: Dot (.) operator.
7. Which types of data members are accessible outside the class?
Ans: public members
8. What is an array?
Ans: An array is a set of homogeneous elements under the same name and same data type
(Or Any Relevant Definition)
9. Define data structure.
Ans: A data structure is a specialized format for organizing and storing data.
10. What is an inline function?
Ans: It is a short function where compiler replaces function call with its body.
11. What is function overloading?
Ans: Two or more functions have same name, but differs in number of arguments or data
type of arguments.
12. Mention any one need for function overloading.
Ans: It is easier to understand the flow of information and debug (Any Relevant Answer).
13. Define constructor.
Ans: constructor is a special member function that is used to initialize objects of a class
automatically.
14. Mention any one type of constructor.
Ans: Default constructor / Parameterized constructor / Copy constructor.
15. What is destructor?
Ans: Destructor is a special member function which will be executed automatically when an
object is destroyed (Relevant Definition)
16. What is default constructor?
Ans: A constructor with zero arguments is called default constructor.
17. Explain any one rule for writing constructor.
Ans: constructor name should be same as that of class name. (Any rule)
18. Define pointer?
Ans: A pointer is a variable that holds the memory address of another variable.
19. Expand WWW.
Ans: World Wide Web.
20. Give an example for linear data structure.
Ans: Array / stack / queue / linked list.
21. Define stack.
Ans: STACK is a special type of data structure where data items are inserted and deleted
from one (same) end called top of the stack
22. What is an inheritance?
Ans: Inheritance is the capacity of one class to inherit properties from another class.
23. What is base class?
Ans: It is the class whose properties are inherited by another class.
24. What is the purpose of <img> tag?
Ans: To insert an image in a webpage.
25. What is the purpose of <tr> tag in html?
Ans: To insert row in a table.
26. What is DHTML?
Ans: Dynamic Hyper Text Markup Language (DHTML) is a combination of Web
development technologies used to create dynamically changing websites.
27. What is web page?
Ans: Webpage is a hypertext document on the World Wide Web (website) (Any Relevant
Answer).
28. Mention any one example for web browser.
 Google Chrome.
 Mozilla Firefox.
 Microsoft Edge.
 Internet Explorer.
 Safari. (Any One)
29. Mention the Difference between Check Box and Radio Button
Ans: Check Box: Can choose one or more options
Radio button: Can choose only one option
30. Name text formatting tags in HTML
<B>: Bold <I>: Italics <U>: Underline (Any Formatting Tag)

You might also like