• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

UGC NET CS 2015 Dec - II

Question 11

Consider the following program :
#include <stdio.h>
main( )
{
    int i, inp;
    float x, term=1, sum=0; 
    scanf(“%d %f ”, & inp, &x);
    for(i=1; i<=inp; i++)
    {
      term = term * x/i; 
      sum = sum + term ;
    }
   printf(“Result = %f\\n”, sum);
}
The program computes the sum of which of the following series?
  • x + x2/2 + x3/3 + x4/4 +...
  • x + x2/2! + x3/3! + x4/4! +...
  • 1 + x2/2 + x3/3 + x4/4 +...
  • 1 + x2/2! + x3/3! + x4/4! +...

Question 12

Consider the following two statements: (a)A publicly derived class is a subtype of its base class. (b)Inheritance provides for code reuse.
  • Both the statements (a) and (b) are correct.
  • Neither of the statements (a) and (b) are correct
  • Statement (a) is correct and (b) is incorrect
  • Statement (a) is incorrect and (b) is correct.

Question 13

Consider a “CUSTOMERS” database table having a column “CITY” filled with all the names of Indian cities (in capital letters). The SQL statement that finds all cities that have “GAR” somewhere in its name, is:
  • Select * from customers where city = ‘%GAR%’;
  • Select * from customers where city = ‘$GAR$’;
  • Select * from customers where city like ‘%GAR%’;
  • Select * from customers where city as ‘%GAR’;

Question 14

match the following datbase terms to their function:

 \"14\"

  • (1)

  • (2)

  • (3)

  • (4)

Question 15

In general, in a recursive and non-recursive implementation of a problem (program) :

  • Both time and space complexities are better in recursive than in non-recursive program.

  • Both time and space complexities are better in non-recursive than in recursive program

  • Time complexity is better in recursive version but space complexity is better in non-recursive version of the program.

  • Space complexity is better in recursive version but time complexity is better in non-recursive version of the program.

Question 16

In C++, which system - provided function is called when no handler is provided to deal with an exception?
  • terminate ( )
  • unexpected ( )
  • abort ( )
  • kill ( )

Question 17

Which of the following provides the best description of an entity type?
  • A specific concrete object with a defined set of processes (e.g. Jatin with diabetes)
  • A value given to a particular attribute (e.g. height - 230 cm)
  • A thing that we wish to collect data about zero or more, possibly real world examples of it may exist
  • A template for a group of things with the same set of characteristics that may exist in the real world

Question 18

Data which improves the performance and accessibility of the database are called:
  • Indexes
  • User Data
  • Application Metadata
  • Data Dictionary

Question 19

A relation R = {A, B, C, D, E, F,G} is given with following set of functional dependencies: F = {AD → E, BE → F, B → C, AF → G} Which of the following is a candidate key ?
  • A
  • AB
  • ABC
  • ABD

Question 20

Which of the following services is not provided by wireless access point in 802.11 WLAN ?
  • Association
  • Disassociation
  • Error correction
  • Integration

There are 50 questions to complete.

Last Updated :
Take a part in the ongoing discussion