TCS Placement: Sample Questions 409 - 411 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 409

Write in Short Short Answer▾

Write the equivalent pointer expression for referring the same element a [i] [j] [k] [l] ?

Edit

Explanation

  1. a[i] == ⚹(a+i)
  2. a[i][j] == ⚹(⚹(a+i)+j)
  3. a[i][j][k] == ⚹(⚹(⚹(a+i)+j)+k)
  4. a[i][j][k][l] == ⚹(⚹(⚹(⚹(a+i)+j)+k)+l)

Question 410

Question MCQ▾

On a 26 question test, 5 points were deducted for each wrong answer and 8 points were added for right answers. If all the questions were answered how many were correct if the score was zero.

Choices

Choice (4)

a.

10

b.

11

c.

13

d.

12

Edit

Answer

a.

Explanation

  • In a 26 question test, 5 points were deducted for each wrong answer and 8 points were added for right answers.
  • All 26 questions are answered and resultant score is zero.
  • We are asked to find the number of right answered questions.
  • For option a) , 10 are correct, i.e..

16 are incorrect, i.e..

So,

  • For option b) , 11 are correct, i.e..

15 are incorrect, i.e..

So,

  • For option c) , 13 are correct, i.e..

13 are incorrect, i.e..

So,

  • For option d) , 12 are correct, i.e..

14 are incorrect, i.e..

So,

  • We can see among all options, for option a) only, resultant score is zero.

Question 411

Write in Short Short Answer▾

Complete the series: 3, 22, 7,45, 15, ? , 31

Edit

Explanation

  • Divide the given series into odd and even terms series.
  • Odd term series: 3, 7,15, 31, …
  • Even term series: 22,45, ? …
  • Looking at the analogy, we can conclude that next term is one more than twice of its previous term.
  • Like,

  • Following the same pattern,
  • So, missing term will be 91.