If you're preparing for the TCS Ninja NQT placement exam, there are several best practices and tips to keep in mind. The TCS Ninja exam is a national-level exam conducted by TCS to hire freshers across India for the TCS Ninja profile. To crack the exam, it is essential to understand the exam pattern, syllabus, and prepare with practice questions.
TCS National Qualifier Test (TCS NQT) is an Ability Test that assesses a candidate's competencies and skills. Each candidate who completes the TCS National Qualifier Test (TCS NQT) gets an NQT Score. The NQT (Cognitive Skills) Score is applicable for all industries and job roles. The TCS National Qualifier Test (TCS NQT) is planned to be conducted every quarter. Candidates can take the tests again to improve their previous scores, if desired. There are four Variants - NQT (Cognitive Skills), Attitudinal Alignment NQT (Psychometric Test), Industry NQT and Subject NQT.
To prepare for the TCS Ninja NQT exam, it is recommended to practice aptitude and coding questions, familiarize yourself with the TCS ion platform, and develop a TCS Ninja NQT strategy. It is also important to stay updated with industry trends and the latest technologies used in the TCS Ninja profile.
Candidates can purchase NQT Variant(s) and appear for it in the upcoming tests to improve their NQT score. The TCS Ninja profile is an excellent opportunity for freshers as it offers a competitive salary package and the chance to kickstart a successful career in the technology industry.
Additionally, it is essential to be aware of the TCS Ninja NQT registration process and have all the necessary documents ready. There is no negative marking in the exam, but it is vital to avoid any form of cheating, as it can result in disqualification.
Please note that the benefits may vary based on the location, role, and other factors.
Numerical Ability Topics
Reasoning Ability Topics
Verbal Ability Topics
Programmic Logic Topics
The TCS Ninja NQT selection process is a multi-stage competition that aims to identify and recognize the top-performing coders. The competition is designed to test contestants' coding abilities, logical thinking, and problem-solving skills. Based on their performance in the initial round, a select group of contestants will be chosen to proceed to the next stage.
This stage typically involves an online test that further evaluates contestants' coding skills and knowledge of programming languages. After successfully completing the online test, selected contestants will move on to the interview round.
The interview process includes three rounds, each focusing on different aspects of the candidate:
If a candidate successfully clears all three rounds, they will receive an offer letter via email from TCS. It's worth noting that the selection process may vary depending on the role and location, and the company reserves the right to add or remove stages as per the requirement.
#Question 1
Write a program to find the median of two sorted arrays.
#Answer:
```sh
def findMedianSortedArrays(nums1, nums2):
m, n = len(nums1), len(nums2)
if m > n:
nums1, nums2, m, n = nums2, nums1, n, m
i_min, i_max, half_len = 0, m, (m + n + 1) // 2
while i_min <= i_max:
i = (i_min + i_max) // 2
j = half_len - i
if i < m and nums2[j-1] > nums1[i]:
i_min = i + 1
elif i > 0 and nums1[i-1] > nums2[j]:
i_max = i - 1
else:
if i == 0: max_of_left = nums2[j-1]
elif j == 0: max_of_left = nums1[i-1]
else: max_of_left = max(nums1[i-1], nums2[j-1])
if (m + n) % 2 == 1:
return max_of_left
if i == m: min_of_right = nums2[j]
elif j == n: min_of_right = nums1[i]
else: min_of_right = min(nums1[i], nums2[j])
return (max_of_left + min_of_right) / 2
print(findMedianSortedArrays([1, 2, 3], [4, 5, 6])) #3.5
```
#Popular Question 1
Given a maximum of four digit to the base 17(10 -> A, 11 -> B, 12 -> C, 16 -> G) as input, output its decimal value.
#Question 2
Write a program to find the number of occurrences of a given element in a list.
#Answer:
```sh
def count_occurrences(lst, x):
return lst.count(x)
print(count_occurrences([1, 2, 2, 3, 4, 2, 5], 2)) #3
```
#Popular Question
One programming language has the following keywords that cannot be used as identifiers:
break, case, continue, default, defer, else, for, func, goto, if, map, range, return, struct, type, var
Write a program to find if the given word is a keyword or not
#Input:
```sh
defer
```
Output:
```sh
defer is a keyword
```
#Question 3
Write a program to find the intersection of two lists.
#Answer:
```sh
def intersection(lst1, lst2):
return list(set(lst1) & set(lst2))
print(intersection([1, 2, 3, 4], [3, 4, 5, 6])) #[3, 4]
```
#Popular Question
Given a pair of positive integers m and n (m < n; 0 < m < 999; 1 < n < = 999), write a program to smartly affix zeroes, while printing the numbers from m to n.
#Example
#Input
```sh
5 10
```
#Expected output
```sh
05 06 07 08 09 10
```
#Question 4
Write a program to find the union of two lists.
#Answer:
```sh
def union(lst1, lst2):
return list(set(lst1) | set(lst2))
print(union([1, 2
```
#Question 5
Write a program to check if a given string is a palindrome or not.
#Answer:
```sh
def is_palindrome(s):
return s == s[::-1]
print(is_palindrome("madam")) #True
```
#Question 1
Write a program to find the median of two sorted arrays.
#Answer:
```sh
def findMedianSortedArrays(nums1, nums2):
m, n = len(nums1), len(nums2)
if m > n:
nums1, nums2, m, n = nums2, nums1, n, m
i_min, i_max, half_len = 0, m, (m + n + 1) // 2
while i_min <= i_max:
i = (i_min + i_max) // 2
j = half_len - i
if i < m and nums2[j-1] > nums1[i]:
i_min = i + 1
elif i > 0 and nums1[i-1] > nums2[j]:
i_max = i - 1
else:
if i == 0: max_of_left = nums2[j-1]
elif j == 0: max_of_left = nums1[i-1]
else: max_of_left = max(nums1[i-1], nums2[j-1])
if (m + n) % 2 == 1:
return max_of_left
if i == m: min_of_right = nums2[j]
elif j == n: min_of_right = nums1[i]
else: min_of_right = min(nums1[i], nums2[j])
return (max_of_left + min_of_right) / 2
print(findMedianSortedArrays([1, 2, 3], [4, 5, 6])) #3.5
```
#Popular Question 1
Given a maximum of four digit to the base 17(10 -> A, 11 -> B, 12 -> C, 16 -> G) as input, output its decimal value.
#Question 2
Write a program to find the number of occurrences of a given element in a list.
#Answer:
```sh
def count_occurrences(lst, x):
return lst.count(x)
print(count_occurrences([1, 2, 2, 3, 4, 2, 5], 2)) #3
```
#Popular Question
One programming language has the following keywords that cannot be used as identifiers:
break, case, continue, default, defer, else, for, func, goto, if, map, range, return, struct, type, var
Write a program to find if the given word is a keyword or not
#Input:
```sh
defer
```
Output:
```sh
defer is a keyword
```
#Question 3
Write a program to find the intersection of two lists.
#Answer:
```sh
def intersection(lst1, lst2):
return list(set(lst1) & set(lst2))
print(intersection([1, 2, 3, 4], [3, 4, 5, 6])) #[3, 4]
```
#Popular Question
Given a pair of positive integers m and n (m < n; 0 < m < 999; 1 < n < = 999), write a program to smartly affix zeroes, while printing the numbers from m to n.
#Example
#Input
```sh
5 10
```
#Expected output
```sh
05 06 07 08 09 10
```
#Question 4
Write a program to find the union of two lists.
#Answer:
```sh
def union(lst1, lst2):
return list(set(lst1) | set(lst2))
print(union([1, 2
```
#Question 5
Write a program to check if a given string is a palindrome or not.
#Answer:
```sh
def is_palindrome(s):
return s == s[::-1]
print(is_palindrome("madam")) #True
```
Being a mechanical student and getting into an IT company is very tough. One of the main reason I could able to crack TCS CodeVita is because of Edyst.
Aneeq sir, your doubt clearing sessions, daily assignments & incredible mentors support really brushed up my skills.
“My software journey started because of Edyst. Edyst preparation and referrals helped me get my first internship and job. Thank you Edyst!”
Daily coding challenge and the doubt session helped me in staying consistent. Also, the leadership board kept me motivated. Edyst gave me the best guiding materials for all the cohorts I joined. I like everything done by Edyst for my success.
I really like the Company specific practice questions they turn out to be super helpfulduring my interview, I didn't face any difficulty, the variety and range of practice questions (especially on arrays) got me my dream job. Also, the online live session were very interactive and helped me in revision and solving doubts. Thank you Edyst.
I practice a lot at Edyst platform and what I learnt is how to code, self-learning and more & more about the practical knowledge which gradually increased my confidence level. Edyst was great platform which changed my career.
I feel the best thing about edyst is its company-specific guidance and the huge problem sets covering up almost all the concepts from beginner to advanced concepts, it helped me a lot for my placement preparation
#Question 1
Write a program to find the median of two sorted arrays.
#Answer:
```sh
def findMedianSortedArrays(nums1, nums2):
m, n = len(nums1), len(nums2)
if m > n:
nums1, nums2, m, n = nums2, nums1, n, m
i_min, i_max, half_len = 0, m, (m + n + 1) // 2
while i_min <= i_max:
i = (i_min + i_max) // 2
j = half_len - i
if i < m and nums2[j-1] > nums1[i]:
i_min = i + 1
elif i > 0 and nums1[i-1] > nums2[j]:
i_max = i - 1
else:
if i == 0: max_of_left = nums2[j-1]
elif j == 0: max_of_left = nums1[i-1]
else: max_of_left = max(nums1[i-1], nums2[j-1])
if (m + n) % 2 == 1:
return max_of_left
if i == m: min_of_right = nums2[j]
elif j == n: min_of_right = nums1[i]
else: min_of_right = min(nums1[i], nums2[j])
return (max_of_left + min_of_right) / 2
print(findMedianSortedArrays([1, 2, 3], [4, 5, 6])) #3.5
```
#Popular Question 1
Given a maximum of four digit to the base 17(10 -> A, 11 -> B, 12 -> C, 16 -> G) as input, output its decimal value.
#Question 2
Write a program to find the number of occurrences of a given element in a list.
#Answer:
```sh
def count_occurrences(lst, x):
return lst.count(x)
print(count_occurrences([1, 2, 2, 3, 4, 2, 5], 2)) #3
```
#Popular Question
One programming language has the following keywords that cannot be used as identifiers:
break, case, continue, default, defer, else, for, func, goto, if, map, range, return, struct, type, var
Write a program to find if the given word is a keyword or not
#Input:
```sh
defer
```
Output:
```sh
defer is a keyword
```
#Question 3
Write a program to find the intersection of two lists.
#Answer:
```sh
def intersection(lst1, lst2):
return list(set(lst1) & set(lst2))
print(intersection([1, 2, 3, 4], [3, 4, 5, 6])) #[3, 4]
```
#Popular Question
Given a pair of positive integers m and n (m < n; 0 < m < 999; 1 < n < = 999), write a program to smartly affix zeroes, while printing the numbers from m to n.
#Example
#Input
```sh
5 10
```
#Expected output
```sh
05 06 07 08 09 10
```
#Question 4
Write a program to find the union of two lists.
#Answer:
```sh
def union(lst1, lst2):
return list(set(lst1) | set(lst2))
print(union([1, 2
```
#Question 5
Write a program to check if a given string is a palindrome or not.
#Answer:
```sh
def is_palindrome(s):
return s == s[::-1]
print(is_palindrome("madam")) #True
```
All TCS Ninja NQT Questions
All TCS Ninja NQT Questions