Tcs Smart & Ignite Interview Questions PDF
Tcs Smart & Ignite Interview Questions PDF
ONE SHOT
Q.1 Tell Me About Yourself ?
• Introduce yourself with your full name.
• Highlight your education background.
• Highlight your technical skills
• Highlight your achievments
Q.2 How to explain a project in a technical
Interview?
• Introduce the project.
• Describe the project modules.
• Detail the purpose and function of the project.
• Talk about the tech stack you used.
• Explain your contribution to the project.
• Mention challenges and how you overcame them.
• Highlight your teamwork skills.
Q.3 What are local and instance variable ?
Local Variable: These variables are declared within a method
Example :-
int area()
{
int length = 10; // Local variable
int breadth = 5; // Local variable
int rectarea = length*breadth; // Local variable
return rectarea;
}
Instance Variable :-
These variables are declared within a class but outside a method,
constructor, or block is known as Instance Variable.
Example:-
class Taxes
{
int count; // Count is an Instance variable
}
Q.4 Why do we need OOPS ?
Object-Oriented Programming (OOP) is useful for breaking down
complex systems into smaller, more manageable components. This
makes it easier to develop, maintain, and modify software. OOP also
helps to ensure code reusability and data security.
CODING QUESTIONS
Q.5 What are access specifiers and what is their
significance?
Access specifiers, as the name suggests, are a special type of keywords,
which are used to control or specify the accessibility of entities like
classes, methods, etc. Some of the access specifiers or access modifiers
include “private”, “public”, etc.
Q.6 What are the main features of OOPs?
• Inheritance
• Encapsulation
• Polymorphism
• Abstraction
Q.7 What do you mean by Inheritance ?
Inheritance is a fundamental concept in object-oriented programming
(OOP) that allows one class to inherit properties and behaviors
(methods and attributes) from another class . This promotes code
reuse and hierarchical relationships between classes.
Q.8 What do you mean by Encapsulation ?
Encapsulation is one of the core principles of Object-Oriented
Programming (OOP). It refers to the bundling of data and methods that
operate on the data into a single unit is known as a Encapsulation.
Q.9 What is Polymorphism?
Polymorphism is composed of two words - “poly” which means
“many”, and “morph” which means “shapes”. Therefore Polymorphism
refers to something that has many shapes.
Q.10 What is Abstraction in OOPS ?
Abstraction is one of the fundamental principles of Object-Oriented
Programming (OOP) that focuses on hiding the implementation details
and exposing only the essential features of an object.
Q.11 What is DBMS ?
A database management system (DBMS) is a software system for
creating and managing databases. A DBMS enables end users to create,
protect, read, update and delete data in a database. It also manages
security, data integrity and concurrency for databases.
Q.12 Explain different languages present in DBMS.
DDL(Data Definition Language) : CREATE, ALTER, DROP, TRUNCATE,
RENAME, etc.
DML(Data Manipulation Language): SELECT, UPDATE, INSERT, DELETE,
etc.
DCL(Data Control Language): GRANT and REVOKE.
TCL(Transaction Control Language): COMMIT, ROLLBACK, and
SAVEPOINT.
Q.13 What is Normalization ?
Normalization is a process of reducing redundancy by organizing the
data into multiple tables.
Types of Normal Form :-
1. 1NF
2. 2NF
3. 3NF
4. BCNF
Q.14 What are SQL Aggregate Functions ?
An aggregate function is a function that performs a calculation on a set
of values, and returns a single value.
MIN() - returns the smallest value within the selected column
MAX() - returns the largest value within the selected column
COUNT() - returns the number of rows in a set
SUM() - returns the total sum of a numerical column
AVG() - returns the average value of a numerical column
Q.15 What are Joins and types of Joins ?
A JOIN clause is used to combine rows from two or more tables, based
on a related column between them.
INNER JOIN :-
The INNER JOIN keyword selects records that have matching values in
both tables.
SYNTAX :-
SELECT column_name(s)
FROM table1
INNER JOIN table2
ON table1.column_name = table2.column_name;
LEFT JOIN :-
The LEFT JOIN keyword returns all records from the left table (table1),
and the matching records from the right table (table2).
SYNTAX :-
SELECT column_name(s)
FROM table1
LEFT JOIN table2
ON table1.column_name = table2.column_name;
RIGHT JOIN :-
The RIGHT JOIN keyword returns all records from the right table
(table2), and the matching records from the left table (table1).
SYNTAX :-
SELECT column_name(s)
FROM table1
RIGHT JOIN table2
ON table1.column_name = table2.column_name;
FULL OUTER JOIN :-
The FULL OUTER JOIN keyword returns all records when there is a
match in left (table1) or right (table2) table records.
SYNTAX :-
SELECT column_name(s)
FROM table1
FULL OUTER JOIN table2
ON table1.column_name = table2.column_name
WHERE condition;