Cpp Programming Quiz 41 – A reference is declared using the _____ symbol.
Question: A reference is declared using the _____ symbol. [A]. && [B]. &[C]. || [D]. ! Answer: Option B
Question: A reference is declared using the _____ symbol. [A]. && [B]. &[C]. || [D]. ! Answer: Option B
Question: Reference is like a _____. [A]. Pointer [B]. Structure[C]. Macro [D]. Enum Answer: Option A
Question: Which of the following concepts means wrapping up of data and functions together? [A]. bstraction [B]. Encapsulation[C]. Inheritance [D]. Polymorphism Answer: Option B
Question: Which of the following is an abstract data type? [A]. int [B]. double[C]. string [D]. Class Answer: Option D
Question: Which of the following is correct about class and structure? [A]. class can have member functions while structure cannot. [B]. class data members are public by default while that of structure are private.[C]. Pointer to structure or classes cannot…
Question: Which of the following statement is correct? [A]. Class is an instance of object. [B]. Object is an instance of a class. [C]. Class is an instance of data type. [D]. Object is an instance of data type. Answer:…
Question: Which of the following type of class allows only one object of it to be created? [A]. Virtual class [B]. Abstract class[C]. Singleton class [D]. Friend class Answer: Option C
Question: Which one of the following options is correct? [A]. Friend function can access public data members of the class. [B]. Friend function can access protected data members of the class.[C]. Friend function can access private data members of the…
Question: In which of the following a virtual call is resolved at the time of compilation? [A]. From inside the destructor. [B]. From inside the constructor.[C]. From inside the main(). [D]. Both A and B. Answer: Option D
Question: Which of the following is the correct way of declaring a function as constant? [A]. const int ShowData(void) { /* statements */ } [B]. int const ShowData(void) { /* statements */ }[C]. int ShowData(void) const { /* statements */ } [D]. Both…