# 3i Infotech Placement: Sample Questions 135 - 137 of 1245

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

## Question 135

## Question 136

### Describe in Detail

Essay▾Which bit wise operator is suitable for checking whether a particular bit is on or off?

### Explanation

- Operator is suitable for checking weather particular bit is on or off.
- For example,
- Suppose in byte has value 10101101.
- We check whether bit number 3 is ON (1) or OFF (0) .
- For checking bit number 3, the second operand for AND operation is binary 00001000, which is equal to 8 in decimal.
- Since the resulting value is 8, that is value of the second operand the bit was ON
- If the answer was 0, the bit number 3 in the resulting bit pattern would have evaluated 0 and complete bit pattern have 00000000.

## Question 137

### Write in Short

Short Answer▾A wizard named Nepo says “I am only three times my son՚s age. My father is 40 years more than twice my age. Together the three of us are a mere 1240 years old.” How old is Nepo?

### Explanation

Nepo said that he is three times my son՚s age.

Nepo՚s father is 40 years more than twice of Nepo՚s age.

let՚s say, Nepo՚s present age be n years, his son be s years old and his father be f years old.

So, from given information, and

We are given that sum of their ages is 1240 years.

We are asked to find the age of Nepo.

So,

So, Nepo՚s present age is 360 years.