Tcs nqt previ
- User
Tcs nqt previ
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Tcs nqt previ
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
You're referring to the TCS NQT (National Qualifier Test) previous year questions!
The Tata Consultancy Services (TCS) National Qualifier Test (NQT) is a mandatory entrance exam for freshers who want to join TCS as IT professionals. The test is designed to assess a candidate's aptitude, programming skills, and English proficiency.
Here are some previous year questions, patterns, and tips to help you prepare for the TCS NQT:
TCS NQT Exam Pattern:
The TCS NQT exam consists of 4 sections:
Previous Year Questions (PYQs):
I'll share some sample questions from each section. Keep in mind that these are just examples, and actual questions may vary.
English Ability (EA)
Answer: a) implemented 2. Read the passage and answer: "The author believes that..." Passage: "The rise of the gig economy has led to an increase in freelance work..." a) Freelance work is the future of employment. b) Companies prefer hiring full-time employees. c) Gig economy will decline soon. d) None of the above
Answer: a) Freelance work is the future of employment.
Quantitative Ability (QA)
Answer: c) 7 2. A sum of money amounts to Rs. 900 in 3 years and Rs. 1000 in 5 years. Find the rate of interest. a) 5% b) 6% c) 7% d) 8%
Answer: b) 6%
Programming Logic (PL)
#include <stdio.h>
int main() {
int x = 5;
if (x > 5)
printf("Greater");
else
printf("Lesser");
return 0;
}
a) Greater b) Lesser c) Error d) None
Answer: b) Lesser 2. Identify the logic error in the given Java code:
public class Test {
public static void main(String[] args) {
int sum = 0;
for (int i = 1; i <= 10; i++)
sum = i;
System.out.println(sum);
}
}
a) Loop should start from 0.
b) sum should be initialized to 1.
c) sum should be sum + i instead of sum = i.
d) No error.
Answer: c) sum should be sum + i instead of sum = i.
Coding (2 questions)
a = 10, b = 20, c = 30
Output: 30"madam"
Output: TrueSample Coding Solutions:
Problem 1 (C):
#include <stdio.h>
int max(int a, int b, int c) {
if (a >= b && a >= c) return a;
else if (b >= a && b >= c) return b;
else return c;
}
int main() {
int a = 10, b = 20, c = 30;
printf("%d", max(a, b, c));
return 0;
}
Problem 2 (Python):
def is_palindrome(s):
return s == s[::-1]
print(is_palindrome("madam")) # True
Tips for TCS NQT Preparation:
Best of luck for your TCS NQT exam! Stay calm, focused, and confident. You've got this!
Feel free to ask me if you have any specific questions or need help with any particular topic!