Computer Science Practical Viva-Voce questions Q. 1. Differentiate between a run-time error and syntax error. Give one example of each. [Hint : Losic & Syntax] Q. 2. Differentaite between a data type struct and a data type class in C++. What is the need for a constructor function in an object. [Hint : Structures & Classes] Q. 3. Is it possible to apply Binary Search for any sorted data? Justify. [Hint : Yes] Q. 4. Differentiate between a LIFO list and FIFO list. [Hint : Stacks & Queues] Q. 5. Write any two differences between Procedural Programming and Object Oriented Programming. [Hint : Basic & C++] Q. 6. What is a pointer? [Hint : Address variable] Q. 7. What is a Queue? [Hint : LIFO] Q. 8. What is the purpose of comments and indentation in a program? [Hint : Remark] Q. 9. List four built-in data types available in C++. [Hint : Data Types] Q. 10. Why arrays are called static data structure? [Hint : Arrangs & Data Types]
Q. 11. Distinguish between serial file and a sequential file. [Hint : File Hadling] Q. 12. What do you mean by Inheritence? [Hint : Classes & Derived Classes] Q. 13. What are constructors & destructors. What purpose do they serve. [Hint : Class Functions] Q. 14. Distinguish between an object and a class. [Hint : Variables & Data Types] Q. 15. What is the pre-condition for Binary Search to be performed on a single dimensional array? [Hint : sorting] Q. 16. Differentiate between a Character constant and a string literal or constant. [Hint : String] Q . 17. Differentiate between the privately & publicly derived visibility modes. [Hint : Local & Global] Q. 18. What is meant by linear data structure? [Hint : Serial Data] Q. 19. What is a Deque? [Hint : Data Structures] Q. 20. Differentiate between privately and publicly derived visibility modes. [Hint : Data Hiding] Q.21. What is a copy constructor. [Hint : Member Function] Q.22. Define the term sorting and searching. [Hint : Arranys]
Q. 23. Differentiate between static data structure & dynamic structure. [Hint : Data Types] Q. 24. Define the following terms: Inheritance & Encapsulation. [Hint : OOP] Q. 25. What is a copy constructor. What do you understand by constructor overloading. [Hint : Function] Q. 26. Write two major differences between Object Oriented Programming and Procedural Programming. [Hint : BASIC&C++] Q. 27. What do you understand by constructor and destructor functions used in classes. How are these functions different from other member functions. [Hint : Classes & Objects] Q. 28. Differentiate between ifstream class and ofstream class. [Hint : Reading/Writing] Q. 29. Why main function is special. Give two reasons. [Hint : Program instractions] Q. 30. What do you understand by visibility modes in class derivations. What are these modes. [Hint : Public, Private & Protected] Q. 31. Differentiate between read( ) & write( ) functions. [Hint : Read & Write records] Q. 32. Write two advantages of using include compiler directive. [Hint : Header Files] Q. 33. What do you understand by default constructor and copy constructor functions used in classes? How are these functions different from normal constructors? [Hint : Member functions]
Q. 34. Differentiate between getline( ) & getc( ) functions. [Hint : String input] Q. 35. Illustrate the concept of Function Overloading with the help of an example. [Hint : Multiple Methods] Q.36. Illustrate the use of the this pointer with the help of an example. [Hint : Classes & Objects] Q. 37. Encapsulation is one of the major properties of OOP. How is it implemented in C++. [Hint : OOP features] Q. 38. Illustrate the use of “Self Referential Structures” with the help of an example. [Hint : Data types] Q. 39. Reusability of classes is one of the major properties of OOP. How is it implemented in C++. [Hint : Objecters & Classes] Q .40. Distinguish between: int*ptr=new int(5); & int * ptr= new int[5]; [Hint : Points & Array] Q .41. Distinguish between ios::out & ios::app. [Hint : File output/Append] Q. 42. What is the purpose of Header file in a program. [Hint : Include functions] Q. 43. What do you understand by a Base Class and a Derived Class. If a base class and a derived class each include a member function with the same name and arguments, which member function will be called by the object of the derived class if the scope operator is not used. [Hint : Polymorphism] Q. 44. Illustrate the concept of Inheritance with the help of an example.
[Hint : OOPS] Q. 45. What is the difference between put( ) and write( ). [Hint : Read & Write records] Q. 46. Will a C compiler always compile C++ code? [Hint : NO] Q. 47. Which is not a valid keyword: public, protected, guarded [Hint : „g‟] Q. 48. What is the correct syntax for inheritance a. class aclass : public superclass b. class aclass inherit superclass c. class aclass
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.