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

Total Questions: 100

61. Consider the following program:

Correct Answer: B. x + x²/2! + x³/3! + x⁴/4! + ...

62. Consider the following two statements:

(a) A publicly derived class is a subtype of its base class.
(b) Inheritance provides for code reuse.
Which one of the following statements is correct?

Correct Answer: A. Both the statements (a) and (b) are correct.

63. 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:

Correct Answer: C. Select * from customers where city like '%GAR%';

64. Match the following database terms to their functions:

     List-I                              List-II
 (a) Normalization (i) Enforces match of primary key to foreign key
 (b) Data Dictionary (ii) Reduces data redundancy in a database
 (c) Referential Integrity (iii) Defines view(s) of the database for particular user(s)
 (d) External Schema (iv) Contains metadata describing dataase structure

Codes:

 (a) (b) (c) (d)
 A. (iv) (iii) (i)  (ii)
 B. (ii) (iv) (i) (iii)
 C. (ii) (iv) (iii) (i)
 D. (iv) (iii) (ii) (i)
Correct Answer: B.

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

Correct Answer: B. Both time and space complexities are better in non-recursive than in recursive program.

66. A three dimensional array in 'C' is declared as int A[x][y][z]. Here, the address of an item at the location A[p][q][r] can be computed as follows (where w is the word length of an integer):

Correct Answer: B. &A[0][0][0] + w(y*z*p + z*q + r)

67. In C++, which system - provided function is called when no handler is provided to deal with an exception?

Correct Answer: A. terminate ( )

68. Which of the following provides the best description of an entity type?

Correct Answer: D. A template for a group of things with the same set of characteristics that may exist in the real world

69. Data which improves the performance and accessibility of the database are called:

Correct Answer: A. Indexes

70. A relation R = {A, B, C, D, E, F, G} is given with following set of functional dependencies:

F = {AD → Е, BЕ → F, B → C, AF → G}
Which of the following is a candidate key?

Correct Answer: D. ABD