Computer Science Study Materials for Competitive Exams

Sample Questions, Previous Year Solved Papers, Study Materials For Competitive Examinations Like UGC NET, SET And GATE Computer Science.

Thursday, 6 November 2014

UGC NET Solved Computer Science Paper III June 2014 - Part 2

11.       Match the following with respect to the jump statements :
List – I
a. return
b. goto
c. break
d. continue
List – II
i. The conditional test and increment portions
ii. A value associated with it
iii. Requires a label for operation
iv. An exit from only the innermost loop
Codes :
      a   b    c   d
(A) ii    iii   iv   i
(B) iii   iv   i    ii
(C) iv   iii   ii   i
(D) iv   iii   i    ii
Answer: A
12.       The control string in C++ consists of three important classifications of characters
(A) Escape sequence characters, Format specifiers and Whitespace characters
(B) Special characters, White-space characters and Non-white space characters
(C) Format specifiers, White-space characters and Non-white space characters
(D) Special characters, White-space characters and Format specifiers
Answer: C
13.       Match the following with respect to I/O classes in object oriented programming :
List – I          List – II
a. fopen()      i. returns end of file
b. fclose()     ii. return for any problem report
c. ferror()      iii. returns 0
d. feof()       iv. returns a file pointer
Codes :
      a    b    c    d
(A) iv    i     ii    iii
(B) iii    i    iv   ii
(C) ii    iii   iv    i
(D) iv   iii   i     ii
Answer: A
14.       Which one of the following describes the syntax of prolog program?
I. Rules and facts are terminated by full stop (.)
II. Rules and facts are terminated by semicolon (;)
III. Variables names must start with upper case alphabets.
IV. Variables names must start with lower case alphabets.
Codes :
(A) I, II   
(B) III, IV
(C) I, III
(D) II, IV
Answer: C
15.       Let L be any language. Define even (W) as the strings obtained by extracting from W the letters in the even-numbered positions and even(L) = {even (W) | W Î L}. We define another language Chop (L) by removing the two leftmost symbols of every string in L given by Chop(L) = {W | n W Î L, with | n | = 2}. If L is regular language then
(A) even(L) is regular and Chop(L) is not regular.
(B) Both even(L) and Chop(L) are regular.
(C) even(L) is not regular and Chop(L) is regular.
(D) Both even(L) and Chop(L) are not regular.
Answer: B

16.       Software testing is
(A) the process of establishing that errors are not present.
(B) the process of establishing confidence that a program does what it is supposed to do.
(C) the process of executing a program to show that it is working as per specifications.
(D) the process of executing a program with the intent of finding errors.
Answer: D
17.       Assume that a program will experience 200 failures in infinite time. It has now experienced 100 failures. The initial failure intensity was 20 failures/CPU hr. Then the current failure intensity will be
(A) 5 failures/CPU hr
(B) 10 failures/CPU hr.
(C) 20 failures/CPU hr.
(D) 40 failures/CPU hr.
Answer: B
18.       Consider a project with the following functional units :
Number of user inputs = 50
Number of user outputs = 40
Number of user enquiries = 35
Number of user files = 06
Number of external interfaces = 04
Assuming all complexity adjustment factors and weighing factors as average, the function points for the project will be
(A) 135
(B) 722
(C) 675
(D) 672
Answer: D
19.       Match the following :
List – I
a. Correctness
b. Accuracy
c. Robustness
d. Completeness
List – II
i. The extent to which a software tolerates the unexpected problems
ii. The extent to which a software meets its specifications
iii. The extent to which a software has specified functions
iv. Meeting specifications with precision
Codes :
      a    b   c    d
(A) ii    iv    i    iii
(B) i     ii    iii   iv
(C) ii    i     iv   iii
(D) iv  ii     i     iii
Answer: A
20.    Which one of the following is not a definition of error?
(A) It refers to the discrepancy between a computed, observed or measured value and the true, specified or theoretically correct value.
(B) It refers to the actual output of a software and the correct output.
(C) It refers to a condition that causes a system to fail.
(D) It refers to human action that results in software containing a defect or fault.
Answer: C


No comments:

Post a Comment