a) Both are available in C b) Pointer object initialization of a class with both new and malloc calls the ...
View QuestionWhich function is used to write a single character to console in C++?
a) printf(ch) b) write(ch) c) cout.put(ch) d) cout.putline(ch) Answer: c Explanation: C++ provides cout.put() function to write a single ...
View QuestionWhat does polymorphism in OOPs mean?
a) Concept of allowing overiding of functions b) Concept of hiding data c) Concept of wrapping things into a ...
View QuestionWhich function is used to read a single character from the console in C++?
a) cin.get(ch) b) read(ch) c) getline(ch) d) scanf(ch) Answer: a Explanation: C++ provides cin.get() function to read ...
View QuestionWhat does modularity mean?
a) Overriding parts of program b) Hiding part of program c) Wrapping things into single unit d) Subdividing program into ...
View QuestionWrapping data and its related functionality into a single entity is known as _____________
a) Polymorphism b) Encapsulation c) Abstraction d) Modularity Answer: b Explanation: In OOPs, the property of enclosing data and ...
View QuestionWhich of the following escape sequence represents tab?
a) \t\r b) \a c) \t d) \b Answer: c Explanation: \t is used to represent tab which means ...
View QuestionWhat are the escape sequences?
a) Set of characters that convey special meaning in a program b) Set of characters that whose use ...
View QuestionWhich of the following is the correct syntax of including a user defined header files in C++?
a) #include <userdefined> b) #include <userdefined.h> c) #include “userdefined” d) #include [userdefined] Answer: c Explanation: C++ uses double quotes ...
View QuestionC++ is ______________
a) functional programming language b) procedural programming language c) object oriented programming language d) both procedural and object oriented programming ...
View Question