Assistant System Engineer Trainee
200+ Assistant System Engineer Trainee Interview Questions and Answers

Asked in TCS

Q. What will you do if you accidentally delete a production database table?
Accidentally deleting a production database table requires immediate action to restore data and prevent further issues.
Assess the situation: Determine the extent of the deletion and its impact on the application.
Check backups: Look for the most recent backup of the database to restore the deleted table.
Use transaction logs: If available, utilize transaction logs to recover the deleted data.
Notify stakeholders: Inform relevant team members and management about the incident.
Imp...read more

Asked in TCS

Q. Who is the CEO of TCS?
Rajesh Gopinathan is the CEO of TCS.
Rajesh Gopinathan became the CEO of TCS in February 2017.
He joined TCS in 2001 and has held various leadership positions.
Under his leadership, TCS has achieved significant growth and global recognition.
Rajesh Gopinathan has played a key role in driving TCS' digital transformation initiatives.
He has a strong background in finance and has contributed to TCS' financial success.

Asked in TCS iON

Q. Write a program to check whether a number is a palindrome or not.
Program to check whether the number is Palindrome or not
Convert the number to a string
Reverse the string
Compare the original and reversed string
If they are equal, the number is a palindrome

Asked in TCS

Q. How do you print the address of a pointer, the address of a variable, and the value in a variable?
Printing the address of a pointer, address of a variable and value in variable.
To print the address of a pointer, use the '&' operator before the pointer variable name.
To print the address of a variable, use the '&' operator before the variable name.
To print the value in a variable, simply use the variable name.

Asked in TCS

Q. What is the Python code to shut down a laptop?
The python code to shutdown a laptop is 'os.system('shutdown /s /t 1')'
Import the os module
Use the os.system() function
Pass the command 'shutdown /s /t 1' as an argument
The '/s' flag is used to shutdown the computer
The '/t 1' flag is used to set a timer of 1 second before shutdown

Asked in TCS

Q. (1) Write a code to print if number is prime or not prime (2) Explain logic behind code (3) What are joins
Code to check if a number is prime or not and explanation of logic behind it.
A prime number is only divisible by 1 and itself.
Loop through all numbers from 2 to n-1 and check if n is divisible by any of them.
If n is divisible by any number, it is not prime.
If n is not divisible by any number, it is prime.

Asked in TCS

Q. What is the difference between String, StringBuilder, and StringBuffer in programming?
String is immutable; StringBuilder and StringBuffer are mutable, with StringBuffer being thread-safe.
String: Immutable, cannot be changed after creation. Example: String str = 'Hello'; str = str + ' World';
StringBuilder: Mutable, not synchronized, faster for single-threaded operations. Example: StringBuilder sb = new StringBuilder('Hello'); sb.append(' World');
StringBuffer: Mutable, synchronized, thread-safe but slower than StringBuilder. Example: StringBuffer sbf = new Strin...read more

Asked in TCS

Q. What is the method to count the number of words in a given string?
To count words in a string, split the string by spaces and count the resulting elements.
Use the split() method in programming languages like Python: 'string.split()'.
Example: 'Hello world'.split() returns ['Hello', 'world'], which has 2 words.
Trim the string first to avoid counting empty words: ' Hello world '.strip().split()
Consider punctuation: 'Hello, world!' should still count as 2 words.
Share interview questions and help millions of jobseekers 🌟

Asked in American Airlines

Q. What is the difference between a tuple and a list in Python?
Tuples are immutable sequences, while lists are mutable, allowing for different use cases in Python programming.
Tuples are defined using parentheses: example - tuple_example = (1, 2, 3)
Lists are defined using square brackets: example - list_example = [1, 2, 3]
Tuples cannot be modified after creation (immutable), while lists can be changed (mutable).
Tuples can be used as keys in dictionaries, whereas lists cannot.
Tuples generally have a smaller memory footprint compared to lis...read more

Asked in TCS

Q. Tell me about yourself,dbms,sql,python oops
I am a tech enthusiast with knowledge in DBMS, SQL, Python and OOPs concepts.
Proficient in DBMS concepts and SQL queries
Skilled in Python programming and OOPs concepts
Experience in designing and implementing databases
Familiarity with data structures and algorithms
Ability to work in a team and adapt to new technologies

