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/ 1
Guru Ghasidas Vishwavidyalaya, Bilaspur (C G)
Department Of Computer Science and Engineering
End Term Examination April -2024 VI Semester Open Elective (Chem/CE/ECE/ME) (Object Oriented Programming with C++) (CS206TOE01) Max Marks: 70 Note : Question 1 is compulsory. Attempt any two part out of three from question 2 to question 6.
Section -I (Objective Type) 2x10= 20 Marks
1. (i) ……………… is not a software (a) Program (b) utility (c) Script (d) Macros (ii) Which is not a feature of object oriented programming (a) Polymorphism (b) Abstraction (c) Integrity (d) Encapsulation (iii)What is the result of expression 9/2 (a) 4 (b) 4.5 (c) 4.55 (d) none of these (iv)Which of the following is not an arithmetic operation (a) a*=10; (b) a/=10 (c) a!=; (d) a%=10 (v)Which of the following is the correct syntax for declaring the array? (a) init array [] (b) int array [5]; (c) Array[5]; (d) Non of above (vi)By default class members are (a) public (b) private (c) static (d) constant (vii) What is the role of a constructor in classes? (a) To modify the data whenever required (b) To destroy an object (c) To initialize the data members of an object when it is created (d) To call private functions from the outer world (viii) What is the role of destructors in Classes? (a) To modify the data whenever required (b) To destroy an object when the lifetime of an object ends (c) To initialize the data members of an object when it is created (d) To call private functions from the outer world (ix) choose the inappropriate form of inheritance (a) Multiple (b) multilevel (c) Multistep (d) Single (x) this pointer can be declared as (a) const (b) volatile (c) both (a) & (b) int
Section -II (Long Answer Type) 10x5= 50 Marks
2. (a) Explain the features of objected oriented with example.
(b) Write the structure of program in C++, how it works for program describe. (c) Describe token, variable, data types using example. 3. (a) Write a program to store and print the details of student using class concept. (b) Short notes on (any 2): (i) switch (ii) logical operators (iii) Header files (c) Describe various control statement using example. 4. (a) Explain recursion with suitable example. (b) Write a program to show an object as parameter. (c) What is function overloading. Explain with a suitable example. 5. (a) Describe inheritance and its various type. (b) What is operator overloading. Explain with a suitable example (c) Explain constructure and destructor with example. 6. (a) Explain pointer with example. (b) Write a program to calculate factorial of a integer using pointer to function concept. (c) Explain this pointer with a suitable example.