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

Total Questions: 100

61. What is the effect of the following C code?

Correct Answer: D. It prints 1, 1, 1, 1, 1, and repeats forever

62. Consider the following declaration in C:

char a[];
char *p;
Which of the following statement is not a valid statement?

Correct Answer: C. a = p;

63. Consider the following C code:

{int a = 5, b = 9;
float r;
r = b/a:}
What is the value of r?

Correct Answer: B. 1.0

64. Function overloading is a concept in which:

Correct Answer: C. a function provides common interface to the user to carry out possibly different functions in each call.

65. Which of the following is true?

Correct Answer: C. A "static" member of a class can be initialized before an object of that class is created.

66. A superkey for an entity consits of:

Correct Answer: D. one or more attributes

67. Which of the following set of keywords constitutes a mapping in SQL?

Correct Answer: B. SELECT, FROM, WHERE

68. If a relation is in 2NF then:

Correct Answer: B. every non-prime attribute is fully functionally dependent on each relation key

69. Which of the following is true?

Correct Answer: B. A relation in BCNF is always in 3NF

70. Which of the following is true?

Consider the query: SELECT student_name FROM student_data WHERE rollno (SELECT rollno FROM student_marks WHERE SEMI_MARK = SEM2_MARK?;

Correct Answer: C. It gives the names of all the students whose marks in semester 1 and semester 2 are same.