Vous êtes sur la page 1sur 37

(For the candidates admitted from 2017 and onwards)

B.COM DEGREE EXAMINATION, NOV/APRIL 201___.

I Semester

Programme: B.Com (CA) / B.Com / B.Com (IT) / B.Com (PA) /

B.Com (BA) / B.Com (BPS)

Course: Object Oriented programming with C++

MCQs

1. Wrapping data and its related functionality into a single entity is known as _____________

a) Abstraction

b) Encapsulation

c) Polymorphism

d) Modularity

Answer: b.

2. How structures and classes in C++ differ?

a) Classes follows OOP concepts whereas structure does not

b) In Structures, members are private by default whereas in Classes they are public by default

c) Structures by default hide every member

d) Classes and Structures are the same

Answer: a

3. What does polymorphism in OOPs mean?

a) Concept of allowing overiding of functions

b) Concept of hiding data

c) Concept of keeping things in differnt modules/files

d) Concept of wrapping things into a single unit

Answer: a
4. Which concept allows you to reuse the written code?

a) Encapsulation

b) Abstraction

c) Inheritance

d) Polymorphism

Answer: c

5. Which of the following explains Polymorphism?

a)

int func(int, int);

float func1(float, float);

b)

int func(int);

int func(int);

c)

int func(float);

float func(int ,int, char);

d)

int func();

int new_func();

Answer: c

6. Which of the following shows multiple inheritances?

a) A->B->C

b) A->B; A->C

c) A,B->C

d) B->A
Answer: c

7. How access specifiers in Class helps in Abstraction?

a) They does not helps in any way

b) They allows us to show only required things to outer world

c) They help in keeping things together

d) Abstraction concept is not used in classes

Answer: b

8. C++ is ______________

a) procedural programming language

b) object oriented programming language

c) functional programming language

d) both procedural and object oriented programming language

Answer: d

9. What does modularity mean?

a) Hiding part of program

b) Subdividing program into small independent parts

c) Overriding parts of program

d) Wrapping things into single unit

Answer: b

10. Which of the following feature of OOPs is not used in the below code?

class A

int i;

public:

void print(){cout<<"hello"<<i;}

}
class B: public A

int j;

public:

void assign(int a){j = a;}

a)Abstraction

b)Encapsulation

c)Inheritance

d)Polymorphism

Answer:d

set ii

1. Which of the following is the correct syntax of including a user defined header files in C++?

a) #include <userdefined.h>

b) #include <userdefined>

c) #include “userdefined”

d) #include [userdefined]

Answer: c

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

a) 7var_name

b) 7VARNAME

c) VAR_1234

d) $var_name

Answer: c

3. Which of the following is called address operator?

a) *

b) &
c) _

d) %

Answer: b

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

a) // comment

b) /* comment */

c) both // comment or /* comment */

d) // comment */

Answer: c

5. What are the actual parameters in C++?

a) Parameters with which functions are called

b) Parameters which are used in the definition of a function

c) Variables other than passed parameters in a function

d) Variables that are never used in the function

Answer: a

6. What are the formal parameters in C++?

a) Parameters with which functions are called

b) Parameters which are used in the definition of the function

c) Variables other than passed parameters in a function

d) Variables that are never used in the function

Answer: b

8. Which function is used to write a single character to console in C++?


a) cout.put(ch)

b) cout.putline(ch)

c) write(ch)

d) printf(ch)

Answer: a

9. What are the escape sequences?

a) Set of characters that convey special meaning in a program

b) Set of characters that whose use are avoided in C++ programs

c) Set of characters that are used in the name of the main function of the program

d) Set of characters that are avoided in cout statements

Answer: a

10. Which of the following escape sequence represents carriage return?

a) \r

b) \n

c) \n\r

d) \c

Answer: a

12. Who created C++?

a) Bjarne Stroustrup

b) Dennis Ritchie

c) Ken Thompson

d) Brian Kernighan

Answer: a
13. Which of the following is called insertion/put to operator?

a) <<

b) >>

c) >

d) <

Answer: a

14. Which of the following is called insertion/put to operator?

a) <<

b) >>

c) >

d) <

Answer: b

15. A language which has the capability to generate new data types are called ________________

a) Extensible

b) Overloaded

c) Encapsulated

d) Reprehensible

Answer: a

1. Which operator is overloaded for a cout object?

a) >>

b) <<

