TCS Interview Questions: Click Here
TCS Interview Questions: Click Here
© Copyright by Interviewbit
Contents
2. Interview Rounds
Interview round 1: TCS NQT
The first round of the TCS recruitment process is TCS NQT (National Qualifier Test),
which is considered one of the most difficult stages of the procedure. It is an Ability
Test that evaluates a candidate's abilities and skills. TCS NQT Exams are offered both
online (at home) and in-person at TCS iON Authorised Exam Centers.
The test has five sections:
This is the most challenging stage of the hiring process, so do your best to prepare for
it. The focus of the entire interview process will be on your technical knowledge,
biography, and primary projects.
The technical round of the TCS interview which is face to face consists of questions
designed to assess the candidate's knowledge of data structures and algorithms,
database management systems, operating systems, networking, object-oriented
programming ideas, and a programming language of your choice. There's a
considerable chance you'll be asked to write some code on pen and paper.
Interview round 3: Managerial round
The managerial round is handled by a panel of senior members. This is also a face-to-
face interview round. This round may consist entirely of technical questions or a
combination of technical and managerial questions. The majority of the questions
are based on the profile for which you are being interviewed. You should be up to
date on any new technologies or so ware required for that position. You may also be
asked questions based on your actions to assess your thinking style. You could be put
under pressure to see how you react. Your CV's achievements may be questioned,
and you may have to defend them. You may be questioned about your previous
working experiences, your objectives, motivations for joining TCS, and other similar
topics.
The panel will assess your corporate culture fit, attitude, so skills, desired career
advancement, and other factors in this round.
You might also be asked generic questions about your work experience, college
degree, speciality, desire to relocate, and so on. In any event, regardless of the route
the interview takes, always be gracious. The interview panel aims to force you to step
outside of your comfort zone. Maintain your composure and respond to the
questions that you are familiar with. If the answer is unknown, don't give up; instead,
try it with what you know.
Interview round 4: HR round
6. What is NAT?
Network Address Translation (NAT) is an acronym for Network Address Translation.
It involves modifying the IP headers of packets being transported over a traffic
routing device to remap one IP address space to another.
7. What is piggybacking?
A er receiving data packets in two-way communication, the receiver sends an
acknowledgment (control frame or ACK) to the sender. The receiver, on the other
hand, does not send the acknowledgment right away, instead of waiting until the
next data packet is received by its network layer. The ACK is then added to the
incoming data frame. Piggybacking is the process of postponing the ACK and
attaching it to the next outgoing data frame.
Ethernet is a network technology that connects devices via cables for data
transmission in Local Area Networks (LANs), Metropolitan Area Networks (MANs), and
Wide Area Networks (WANs). It delivers services on the OSI Model's Physical and Data
Link layers. The purpose of an Ethernet network is so computers and other devices
can efficiently share files, information, and data. Ethernet was first introduced in
1980.
where,
CC: cyclomatic complexity.
E: number of edges in the control flow graph
N: the number of nodes in the control flow graph
P: the number of connected elements
17. Give an instance where there was a bug that you didn't find
in black box testing but discovered in white box testing.
Let's imagine you have an item that is stored across numerous tables, and you want
to delete it. Your black-box test case is considered passed a er the entity disappears
from the GUI a er deletion in black-box testing. White-box testing, on the other
hand, verifies that all relevant rows are removed from the tables. The test case is
considered unsuccessful if the deletion simply deletes the parent record, leaving the
child rows intact.
18. What is slice splicing in so ware testing? What are its two
types?
A program slice is a set of program statements. We could code a slice and test it right
away if we chose to construct so ware in terms of compatible slices. We can then
code and test additional slices before combining them into good so ware. Slice
splicing is the term for this process.
There are two forms of slicing: static and dynamic.
Static Slicing:
A static slice of a program contains all statements that may change the value of
a variable at any point during any arbitrary execution of the program.
In general, static slices are larger.
It considers every potential program execution.
Dynamic slicing:
AWT Swing
20. Explain memory leak in C++. How can you avoid it?
Memory leaking happens in C++ when programmers dynamically allocate memory
with the new keyword or using malloc()/calloc() and then forget to deallocate it with
the delete() or delete[] operators or the free() function. In C++, one of the most
common causes of memory leakage is the use of the incorrect delete operator.
The delete [] operator should be used to free an array of data values, whereas the
delete operator should be used to clear a single allocated memory space.
To avoid memory leak:
When possible, utilise smart pointers instead of manually managing memory.
Instead of char *, use std::string. All memory management is handled internally,
which is quick and well-optimized.
Unless you're interacting with an older library, you should never use a raw
pointer.
In C++, the simplest strategy to avoid memory leaks is to have a few new/delete
calls as possible at the program level — ideally NONE.
Write all code between the new and delete keywords to allocate memory and
deallocate memory.
26. What exactly are macros? What are the benefits and
drawbacks?
Macros are pre-processor constants that are replaced at compile time. Thus, a macro
is a section of code in a program that has been given a name. The compiler
substitutes this name with the actual piece of code whenever it encounters it.
The downside of macros is that they are not function calls; they simply change the
code. Similarly, they have the advantage of saving time when substituting the same
values.
#include <stdio.h>
// defining macros
#define TEXT "Hello"
#define EVEN 2
#define SUMMATION (8 + 2)
int main()
{
printf("String: %s\n", TEXT);
printf("First Even Number: %d\n", EVEN);
printf("Summation: 8+2=%d\n", SUMMATION);
return 0;
}
Any instance of the terms TEXT, EVEN and SUMMATION in the sample above will be
substituted by whatever is in their body.
28. How will you swap two numbers without the use of a third
variable?
This can be achieved using arithmetic operations.
int x = 5, y = 15;
Or
int x = 5, y = 15;
int x = 5, y = 15;
class IB {
if(num <= 0)
break;
// Attach the last digit of num
// as the next digit of rev
rev = rev * 10 + num % 10;
if (args.length > 0) {
System.out.println(revNum(number));
}
else
System.out.println("No command line arguments found.");
}
}
In the context of Direct Memory Access, we come across cycle stealing (DMA). The
DMA controller can either use the data bus when the CPU is not using it or force the
CPU to cease execution temporarily. Cycle stealing is the term for the second
method. It's worth noting that cycle stealing is only possible at specific breakpoints in
an instruction cycle.
31. What are the two concepts of swapping in the context of OS?
How does swapping help in better memory management?
Swapping has been subdivided into two concepts: Swap-in and Swap-out.
Swap-out is a technique for transferring a process from RAM to the secondary
memory.
Swap-in is a technique for removing a program from the secondary memory and
reinstalling it in the main memory, also known as RAM.
Processes can be copied from the main memory to a backing store and then copied
back at regular intervals determined by the operating system. Swapping allows more
processes to execute at the same time than memory allows. Swapping allows the
CPU to do numerous jobs at the same time. As a result, procedures don't have to wait
very long to be executed. It aids the CPU's ability to manage several tasks in a single
main memory. It facilitates the creation and use of virtual memory.
An interrupt is a part of the hardware system that alerts the CPU when it wants to
access a specific resource. This interrupt signal is received by an interrupt handler,
which “tells” the processor to operate in response to the interrupt request.
The first step in nailing any interview is “Self Confidence.” If you are confident
enough, you have already completed half of the task. Keep a positive attitude
and a smile on your face at all times.
Study your technical subjects thoroughly and practice your responses to
frequent HR and management interview questions. Above all, stay cool and
certain, and you'll have an excellent chance of surviving.
Visit the company's website. Understand the services and product lines that the
company provides its mission and philosophy. Employers expect you to
understand who the company is, what it does, and how it fits into your career
aspirations. These types of company-related questions can be asked in the HR
round.
In your technical interview, your academic projects and mini-projects play a
significant influence. Be highly strong in the fundamentals of the programming
language, regardless of your technical role.
Make Your Resume Perfect. Employers will only take into consideration resumes
and cover letters that are error-free in terms of format, grammar, and spelling.
Resumes should be targeted to the exact position for which you've applied,
highlighting relevant work experience and academic credentials.
Remember to learn about the basic algorithm for Fibonacci sequence, sorting,
the Armstrong Number, prime, palindrome, even, odd, and factorial programs.
Answers should be BRIEF. To convey the essential solution, don't use any
additional word arts. Don't waste time giving useless responses or asking
questions that aren't relevant. Any interviewer who sees you do this will
immediately mark you down on their scorecard.
C
C++
Python
JAVA
Perl
You will be tested on your programming skills. Computer Networks, DBMS, So ware
Management, Operation Systems, and Cloud Computing are all topics that students
will be asked questions from. Prepare well about projects which you have created.
Prepare the basics of HTML, C, C++, and other computer-related topics. Prepare the
topics which are mentioned in your resume. The most common questions asked in
HR interviews relate to relocation, background, reasons for a job change, expected
salary, and others. They can also ask questions related to the company. Know the
company well.
Technical interview
Managerial interview
HR interview
Check out the above section to learn more.
Css Interview Questions Laravel Interview Questions Asp Net Interview Questions