UGC NET COMPUTER SCIENCE SOLVED PAPERS 2017-19 - UGC NET Computer Science 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
Cancel reply

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
Cancel reply

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
Cancel reply