HCL Papers: Sample Questions 32 - 33 of 57

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

Question number: 32

» Aptitude

MCQ▾

Question

At a special sale, 5 tickets can be purchased for the price of 3 tickets. If 5 tickets are purchased at the sale, the amount saved will be what percent of the original price of the 5 tickets?

Choices

Choice (4) Response

a.

20 %

b.

33.3 %

c.

60 %

d.

40 %

Answer

d.

Explanation

  • Let the price of one ticket is Rs. x
  • So, price for 5 tickets will be Rs. 5x
  • In sale 5 tickets can be purchased for the price of 3 tickets, i. e. customer will pay only Rs. 3x to purchase 5 tickets.
  • So, customer is saving Rs. 2x if he purchases 5 tickets.
  • Taking ratio of saved amount with original price,

=

  • The amount saved will be 40 % of the original price of 5 tickets.

Question number: 33

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

Convert hexadecimal number 0xFEDB to the octal.

Explanation

The given number is 0xFEDB, a hexadecimal number.

First convert the given hex number into decimal number.

Now convert this decimal number into base 8 (octal) number.

Dividing 65243 by 8, quotient will be 8155 and remainder will be 3.

Dividing 8155 by 8, quotient will be 1019 and remainder will be 3.

Dividing 1019 by 8, quotient will be 127 and remainder will be 3.

Dividing 127 by 8, quotient will be 15 and remainder will be 7.

Dividing 15 by 8, quotient will be 1 and remainder will be 7.

Dividing 1 by 8, quotient will be 0 and remainder will be 1.

Now reversing the direction of remainder from bottom to up we can get the number in octal format.

Here, the octal form number of FEDB will be 177333.