c) <
d) >

Answer: b

2. Which of the following cannot be used with the virtual keyword?

a) Class

b) Member functions

c) Constructors

d) Destructors

Answer: c

3. Which concept is used to implement late binding?

a) Virtual functions

b) Operator functions

c) Constant functions

d) Static functions

Answer: a

4. Which of the following is correct?

a) C++ allows static type checking

b) C++ allows dynamic type checking.

c) C++ allows static member function to be of type const.

d) C++ allows both static and dynamic type checking

Answer: d

5. Which of the following supports the concept that reusability is a desirable feature of a language?

a) It reduces the testing time

b) It reduces maintenance cost


c) It decreases the compilation time

d) It reduced both testing and maintenance time

Answer: d

6. Which of the following is a static polymorphism mechanism?

a) Function overloading

b) Operator overloading

c) Templates

d) All of the mentioned

Answer: d

7. Which of the following is true?

I) All operators in C++ can be overloaded.

II) The basic meaning of an operator can be changed.

a) I only

b) II only

c) Both I and II

d) Neither I nor II

Answer: d

8. Which of the following is not a type of inheritance?

a) Multiple

b) Multilevel

c) Distributive

d) Hierarchical

Answer: c

9. What happens if a class does not have a name?

a) It will not have a constructor

b) It will not have a destructor

c) It is not allowed

d) It will neither have a constructor or destructor


Answer: b

10. Which of the following statement is true?

I) In Procedural programming languages, all function calls are resolved at compile-time

II) In Object Oriented programming languages, all function calls are resolved at compile-time

a) I only

b) II only

c) Both I and II

d) Neither I nor II

Answer: a

Which members are inherited but are not accessible in any case?

a) Private

b) Public

c) Protected

d) Both private and protected

Answer: a

FUNDAMENTALS

1. C language has been developed by

A) Martin Richards

B) Bijarne Stroustrup

C) Dennis Ritche

D) Ken Thompson

2. int[ ] ={5,6,7,8,9} What is the value of a[3]?

A) 9

B) 8

C) 7

D) 6

3. C can be used on

A) Only MS-Dos operating System

B) Only Linux operating system


C) Only Windows operating system

D) All of the above

4. Float a[15], what is the size of array?

A) 17

B) 14

C) 15

D) 16

5. C programs are converted into machine language with the

help of

A) An Editor

B) A complier

C) An operating system

D) None of the above

6. Array is

A) Primary data type

B) Pointer data type

C) Heterogeneous data type

D) Homogenous data type

7. Which of the following is allowed in a C Arithmetic Instruction?

A) [ ]

B) { }

C) ( )

D) None of the above

8. To accept 100 different values into the array we require

A) Loop

B) If condition

C) Function

D) Structure

9. If a is an integer variable, a=7/3; will return a value


A) 2.5

B) 3

C) 0

D) 2

10. Pointer holds

A) Value of variable

B) Address of variable

C) Value and address of variable

D) Always null

Answers:

1. C) Dennis Ritche

2. B) 8

3. D) All of the above

4. C) 15

5. B) A complier

6. D) Homogenous data type

7. C) ( )

8. A) Loop

9. D) 2

10. B) Address of variable

FUNDAMENTALS II

1. The ……………. Operator is known as insertion operator.

A) >>

B) >

C) <<

D) <
2. State True or False.

i) A satic function can have access to only other static members (functions or variables) declared in the
same class.

ii) A static member function can be called using the class name (instead of its objects)

A) True, True

B) True, False

C) False, True

D) False, False

3. Which of the following condition is true for an object used as a function argument?

i) A copy of the entire objects is passed to the function.

ii) Only the address of the object is transferred to the function.

A) Only i

B) Only ii

C) Both i and ii

D) None of them

4. …………… enable us to hide, inside the object, both the data fields and the methods that act on that
data.

A) Encapsulation

B) Polymorphism

C) Inheritance

D) Overloading

5. Which of the following is/ are the characteristics of friend function.

A) It is not in the scope of the class to which it has been declared as friend.

B) It can invoke like a normal function without the help of any object.

C) Usually, it has the objects as arguments.


D) All of the above.

6. The dereferencing operator ………….. is used to access a member when we use pointers to both the
object and the member.

A) ->*

B) .*

C) Any of the above

D) None of the above

7. A ………………. Is a class whose instances themselves are classes.

A) Subclass

