C++ Questions - Part 2

Take This Test

Section 1

1) C programming language was developed by?
2) In C++, an identifier must be initialized using constant expression.
3) The signature of a function is
4) A declaration float a,b; occupies ___ of memory
5) Static data member occurs in only class scope.
6) Class members are _______________ by default
7) A class that contains at least one pure virtual function is called as
8) Which of the following are good reasons to use an object oriented language?
9) Which of the following is invalid?
10) Inline function specifier reduces the overheads associated with a normal function call.
11) The members of a class by default are private.
12) We can make function inline by using the keyword ‘inline’.
13) Classes are useful because they
14) A constructor cannot be explicitly called.
15) “[]” Operator is a unary operator.
16) Friend function have access to the
17) What is the valid range of numbers for int type of data?
18) In case of nested class, enclosing class can directly access the private data member of nested class.
19) What will be the maximum size of a double variable?
20) The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().

Take This Test

Also check these C++ test papers, these are one of most attempted test paper in this category.

Popular C++ Papers