tcs sample questions

TCS NQT Previous Year Solve | Day 3 | Slot 1 (V) | Codewindow.in

Coding Question 1: FULLY AUTOMATIC VENDING MACHINE dispenses your cuppa on just the press of button. A vending machine can serve range of products as follows: Coffee1. Espresso Coffee2. Cappuccino Coffee3. Latte Coffee Tea1. Plain Tea2. Assam Tea3. Ginger Tea4. Cardamom Tea5. Masala Tea6. Lemon Tea7. Green Tea8. Organic Darjeeling Tea Soups1. Hot and Sour

TCS NQT Previous Year Solve | Day 3 | Slot 1 (V) | Codewindow.in Read More »

TCS NQT Previous Year Solve | Day 3 | Slot 1 (IV) | Codewindow.in

Programming Logic import java.util.*; public class Main { public static void main(String[] args) { ArrayListTempArrayList = new ArrayList(); TempArrayList.add(30); TempArrayList.add(20); TempArrayList.add(10); TempArrayList.add(40); TempArrayList.add(50); Collections.sort(TempArrayList, Collections.reverseOrder()); Collections.sort(TempArrayList, Collections.reverseOrder()); System.out.println(TempArrayList); } } Question 1 Answer Explanation Question 1 What will be the output of the above program? Answer [50, 40, 30, 20, 10] Explanation Collections.sort(TempArrayList, Collections.reverseOrder()) sorts

TCS NQT Previous Year Solve | Day 3 | Slot 1 (IV) | Codewindow.in Read More »

TCS NQT Previous Year Solve | Day 2 | Slot 1 (V) | Codewindow.in

Coding Question 1: We want to estimate the cost of painting a property. Interior wall painting cost is Rs.18 per square feet and exterior wall painting cost is Rs.12 per square feet. Take input as1. Number of Interior walls2. Number of Exterior walls3. Surface Area of each interior wall in units of square feet4. Surface

TCS NQT Previous Year Solve | Day 2 | Slot 1 (V) | Codewindow.in Read More »

TCS NQT Previous Year Solve | Day 2 | Slot 1 (III) | Codewindow.in

Reasoning Ability Question 1 Answer Explanation Question 1 Consider the Venn diagram given below. The number in the Venn diagram indicates the number of persons/ people watching the TV programmes. The diagram is drawn after surveying 150 persons in a population of 12,000. How many persons/ people can be expected to watch at least two

TCS NQT Previous Year Solve | Day 2 | Slot 1 (III) | Codewindow.in Read More »

TCS NQT Previous Year Solve | Day 2 | Slot 2 (V) | Codewindow.in

Coding Question 1 Question 1 Q1. WASHING MACHINE A Washing Machine works on the principle of a Fuzzy system, the weight of clothes put inside it for wash is uncertain. But based on weight measured by sensors, it decides time and water levels which can be changed by menus given on the machine control area.

TCS NQT Previous Year Solve | Day 2 | Slot 2 (V) | Codewindow.in Read More »