B) Abstract Class

C) Meta Class

D) Object Class

8. The dereferencing operator ……… is used when the object itself is used width in the member pointer.

A) ->*

B) .*

C) Any of the above

D) None of the above

9. A constructor that accepts no parameters is called the ……………….

A) Paramless constructor

B) No parameter constructor

C) Default constructor

D) Argumentless constructor
10. Automatic initialization of object is carried out using a special member function called …………

A) Friend

B) Casting

C) Reference Parameter

D) Constructor

11. Which of the following characteristics of constructor are true.

i) They should be declared in the public section.

ii) They are invoked automatically when the objects are created.

iii) They do not have return type and void also.

iv) We cannot refer their address.

v) Constructors cannot virtual.

A) Only i, ii, iii and v

B) Only ii, iii, iv, and v

C) Only i, iii, iv and v

D) All i, ii, iii, iv and v

12. A ……………. takes a reference to an object of the same class as itself as an argument.

A) Reference constructor

B) Copy Constructor

C) Self Constructor

D) None of the above

13. State True or False

i) A destructor never takes any argument nor does it return any value.

ii) It releases memory space for future use.

A) True, True

B) True, False
C) False, True

D) False, False

14. Which of the following operates cannot be overloaded?

i) Size of operator (sizeof) ii) Scope resolution Operator

iii) Conditional operator (?:) iv) Assignment Operator (=)

A) i, ii, iii only

B) ii, iii, iv only

C) i, iii, iv only

D) all i, ii, iii, iv

15. …………. Is the process of creating new classes, called derived classes from existing classes called base
class.

A) Inheritance

B) Encapsulation

C) Polymorphism

D) Overloading

16. State True or False.

i) While overloading operators new operator can be overloaded.

ii) The binary operator such as +, -, * and must explicitly return a value.

A) True, True

B) True, False

C) False, True

D) False, False

17. ………… function writes a string of text to a window.

A) cputs ()

B) put ()
C) gets ()

D) tputs ()

18. Which of the following condition (s) should satisfy the casting operator.

i) It must be a class member.

ii) It must not satisfy a return type.

iii) It must have any arguments.

iv) All of the above.

19. Find the Hierarchy of Data Types.

i) Long double ii) Double iii) Float iv) Long v) Int vi) Char

A) 1-2-3-4-5-6

B) 1-3-2-4-5-6

C) 1-2-3-5-4-6

D) 1-2-4-3-5-6

20. ………….. function sets the fill pattern and color.

A) floodfill ()

B) setcolor()

C) setfillstyle()

D) fillstyle ()

ANSWERS:

1. C) <<

2. B) True, False

3. C) Both i and ii

4. A) Encapsulation

5. D) All of the above.

6. A) ->*
7. C) Meta Class

8. B) .*

9. C) Default constructor

10. D) Constructor

11. D) All i, ii, iii, iv and v

12. B) Copy Constructor

13. A) True, True

14. A) i, ii, iii only

15. A) Inheritance

16. C) False, True

17. A) cputs ()

18. iv) All of the above.

19. A) 1-2-3-4-5-6

20. C) setfillstyle()

CONSTRUCTOR AND DESTRUCTOR

1. C++ provides a special ………………… called the constructor, which enables an object to initialize itself
when it is created.

A) friend function

B) member function

C) public function

D) private function

2. A constructor has the same …………….. as that of class.

A) variable

B) object

C) function

D) name

3. Constructors are normally used to …………….. and to allocate memory.

A) define variables

B) allocate variables
C) initialize variables

D) initialize object

4. A constructor that accepts no parameters is called the …………….

A) default constructor

B) parameterized constructor

C) implicit constructor

D) null constructor

5. Constructors cannot be inherited, through a derived class can call the ………………. constructor.

A) base class

B) derived class

C) void class

D) default class

6. State whether the following statements about the constructor are True or False.

i) constructors should be declared in the private section.

ii) constructors are invoked automatically when the objects are created.

A) True, True

B) True, False

C) False, True

D) False, False

7. The constructors that can take arguments are called …………… constructors.

A) default constructor

B) parameterized constructor

C) implicit constructor

D) argument constructor

8. When an object is created and initialized at the same time, a ………………. gets called.

A) default constructor

B) parameterized constructor

C) implicit constructor

D) copy constructor
9. In C++, ……………………. creates objects, even through it was not defined in the class.

