July 8, 2021 in C and CPP
A relational operator
1.3 A relational operator
A) assigns one operand to another.
B) yields a Boolean result.
C) logically combines two operands.
D) none of the above
July 8, 2021 in C and CPP
1.3 A relational operator
A) assigns one operand to another.
B) yields a Boolean result.
C) logically combines two operands.
D) none of the above
July 8, 2021 in C and CPP
1.2 Condition checking in C++ can be done by using the statement
A) If-else
B) option
C) choice
D) select
July 8, 2021 in C and CPP
1.1 The statement char s = ‘A’ will internally assign value to s is
A) 0
B) 90
C) 65
D) 127
July 8, 2021 in C and CPP
c) Differentiate between copy constructor and default constructor.
July 8, 2021 in C and CPP
b) What is operator overloading? What is the use of operator overloading? If meaning of
any operator is changed, will compiler generate error?
July 8, 2021 in C and CPP
a) What is a pure virtual function? Show its use in example.
July 8, 2021 in C and CPP
c) Define the following terms with proper illustration:
Object, Polymorphism, Data hiding.
July 8, 2021 in C and CPP
b) Discuss the exception handling in C++.
July 8, 2021 in C and CPP
a) Write a function using reference variables as arguments to swap the values of a pair of
integers.
July 8, 2021 in C and CPP
d) What are input and output streams? Describe various classes available for file
operations.