TCS Placement: Sample Questions 38 - 40 of 502
Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.
Question 38
Write in Short Short Answer▾
The word unimpressive was given. They asked us to do change 1st & 2nd , 3rd & 4th , so on. Then they asked what will be 10th letter from right?
EditExplanation
Given word is unimpressive.
u = 1 and n = 2, changing their position, n = 1 and u = 2
i = 3 and m = 4, changing their position, m = 3 and i = 4
p = 5 and r = 6, changing their position, r = 5 and p = 6
e = 7 and s = 8, changing their position, s = 7 and e = 8
s = 9 and i = 10, changing their position, i = 9 and s = 10
v = 11 and e = 12, changing their position, e = 11 and v = 12
So, word will be ‘numirpseisev’
Counting from right ‘m’ is at the 10th position.
Question 39
Write in Short Short Answer▾
If ₹ 782 be divided into three parts, proportional to , then the first part is ________
EditExplanation
- ₹ 782 has been divided into three parts.
- Ratio of these parts is , and .
- LCM of 2,3 and 4 is 12.
- Based on it ratio will be
- We are asked to find the first part, which will be
- So, first part will be 204.
Question 40
Explanation
- Reserved words are that are part of the standard C language library.
- Reserved words have special meaning and cannot be used for purposes other than what they are originally intended.
- Examples of reserved words are int, void, and return.