A) default constructor

B) parameterized constructor

C) implicit constructor

D) copy constructor

10. …………….. constructor will not do anything and defined just to satisfy the compiler

A) default

B) parameterized

C) implicit

D) copy

11. The ………………… constructor can be called with either one argument or no arguments.

A) default

B) default argument

C) implicit

D) copy

12. A ………………….. is used to declare and initialize an object from another object.

A) default constructor

B) default argument constructor

C) implicit constructor

D) copy constructor

13. A ……………. takes a reference to an object of the same class as itself as an argument.

A) default constructor

B) default argument constructor

C) implicit constructor

D) copy constructor

14. Destructor is a member function whose name is same as the class name but is preceded by a ………..

A) tilde

B) hash

C) dot
D) dollor

15. A destructor is used to destroy the objects that have been created by a ………………..

A) object

B) class

C) function

D) constructor

16. Whenever const objects try to invoke non-const member functions, the compiler …………………

A) return zero value

B) return null

C) generate error

D) return no value

17. Allocation of memory to objects at the time of their construction is known as ……………. of objects.

A) run time construction

B) dynamic construction

C) initial construction

D) static construction

18. The process of initializing through a copy constructor is known as ……………

A) copy process

B) copy registration

C) copy initialization

D) initialization process

19. ……………….. provides the flexibility of using different format of data at runtime depending upon the
situation.

A) dynamic initialization

B) run time initialization

C) static initialization

D) variable initialization

20. An ………………….. with a constructor or destructor cannot be used as a member or a union.

A) class
B) object

C) function

D) variable

ANSWERS

1. B) member function

2. D) name

3. C) initialize variables

4. A) default constructor

5. A) base class

6. C) False, True

7. B) parameterized constructor

8. D) copy constructor

9. C) implicit constructor

10. C) implicit

11. B) default argument

12. D) copy constructor

13. D) copy constructor

14. A) tilde

15. D) constructor

16. C) generate error

17. B) dynamic construction

18. C) copy initialization

19. A) dynamic initialization

20. B) object
TOKENS EXPRESSIONS AND CONTROL STURCTURE

1. In C++, we can give several meanings to an operator, depending upon the types of arguments used,
which was known as …………..

A) Operator variable

B) Operator overloading

C) Operator loading

D) Operator manipulation

2. Which of the following is/are the pointer-to-member operator used in C++.

i) : : ii) : : * iii) _>* iv) . *

A) i and ii only

B) ii and iiii only

C) i and iv only

D) iii and iv only

3. Which of the following is the scope resolution operator in C++.

A) : :

B) : : *

C) _>*

D) . *

4. …………….. operator can be used to uncover a hidden variable.

A) pointer-to-member

B) memory release

C) scope resolution

D) line feed

5. A major application of the ………………… operator is in the classes to identify the class to which a
member function belongs.

A) pointer-to-member
B) memory release

C) scope resolution

D) line feed

6. ……………….. operator is used to access a member using a pointer to the object and a pointer to that
member.

A) : :

B) : : *

C) _>*

D) . *

7. ………………. operator is used to declare a pointer to a member of a class.

A) : :

B) : : *

C) _>*

D) . *

8. The ………………. operator allocates sufficient memory to hold a data object type data type and returns
the address of the object.

A) malloc()

B) calloc()

C) new

D) free()

9. The expression …………….. will delete the entire array pointed to by p.

A) delete all p;

B) delete array p;

C) delete * p;

D) delete[ ] p;
10. The ……………… operator automatically returns the correct pointer type, so that there is no need to
use a type cast.

A) new

B) delete

C) malloc()

D) setw

11. The …………….. manipulator is used in an output statement which causes a linefeed to be inserted.

A) setw

B) delete

C) endl

D) symbol

12. Which of the following is/are the new cast operators used in C++.

i) const_cast ii) static_cast iii) dynamic_cast iv) new_cast

A) i, ii and iii only

B) ii, iii and iv only

C) i, iii and iv only

D) All i, ii, iii and iv

13. A/An …………………. is a combination of operator, constants and variables arranged as per the rules of
the language.

A) token

B) expression

C) structure

D) none

14. Which of the following is/are the types of C++ expressions.

i) constant expressions ii) integral expressions

iii) float expressions iv) null expressions

A) i, ii and iii only

B) ii, iii and iv only

C) i, iii and iv only

D) All i, ii, iii and iv


