TCS Papers: Sample Questions 136 - 138 of 502

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

Question number: 136

» Aptitude

Short Answer Question▾

Write in Short

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

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.

Question number: 137

» Aptitude

Short Answer Question▾

Write in Short

What number should be subtracted from each term of the ratio 17: 24 so that it becomes equal to 1: 2?

Explanation

  • The given ration is 17: 24 and we require it to be 1: 2
  • Our task is to find the number which needs to be subtracted from numerator and denominator both such that it becomes 1: 2.
  • Let the required number be x. Then,

  • So, required number is 10.

Question number: 138

» Aptitude

Short Answer Question▾

Write in Short

What is a class in C++?

Explanation

Class is a user defined data type, which holds its own data members and member functions, which can be accessed and used by creating instance of that class. The variables inside class definition are called as data members and the functions are called member functions. Its access is governed by the three access specifiers private, protected or public (by default access to members of a class is private). A class (declared with keyword class) in C++ differs from a structure (declared with keyword struct) as by default, members are private in a class while they are public in a structure. Instances of these data types are known as objects and can contain member variables, constants, member functions, and overloaded operators defined by the programmer.