HCL Placement: Sample Questions 22 - 23 of 57

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 22

Question MCQ▾

Which of the following about the following two declarations is true?

i) int ⚹ F ()

ii) int (⚹ F) ()

Choices

Choice (4)

a.

The first declaration is a function returning a pointer to an integer and the second is a pointer to function returning int

b.

i & ii are identical

c.

i & ii are different ways of declaring pointer to a function

d.

The first is a correct declaration and the second is wrong

Edit

Answer

a.

Explanation

In the first statement one function F is returning to a pointer which is returning an integer value. In the second statement, pointer F is returning to a function which is again returning to an integer value. Both declarations are different from each other, but both are correct.

Question 23

Question MCQ▾

Total population of a village is 64000. Out of this 65% is literate. 60% of the total population is male. Out of the total illiterate population, males and female are in the ratio 3: 4. What is the total number of illiterate males?

Choices

Choice (4)

a.

12800

b.

3200

c.

9600

d.

6400

Edit

Answer

c.

Explanation

  • Total population of a village is 64000. Out of this 65% are literate and rest 35% people are illiterate. 60% of 64000 people are male and rest 40% of 64000 are female. Ratio of male and female is .
  • 60% of 64000 are males.
  • So, number of males =

=

  • 35% of 64000 are illiterate.
  • So, number of illiterate people =

=

  • Ratio of males and females is .
  • So, illiterate males are, =

=