15. ……………………. produce results of type bool which takes a value true or false.

A) Relational expressions

B) Float expressions

C) Logical expressions

D) Bitwise expressions

16. ……………… combine to or more relational expressions and produces bool type results.

A) Relational expressions

B) Float expressions

C) Logical expressions

D) Bitwise expressions

17. The ………………… is an entry-enrolled loop and is used when an action is to be repeated for
predetermined number of times.

A) while

B) for

C) do-while

D) switch

18. The ………………….. is an exit-enrolled loop where the control is transferred back to a particular point
in the program.

A) while

B) for

C) do-while

D) switch

19. The ………………… is a multiple-branching statement where,

based on a condition, the control is transferred to one of the many

possible points.

A) while

B) for

C) do-while
D) switch

20. The operator ………………… is known as compound assignment or short-hand assignment operator.

A) =

B) = =

C) += =

D) +=

ANSWERS

1. B) Operator overloading

2. D) iii and iv only

3. A) : :

4. C) scope resolution

5. C) scope resolution

6. C) _>*

7. B) : : *

8. C) new

9. D) delete[ ] p;

10. A) new

11. C) endl

12 A) i, ii and iii only

13. B) expression

14. A) i, ii and iii only

15. A) Relational expressions

16. C) Logical expressions

17. B) for

18. C) do-while

19. D) switch

20. D) +=
CLASSES AND OBJECTS

1. In C++, the declaration of functions and variables are collectively called …….

A) class members

B) function members

C) object members

D) member variables

2. The keywords private and public used in C++ are known as ………….

A) keyword labels

B) visibility labels

C) declaration labels

D) display labels

3. The variables declared inside the class are known as data members and functions are known as
………….

A) data functions

B) inline functions

C) member functions

D) member variables

4. Only the …………………. can have access to the private members and private functions.

A) data functions

B) inline functions

C) member functions
D) member variables

5. The binding of data and functions together into a single class-type variable is referred to as …………..

A) encapsulation

B)

C)

D)

6. Which of the following statements about member functions are True or False.

i) A member function can call another member function directly with using the dot operator.

ii) Member function can access the private data of the class.

A) i-True, ii-True

B) i-False, ii-True

C) i-True, ii-False

D) i-True, ii-True

7. When the function is defined inside a class, it is treated as ………………….

A) data function

B) inline function

C) member function

D) member variable

8. A member function can be called by using its name inside another function of the same class, which is
known as ………… of member function.

A) sub function

B) sub member

C) nesting
D) sibling

9. A ………………. member function can only be called by another function that is member of it’s class.

A) friend

B) static

C) public

D) private

10. ……………….. member variable is initialized to zero when the first object of its class is created where
no other initialization is permitted.

A) friend

B) static

C) public

D) private

11. State whether the following statements are True or False about the characteristics of static data
members.

i) Only one copy of static member is created for the entire class and is shared by all the objects of that
class, no matter how many objects are created.

ii) Static member variable is visible only within the class, but its lifetime is the entire program.

A) i-True, ii-True

B) i-False, ii-True

C) i-True, ii-False

D) i-True, ii-True

12. Static variables are associated with the class itself rather than with any class object, they are also
known as …………….

A) class variables

B) object variables

C) function variables

D) internal variables
13. Static variables are like ………………… as they are declared in a class declaration and defined in the
source file.

A) inline member function

B) non inline member function

C) static member function

D) dynamic member function

14. A …………….. can have access to only other static members declared in the same class.

A) constant member function

B) private member function

C) static member function

D) friend function

15. A static member function can be called using the ………………… instead of its objects.

A) variable name

B) function name

C) Class name

D) object name

16. While using an object as a function argument, a copy of the entire object is passed to the function in
………….. method.

A) pass-by-value

B) pass-by-reference

C) pass-by-variable

D) pass-by-function

17. A ……………………., although not a member function, has full access rights to the private members of
the class.

A) constant member function

B) private member function


C) static member function

D) friend function

18. ……………. can be invoked like a normal function without the help of any object.

A) constant member function

B) private member function

C) static member function

D) friend function

19. A ………….. can only be called by another function that is member of its class.

A) constant member function

B) private member function

C) static member function

D) friend function

20. If a member function does not alter any data in the class, that may be declared as ………………..

A) constant member function

B) private member function

C) static member function

D) friend function

ANSWERS

1. A) class members

