Page 1 of 15
1 2 3 15

Coding 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 3 | Slot 1 (II) | Codewindow.in

Verbal Ability Question 1 Answer Question 1 Read the following passage and fill in the blanks by selecting the most appropriate option. The word “SARI” means “strip of cloth” in Sanskrit. But for the Indian women – and a few men – who have been _____(1)_______ themselves in silk, cotton or linen for millenia, these …

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

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

 Numerical Ability Question 1 Answer Explanation Question 1 For a grouped frequency distribution having eight classes, the upper class boundaries of the lowest and the highest classes are 10 and 66 respectively. What is the lower class boundary of the highest class?A. 57B. 60C. 58D. 59 Answer C. 58 Explanation upper class boundary of lowest …

TCS NQT Previous Year Solve | Day 3 | Slot 1 (I) | 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 »