cg oral question
TRANSCRIPT
-
8/14/2019 Cg Oral Question
1/4
TITLE: Creation & Deletion of Objects from Bag
1.What is constructor? Explain different types of constructor?
2.What is a default constructor?
3.What is data encapsulation?
4.What are the access privileges in C++? What is the default access level?
5.What is the difference between delete and delete []?
6.Explain different features of OOP?
7.What is destructor?
8.What is static data member?
TITLE: Friend function and function overloading
1.What is the difference between function overloading and function overriding?
2.What is friend function?
3.What is mean by inline function?
4.When you will make a function inline? Why?
TITLE: String operations using operator overloading
1. What is operator overloading?
2. Why is it necessary to overload an operator?
3. How to overload the insertion & extraction operator
4. How many arguments are required in the definition of an overloaded unaryoperator?
5. What are the different between global and local data?
-
8/14/2019 Cg Oral Question
2/4
TITLE: Multiple Inheritance
1.What is inheritance?
2.What is multiple inheritance? What are its advantages and disadvantages?
3.What is the difference between public, protected, and private members of aclass?
TITLE: Virtual Function
1.What is polymorphism?
2.What is the difference between non-virtual and virtual functions?
3.What is a pure virtual function?
4.What is an abstract base class?
5.What is a virtual base class?
6.When do we make a class virtual?
7.How is polymorphism achieved at a) compile time, b) run time?
8.Why do we need virtual function?
TITLE: File Operations
1.What is stream?
2.Explain file handling in c++?
3.Whar are input & output streams?
4.Describe the various cases available for file poeration?
5.What is a file mode? Explain each mode?
6.Explain file pointer?
-
8/14/2019 Cg Oral Question
3/4
TITLE:Templates
1. What is generic programming? How it is implemented in c++?
2. What is template?
3. Distinguish between function overloading and function template?
TITLE: Line drawing
1. Explain DDA line drawing algorithm?
2. Explain Bresehnams Algorithm?
3. What is anti-aliasing? How it is implemented in line drawing?
4. What is pixel?
5.
TITLE: Circle Drawing
1. Explain DDA algorithm for circle generation?
2. Explain Bresehnams circle drawing Algorithm?
3. What is anti-aliasing? How it is implemented in line drawing?
4. What is pixel?
5.
TITLE:Scan Line
1. What are the steps involved in filling a polygon using the scan line method?
2. Explain flood fill Algorithm?
-
8/14/2019 Cg Oral Question
4/4
TITLE:2 D Transformations
1. What is 2D sharing?
2. Explain Translation?
3. Explain Rotation & scaling?
4. How do you perform shear in two dimensions?
TITLE:Fractals
1. What is fractal?
2. How are fractals generated?
3. Explain Bezier-curve?
4. Explain Hilberts curve?