Cs304 FinalTerm Most Important Repeated Mcqs Online Quiz Cs304 FinalTerm Most Important Repeated Mcqs Online Quiz. Cs304 quiz helps us to increase our knowledge 1 / 19 Template functions use __ than ordinary functions Greater Memory Lesser Memory Equal Memory None of the given options 2 / 19 Which of the following is/are advantage[s] of generic programming? Reusability Writability Maintainability All of given 3 / 19 A class template may inherit from another class template True False 4 / 19 A copy constructor is invoked when a function do not returns by value an argument is passed by value a function returns by reference an argument is passed by reference 5 / 19 A child class can call constructor of the parent call through Its constructor initialization list Its constructor body Both from its constructor initialization list or body Cannot call the constructor of its parent class 6 / 19 Static casting is C++ way of calling base class function from derived class C way of calling base class function from derived class Both of these None of these 7 / 19 Target class of a function call is determined at run time. Instance Virtual Operator None of the given 8 / 19 We can have type of member functions in a class. Public Private Protected All of these options 9 / 19 Public inheritance represents; “IS A “relationship “Has A” relationship “IS Special kind of” relationship None of these option 10 / 19 Which of the following is Not casting operator in c++ standard? Static-cast Var-cast Dynamic-cast Reinterpret-cast 11 / 19 A class hierarchy Shows the same relationships as a organization chart Describe “has a “relationship. Describe “is a kind of” relationship. Shows the same relationships as a family tree. 12 / 19 In public inheritance the public members of base class become in derived class Private Protected Public None of the given 13 / 19 In c++ dynamic binding and polymorphism will be achieved when the member function willbe Private Public Virtual Inline 14 / 19 Target class of a function call is determined t run time. Instance Virtual Operator None of the given 15 / 19 Which of the following is not type of inheritance in c++? Public Protected Restricted Private 16 / 19 Compiler can automatically generates the following constructor/s for a class, Default constructor Copy constructor Both of these None of these 17 / 19 Then int member i of base class is accessible in class, derived 1 only derived 2 only both derived 1 derived 2 none of the given options 18 / 19 The default inheritance mode is, Public inheritance Protected inheritance Private inheritance None of the given 19 / 19 Function func1of class1 is _ in class2. Public Protected Private None of the given Your score isThe average score is 47% 0% Restart quiz