CPP
CPP
BCA2ND SEM
PROGRAMMING IN C++
PART-A
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>
4. Which of the following extension is used for user-defined header file in c++?
a) hg
b) cpp
c) h
d) hf
10. Which of the following is used to terminate the function declaration in C++?
a) ;
b) ]
c) )
d) :
PART-B
SHORT ANSWER TYPE QUESTIONS
OR
PART-C
LONG ANSWER TYPE QUESTIONS
OR
Q1. What is Friend function and friend class ? Explain advantages and disadvantages with example.