Asked in TCS

Q. What is sdlc? What is white box testing how it usefull
SDLC stands for Software Development Life Cycle. White box testing is a testing technique that involves testing the internal structure of the software.
SDLC is a process followed by software development teams to design, develop, test, and deploy software.
It consists of several phases such as planning, analysis, design, implementation, testing, and maintenance.
White box testing is a testing technique that involves testing the internal structure of the software, including code, ...read more

Asked in TCS

Q. What is the use of HAVING and WHERE clauses in an SQL query?
HAVING and WHERE are used in SQL queries to filter data based on certain conditions.
WHERE is used to filter data based on a specific condition in the WHERE clause.
HAVING is used to filter data based on a specific condition in the GROUP BY clause.
WHERE is used before GROUP BY, while HAVING is used after GROUP BY.
WHERE is used with single-row functions, while HAVING is used with group functions.
Example: SELECT name, SUM(sales) FROM sales_table WHERE sales > 1000 GROUP BY name H...read more

Asked in TCS

Q. Do you think govt should have a control over the social media/OTT? Support your opinion .
Government control over social media/OTT can ensure safety, prevent misinformation, and protect user rights while balancing freedom of expression.
Regulation can help combat misinformation, as seen during elections where false news can sway public opinion.
Control can protect vulnerable populations from harmful content, such as cyberbullying or extremist propaganda.
Government oversight can ensure user data privacy and security, preventing misuse by corporations.
Examples like th...read more

Asked in TCS

Q. What is break, continue, and pass in Python?
break, continue and pass are control statements in Python used to alter the flow of loops and conditional statements.
break is used to terminate a loop prematurely
continue is used to skip the current iteration and move to the next one
pass is used as a placeholder when a statement is required syntactically but no action is needed

Asked in TCS

Q. Which one of them is immutable: list or tuple?
Tuple is immutable.
Tuple cannot be modified once created.
List can be modified by adding, removing or changing elements.

Asked in Volkswagen Group Technology Solution

Q. What are the four pillars of Object-Oriented Programming (OOP)?
The four pillars of OOP are Encapsulation, Abstraction, Inheritance, and Polymorphism, which enhance code organization and reusability.
Encapsulation: Bundling data and methods that operate on the data within a single unit (class). Example: A class 'Car' with properties like 'speed' and methods like 'accelerate()'.
Abstraction: Hiding complex implementation details and showing only the essential features. Example: A 'Payment' interface that defines methods like 'processPayment(...read more

Asked in TCS

Q. How can you delete the nth element from a linked list?
To delete nth element from a linked list, we need to traverse to the (n-1)th node and change its next pointer to (n+1)th node.
Traverse to (n-1)th node
Change its next pointer to (n+1)th node
Free the memory of nth node

Asked in TCS

