Page 1 :
BGS Pre University College, Mahalakshmi Puram, Bangalore, , II PUC PRACTICAL EXAMINATION, FEB - MAR ‘2022, VIVA QUESTIONS, 1. Mention the different access specifiers in C++, 2., 3., 4., 5., , Ans: Private, Public and Protected, What is the significance of scope resolution operator (: :) in C++?, Ans: To define the member functions outside the class., Which is the default access specifier in C++., Ans: private, What is an object?, Ans: Instance of a class (Or Any Relevant Definition)., 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.
Page 2 :
BGS Pre University College, Mahalakshmi Puram, Bangalore, , 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)