Wednesday, 8 March 2017

UGC Net Computer Science December 13 Paper 3 Page 2 Solved

UGC Net Computer Science December 13 Paper 3 Page 2 Solved

UGC Net Computer Science December 13 Paper 3 Page 2 Solved

11. Match the following style rules for reusability :
              List – I                                                              List – II
a. Keep methods coherent                                       i. Write a method to get the last element of a list
b. Keep methods small                                            ii. Maintain parallel structure when possible
c. Keep methods consistent                                   iii. Breaking a method into smaller parts
d. Provide uniform coverage                                 iv. Performs a single function or a group
                                                                                     of closely related  functions.

Codes :
       a b c d
(A) iv iii ii i
(B) ii i iv iii
(C) iii iv ii i
(D) ii iii iv i
Answer A
Explanation :-
12. Which is the protocol for performing RPCs between applications in a language and system independent way ?
(A) Hyper Text Transmission Protocol (HTTP)
(B) Simple Network Management Protocol (SNMP)
(C) Simple Object Access Protocol (SOAP)
(D) Simple Mail Transfer Protocol (SMTP)
Answer C
Explanation :-
SOAP is an acronym for Simple Object Access Protocol. It is an XML-based messaging protocol for exchanging information among computers. SOAP is an application of the XML specification.

SOAP allows processes running on disparate operating systems (such as Windows and Linux) to communicate using Extensible Markup Language (XML). Since Web protocols like HTTP are installed and running on all operating systems, SOAP allows clients to invoke web services and receive responses independent of language and platforms.

SOAP evolved as a successor of XML-RPC, though it borrows its transport and interaction neutrality from Web Service Addressing [2] and the envelope/header/body from elsewhere (probably from WDDX).

13. The document that is used by XSLT to indicate, how to transform the elements of the XML document to another format is
(A) HTML page
(B) DOC type procedure
(C) Style sheet
(D) Stored procedure
Answer C
Explanation :-
XSL (EXtensible Stylesheet Language) is a styling language for XML.or other formats such as HTML for web pages, plain text or XSL Formatting Objects, which may subsequently be converted to other formats, such as PDF, PostScript and PNG.
XSLT

14. Which of the following concepts means adding new concepts to a program as it runs ?
(A) Data hiding
(B) Dynamic loading
(C) Dynamic typing
(D) Dynamic binding
Answer B
Explanation :-
Dynamic loading is a mechanism by which a computer program can, at run time, load a library (or other binary) into memory, retrieve the addresses of functions and variables contained in the library, execute those functions or access those variables, and unload the library from memory. It is one of the 3 mechanisms by which a computer program can use some other software; the other two are static linking and dynamic linking. Unlike static linking and dynamic linking, dynamic loading allows a computer program to start up in the absence of these libraries, to discover available libraries, and to potentially gain additional functionality.

15. Which of the following correctly describes overloading of functions ?
(A) Virtual polymorphism
(B) Transient polymorphism
(C) Ad-hoc polymorphism
(D) Pseudo polymorphism
16. Match the following with respect to programming languages :
List – I
List – II
a. Structured
Language
i. JAVA
b. Non-structured
Language
ii. BASIC
c. Object Oriented
Programming
Language
iii. PASCAL
d. Interpreted
Programming
Language
iv. FORTRAN

Codes :
       a b c d
(A) iii iv i ii
(B) iv iii ii i
(C) ii iv i iii
(D) ii iii iv i
Answer A
Explanation :-

17. The compiler converts all operands upto the type of the largest operand is called
(A) Type Promotion
(B) Type Evaluation
(C) Type Conversion
(D) Type Declaration
Answer A
Explanation :-

One special case of implicit type conversation is type promotion, where the compiler automatically expands the binary representation of objects of integer or floating –point types. Promotion is commonly used with platform’s ALU prior to arithmetic and logical operation in order to make such operation possible. Through promotion in conversation float promote to double in C++.  

18. C++ actually supports the following two complete dynamic systems :
(A) One defined by C++ and the other not defined by C.
(B) One defined by C and one specific to C++
(C) Both are specific to C++
(D) Both of them are improvements of C
Answer B
Explanation :-

19. Important advantage of using new and delete operators in C++ is
(A) Allocation of memory 
(B) Frees the memory previously allocated
(C) Initialization of memory easily
(D) Allocation of memory and frees the memory previously allocated.
Answer D
Explanation :-
20. Match the following control strategies of prolog :

List – I
List – II
a. Forward movement
i. Variable can be done with a
constant, another variable or a
Function.
b. Unification
ii. The entire conjunctive goal is
Executed.
c. Deep backtracking
iii. Previous sub goal to find alternative solutions.
d. Shallow backtracking
iv. Chooses sub goal with possible
Unifier.

 Codes :
       a b c d
(A) iv i ii iii
(B) ii iv i iii
(C) iii i iv ii
(D) ii iii iv i
Answer A
Explanation :-