Q. What are loops, and what are the different types of loops?
Loops are used to execute a set of statements repeatedly. There are three types of loops: for, while, and do-while.
For loop is used when the number of iterations is known beforehand.
While loop is used when the number of iterations is not known beforehand.
Do-while loop is similar to while loop, but it executes the statements at least once before checking the condition.
Example: for(int i=0; i<10; i++) { //statements }
Example: int i=0; while(i<10) { //statements i++; }
Example: i...read more

Asked in Super Auto Forge

Q. Which is better, hard work or smart work?
Both hard work and smart work are important, but a combination of both is the key to success.
Hard work is necessary to achieve goals and develop skills.
Smart work helps in optimizing time and resources.
A combination of both can lead to efficient and effective results.
For example, a student who studies hard but also uses effective study techniques like summarizing and practicing questions is likely to perform better than a student who only studies hard without any strategy.
Sim...read more

Asked in TCS

Q. array in Python? Slicing in Py? Scope in py? list
Python arrays, slicing, scope, and lists.
Arrays in Python are homogeneous collections of data that are stored in contiguous memory locations.
Slicing in Python is a way to extract a portion of a sequence, such as a string, list, or tuple.
Scope in Python refers to the region of a program where a variable is defined and can be accessed.
Lists in Python are ordered collections of items that can be of different data types.

Asked in TCS iON

Q. What are pointers . Write a short program to explain concept of pointers
Pointers are variables that store memory addresses of other variables.
Pointers are used to access and manipulate memory addresses directly.
They are denoted by an asterisk (*) before the variable name.
Example: int *ptr; // declares a pointer to an integer variable

Asked in TCS

Q. What are the differences between ArrayList and LinkedList?
ArrayList and LinkedList are two types of List implementations in Java, differing in performance and structure.
ArrayList uses a dynamic array to store elements, while LinkedList uses a doubly linked list.
ArrayList provides faster random access (O(1)) due to its array structure, whereas LinkedList has slower access time (O(n)).
Insertion and deletion are faster in LinkedList (O(1) for adding/removing at ends) compared to ArrayList (O(n) for shifting elements).
ArrayList is bette...read more

Asked in TCS

Q. Which programming language do you have complete proficiency in?
I have complete proficiency in Python, a versatile language known for its readability and extensive libraries for various applications.
Strong understanding of Python syntax and semantics.
Experience with data analysis using libraries like Pandas and NumPy.
Proficient in web development with frameworks such as Flask and Django.
Familiarity with machine learning libraries like TensorFlow and scikit-learn.
Ability to write clean, maintainable code and conduct unit testing.

Asked in Infosys

Q. What is an exception in Java?
An exception is an event that occurs during the execution of a program that disrupts the normal flow of instructions.
Exceptions are objects that are thrown when an error occurs in a program.
They can be caught and handled using try-catch blocks.
Common exceptions include NullPointerException, ArrayIndexOutOfBoundsException, and IOException.
Exceptions can be caused by a variety of factors, such as invalid input, network errors, or programming errors.

Asked in TCS

Q. What is the throw keyword in Java?
throw keyword is used to explicitly throw an exception in Java.
It is followed by an instance of the Exception class or one of its subclasses.
It is used to handle exceptional situations in a program.
It is used in combination with try-catch block to handle exceptions.
Example: throw new NullPointerException();

Asked in TCS

Q. What is Inheritance? What is a parent class ?
Inheritance is a concept in object-oriented programming where a class can inherit attributes and methods from another class, known as the parent class.
Inheritance allows for code reusability and promotes the concept of hierarchical classification.
A parent class is also known as a base class or superclass.
Child classes can inherit attributes and methods from the parent class.
Example: If we have a parent class 'Animal' with attributes like 'name' and methods like 'eat()', a chi...read more

Asked in TCS

Q. What are the differences between a list and a tuple?
A list is mutable and ordered while a tuple is immutable and ordered.
Lists can be modified while tuples cannot
Lists are defined using square brackets while tuples use parentheses
Lists are used for collections of data that may change while tuples are used for fixed collections of data
Example of a list: [1, 2, 3] and example of a tuple: (1, 2, 3)

Asked in TCS

Q. How do you find solutions when you are stuck?
I first try to analyze the problem, research online resources, consult with colleagues, and experiment with different solutions.
Analyze the problem to understand the root cause
Research online resources such as forums, documentation, and tutorials
Consult with colleagues or mentors for their insights
Experiment with different solutions to see what works best

Asked in TCS

Q. Do you know what AI and ML are?
AI stands for Artificial Intelligence and ML stands for Machine Learning.
AI is the simulation of human intelligence in machines that are programmed to think and learn like humans.
ML is a subset of AI that involves training algorithms to make predictions or decisions based on data.
AI and ML are used in various industries such as healthcare, finance, and transportation.
Examples of AI and ML include virtual assistants like Siri and Alexa, self-driving cars, and fraud detection s...read more

Asked in TCS

Q. How many data types are there in Python?
Python has 6 standard data types - Numbers, Strings, Lists, Tuples, Sets, and Dictionaries.
Python has 3 numeric data types - int, float, and complex
Strings are immutable sequences of Unicode characters
Lists are mutable sequences of objects
Tuples are immutable sequences of objects
Sets are unordered collections of unique elements
Dictionaries are unordered key-value pairs
Interview Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Assistant System Engineer Trainee Related Skills

Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary


Reviews
Interviews
Salaries
Users

