a) for b) while c) do-while d) all of the mentioned Answer: c ...
View QuestionWhich of the following is the correct difference between cin and scanf()?
a) both are the same b) cin is a stream object whereas scanf() is a function c) scanf() is ...
View QuestionWhich of the following is C++ equivalent for printf()?
a) cin b) cout c) print d) input Answer: b Explanation: C++ uses cout to print output ...
View QuestionWhich of the following is C++ equivalent for scanf()?
a) cin b) cout c) print d) input Answer: a Explanation: C++ uses cin to read input ...
View QuestionWhat is the size of a boolean variable in C++?
a) 1 bit b) 1 byte c) 4 bytes d) 2 bytes Answer: a Explanation: Boolean uses only 1 ...
View QuestionWhich of the following is not a fundamental type is not present in C but present in C++?
a) int b) float c) bool d) void Answer: c Explanation: Boolean type is ...
View QuestionWhich of the following approach is used by C++?
a) Top-down b) Bottom-up c) Left-right d) Right-left Answer: b Explanation: C++ is an object-oriented ...
View QuestionWhich of the following explains the overloading of functions?
a) Virtual polymorphism b) Transient polymorphism c) Ad-hoc polymorphism d) Pseudo polymorphism Answer: c Explanation: Ad-hoc polymorphism is a ...
View QuestionWhich concept means the addition of new components to a program as it runs?
a) Data hiding b) Dynamic binding c) Dynamic loading d) Dynamic typing Answer: c Explanation: Dynamic loading is the ...
View QuestionWhich of the following is an abstract data type?
a) int b) float c) class d) string Answer: c Explanation: Class is used as an abstract ...
View Question