2. B) visibility labels

3. C) member functions

4. C) member functions

5. A) encapsulation

6. B) i-False, ii-True

7. B) inline function

8. C) nesting

9. D) private

10. B) static

11. A) i-True, ii-True


12. A) class variables

13. B) non inline member function

14. C) static member function

15. C) Class name

16. A) pass-by-value

17. D) friend function

18. D) friend function

19. B) private member function

20. A) constant member function

C++ OPERATOR OVERLOADING

1) We can overload which of the following C++ operators.

A) Arithmetic operator (+, -, *, /)

B) Class Member Access Operators (., .*)

C) Size operator(sizeof)

D) Conditional operator(?:)

2) ……………… must be either non-static member function or friend functions.

A) member functions

B) Operator functions

C) non-static functions

D) friend functions

3) Operator overloading is also called …………….. polymorphism.

A) run time

B) initial time

C) compile time

D) completion time

4) We can overload almost all the C++ operators except the following.

i) Class member operator (.,.*) ii) Assignment operator (=)

iii) Scope resolution operator (::) iv) Conditional operator (?:)

A) i, ii and iii only


B) ii, iii and iv only

C) i, iii and iv only

D) All i, ii, iii and iv

5) Which of the following is the correct order involves in the process of operator overloading.

i) Define the operator function to implement the required operations.

ii) Create a class that defines the data type that is to be used in the overloading operation.

iii) Declare the operator function op() in the public part of the class.

A) 1-i, 2-ii, 3-iii

B) 1-ii, 2-iii, 3-i

C) 1-ii, 2-i, 2-iii

D) 1-iii, 2-ii, 3-i

6) State whether the following statements are True or False for overloading operators.

i) Only existing operators can be overloaded.

ii) We can change the basic meaning of an operator

A) True, True

B) True, False

C) False, True

D) False, False

7) We cannot use friend functions to overload which of the following operators.

i) membership operator(.) ii) Assignment operator(=)

iii) class member access operator(_>) iv) conditional operator(?:)

A) i and ii only

B) ii and iii only

C) iii and iv only

D) i and iv only
8) …………… overloaded by means of a member function, take no explicit arguments and return no
explicit values.

A) Unary operators

B) Binary operators

C) Arithmetic operators

D) Function operator

9) ……………. overloaded through a member function take one explicit argument and those which are
overloaded through a friend function take two explicit arguments.

A) Unary operators

B) Binary operators

C) Arithmetic operators

D) Function operator

10) When using ………………., overloaded through a member function, the left hand operand must be an
object of the relevant class.

A) Unary operators

B) Binary operators

C) Arithmetic operators

D) Function operator

11) Operator overloading is done with the help of a special function called ……………, which describes the
special task of an operator.

A) overloading function

B) special task function

C) detail function

D) operator function

12) The compiler does not support automatic type conversions for the ………….. data type.

A) basic

B) user defined

C) class
D) automatic

13) The casting operator function should satisfy which of the following conditions.

i) It must be a class member ii) It must not specify return type

iii) It must not have any arguments

A) i and ii only

B) ii and iii only

C) i, iii only

D) All i, ii and iii

14) The conversion from a class to any other type or any other class should make use of a ………….. in the
source class.

A) casting operator

B) constructor

C) not applicable

D) operator function

15) To perform the conversion from any other data type or class to a class type, a ………….. should be
used in the destination class.

A) casting operator

B) constructor

C) not applicable

D) operator function

16) The general form of an overloaded casting operator function usually referred to as a ……………..

A) casting function

B) operator function

C) conversion function

D) overloaded function

17) Operator overloading provides a flexible option for the creation of new …………….. for most of the
C++ operations.

A) class

B) function

C) object
D) definitions

18) In the case of …………….. function, arguments may be passed either by value or by reference.

A) private

B) friend

C) member

D) public

ANSWERS

1) A) Arithmetic operator (+, -, *, /)

2) B) Operator functions

3) C) compile time

4) C) i, iii and iv only

5) B) 1-ii, 2-iii, 3-i

6) B) True, False

7) B) ii and iii only

8) A) Unary operators

9) B) Binary operators

10) B) Binary operators

11) D) operator function

12) B) user defined

13) D) All i, ii and iii

14) A) casting operator

15) B) constructor

16) C) conversion function

17) D) definitions

18) B) friend

Vous aimerez peut-être aussi