PREVIOUS YEAR SOLVED PAPERS - November 2017 Paper 2

Avatto > > UGC NET COMPUTER SCIENCE > > PREVIOUS YEAR SOLVED PAPERS > > November 2017 Paper 2

11. A member function can always access the data in __________ , (in C++).

  • Option : A
  • Explanation :
    A member function can access it's class member variables, irrespective of the access specifier in which the member variable is declared.So, a member function can always access the data in the class of which it is a member.
    So, option (A) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


12. Which of the following is not correct for virtual function in C++ ?

  • Option : B
  • Explanation :
    Virtual function is can't be static in C++. So, option (B) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


13. Which of the following is not correct (in C++)?
1. Class templates and function templates are instantiated in the same way
2. Class templates differ from function templates in the way they are initiated
3. Class template is initiated by defining an object using the template argument
4. Class templates are generally used for storage classes

  • Option : C
  • Explanation :
    In C++ class template and function template are similar in the way the are initiated. Class template are not used for storage class. Class templates and function templates are instantiated in the same way and Class template is not initiated by defining an object using the template.
    So (2), (3), (4) are not correct in C++. So, option (C) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


14. Which of the following is/are true with reference to ‘view’ in DBMS?
(a) A ‘view’ is a special stored procedure executed when certain event occurs.
(b) A ‘view’ is a virtual table, which occurs after executing a pre-compiled query. code:

  • Option : B
  • Explanation :
    A 'view' is virtual table and it is not a special stored. View only occurs after executing a pre-complied query.
    So, option (B) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


15. In SQL, __________ is an Aggregate function.

  • Option : C
  • Explanation :
    An aggregate function allows you to perform a calculation on a set of values to return a single scalar value. AVG, COUNT, MIN, MAX, SUM are aggregate functions. In SQL SELECT is used to choose a column from a database table. CREATE is used to create a DB table. AVG is a aggregate function. MODIFY is used to modify DB table content. So,option (C) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


Related Quiz.
November 2017 Paper 2