0% found this document useful (0 votes)
2 views2 pages

CPP

This document is a model exam for BCA 2nd semester students focusing on Programming in C++. It consists of multiple-choice questions, short answer questions, and long answer questions covering various C++ concepts such as constructors, inheritance, and polymorphism. The exam has a minimum passing mark of 40 out of a maximum of 100 marks.

Uploaded by

mannsharma120306
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)
2 views2 pages

CPP

This document is a model exam for BCA 2nd semester students focusing on Programming in C++. It consists of multiple-choice questions, short answer questions, and long answer questions covering various C++ concepts such as constructors, inheritance, and polymorphism. The exam has a minimum passing mark of 40 out of a maximum of 100 marks.

Uploaded by

mannsharma120306
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/ 2

MODEL EXAM

BCA2ND SEM

PROGRAMMING IN C++

MIN. MARKS 40 MAX. MARKS 100

NOTE: DO AS DIRECTED,ALL QUESTIONS ARE COMPULSORY.

PART-A

NOTE : MULTIPLE CHOICE QUESTIONS,CHOOSE THE CORRECT ANSWERS. 1*10=10

1. What is C++?
a) C++ is an object oriented programming language
b) C++ is a procedural programming language
c) C++ supports both procedural and object oriented programming language
d) C++ is a functional programming language

2. Which of the following is the correct syntax of including a user defined header files in C++?
a) #include [userdefined]
b) #include “userdefined”
c) #include <userdefined.h>
d) #include <userdefined>

3. Which of the following is used for comments in C++?


a) /* comment */
b) // comment */
c) // comment
d) both // comment or /* comment */

4. Which of the following extension is used for user-defined header file in c++?
a) hg
b) cpp
c) h
d) hf

5. Which of the following is a correct identifier in C++?


a) VAR_1234
b) $var_name
c) 7VARNAME
d) 7var_name

6. Which of the following is not a type of Constructor in C++?


a) Default constructor
b) Parameterized constructor
c) Copy constructor
d) Friend constructor

7. Which of the following approach is used by C++?


a) Left-right
b) Right-left
c) Bottom-up
d) Top-down

8. What is the difference between delete and delete[] in C++?


a) delete is syntactically correct but delete[] is wrong and hence will give an error if used in any case
b) delete is used to delete normal objects whereas delete[] is used to pointer objects
c) delete is a keyword whereas delete[] is an identifier
d) delete is used to delete single object whereas delete[] is used to multiple(array/pointer of) objects
9. Which of the following type is provided by C++ but not C?
a) double
b) float
c) int
d) bool

10. Which of the following is used to terminate the function declaration in C++?
a) ;
b) ]
c) )
d) :

PART-B
SHORT ANSWER TYPE QUESTIONS

Q1 What is a derived data types.

Q2 What is use of scope resolution operator?

OR

Q1 Explain new and delete operator.

Q2 Explain parameterized constructor?

PART-C
LONG ANSWER TYPE QUESTIONS

Q1. What is inheritance? Explain each type with example

Q2. Explain Static member function with example

OR

Q1. What is Friend function and friend class ? Explain advantages and disadvantages with example.

Q2. What is polymorphism? Explain its types with example.

You might also like