PGT Computer Science (Level-3), (HTET Practice MCQs)

Total Questions: 100

61. 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)
Correct Answer: A.

62. Which is the protocol for performing RPCs between applications in a language and system independent way?

Correct Answer: C. Simple Object Access Protocol (SOAP)

63. The document that is used by XSLT to indicate, how to transform the elements of the XML document to another format is

Correct Answer: C. Style sheet

64. Which of the following concepts means adding new concepts to a program as it runs?

Correct Answer: B. Dynamic loading

65. Which of the following correctly describes overloading of functions?

Correct Answer: C. Ad-hoc polymorphism

66. 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)
Correct Answer: A.

67. The compiler converts all operands upto the type of the largest operand is called

Correct Answer: A. Type Promotion

68. C++ actually supports the following two complete dynamic systems:

Correct Answer: B. One defined by C and one specific to C++

69. Important advantage of using new and delete operators in C++ is

Correct Answer: D. Allocation of memory and frees the memory previously allocated.

70. 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)
Correct Answer: A.