HCL Papers: Sample Questions 12 - 14 of 57

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 12

» Aptitude

Short Answer Question▾

Write in Short

Find the number which when multiplied with one less than it results into a number that is 4 lesser than its square.

Explanation

  • Let the required number be x.
  • When x is multiplied with one less than it, results into a number that is 4 lesser than its square.
  • Converting this statement into equation form,

  • The required number is 4.

Question number: 13

» Aptitude

Short Answer Question▾

Write in Short

Average age of A and B is 18, while average age of A, B and C is 22. What is the present age of C?

Explanation

  • Average age of A and B is 18.

  • Total age of A and B is 36 years.
  • Average age of A, B and C is 22.

  • Substituting the value of A + B in A + B + C,

  • Present age of C is 30 years.

Question number: 14

» Database » Oracle

MCQ▾

Question

The type of the controlling expression of a switch statement cannot be of the type

Choices

Choice (4) Response

a.

float

b.

int

c.

char

d.

short

Answer

a.

Explanation

The expression used in switch statement must have an integral data type or enumerated data type. It can be arithmetic expression also, where addition or subtraction should result into a constant expression. It can be even a character or a string. But we cannot pass any float, Boolean or double values as expression in switch statement, because performing exact equality matches on float/double is very complex in nature.