UGC NET COMPUTER SCIENCE SOLVED PAPERS 2014-16 - UGC NET Computer Science Paper 3 December 2015

56. In Unix, the command to enable execution permission for file “mylife” by all is ____________.

  • Option : D
  • Explanation :
    In Unix, the command to enable execution permission for file “mylife” by all are: Chmod + X myfile Chmod a + X myfile Chmod ugo + X myfile So, option (D) is correct.
Cancel reply
Cancel reply

57. What will be the output of the following Unix command ? $rm chap0[1 - 3]

  • Option : A
  • Explanation :
    $rm chap0\[1 - 3\] Square bracket surround a choice for single character and hyphen(-) will separate the range of single character. Above command will remove chap 01 or chap 02 or chap 03 file. So, option (A) is correct.
Cancel reply
Cancel reply

59. Consider the following database table:
Create table test(
one integer,
two integer,
primary key(one),
unique(two),
check(one≥1 and ≤10),
check(two≥1 and ≤5) );
How many data records/tuples atmost can this table containt?

  • Option : A
  • Explanation :
    check(one≥1 and ≤10),check(two≥1 and ≤5).
    Here second constraint will decide the no of tuples(record). Or we can say that the common condition will dominate.
    i.e. check(two ≥ 1 and ≤ 5) 5 tuples.
    So, option (A) is correct.
Cancel reply
Cancel reply