Assistant System Engineer Trainee
70+ Assistant System Engineer Trainee Interview Questions and Answers for Freshers

Asked in TCS

Q. What is the output of the following C code? #include int main() { int any = ' ' * 10; printf("%d", any); return 0; }
The program outputs 320, which is the ASCII value of space multiplied by 10.
The variable 'any' is assigned the value of ' ' (space) multiplied by 10, which is 320 in ASCII.
The printf statement outputs the value of 'any', which is 320.
The #include statement is not relevant to the output of the program.

Asked in TCS

Q. Compute the nearest larger number by interchanging its digits updated.Given 2 numbers a and b find the smallest number greater than b by interchanging the digits of a and if not possible print -1.
Compute the nearest larger number by interchanging its digits.
Given two numbers a and b
Find the smallest number greater than b by interchanging the digits of a
If not possible, print -1

Asked in TCS

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

Asked in TCS

Q. Basic print function of python and OOPS concept explanation
Python's print function and OOPS concept explanation
The print() function is used to display output on the console
It can take multiple arguments separated by commas
OOPS stands for Object-Oriented Programming System
It is a programming paradigm based on the concept of objects
Objects have properties (attributes) and methods (functions)
Encapsulation, inheritance, and polymorphism are key OOPS concepts

Asked in TCS

Q. Write a SQL query to find all records whose base branch city is Kolkata and haven't been allocated to projects.
SQL query to find records with base branch city Kolkata and not allocated to projects
Use SELECT statement to retrieve data from table
Use WHERE clause to filter records with base branch city Kolkata
Use LEFT JOIN to join table with project allocation table
Use IS NULL condition to filter records not allocated to projects

Asked in TCS

Q. Principles of oops and explain agile methodologies and explain uses of stack and basic web development questions
Answering questions on OOPs principles, agile methodologies, stack uses, and basic web development.
OOPs principles include encapsulation, inheritance, and polymorphism
Agile methodologies involve iterative and incremental development
Stack is a data structure that follows LIFO principle
Basic web development questions may include HTML, CSS, and JavaScript
HTML is used for creating the structure of a web page
CSS is used for styling the web page
JavaScript is used for adding interac...read more

Asked in TCS

Q. What is polymorphism in Java, and what are its types?
Polymorphism is the ability of an object to take on many forms. In Java, it is achieved through method overloading and overriding.
Polymorphism allows objects to be treated as if they are of multiple types.
Method overloading is a type of polymorphism where multiple methods have the same name but different parameters.
Method overriding is a type of polymorphism where a subclass provides its own implementation of a method that is already defined in its superclass.
Polymorphism is ...read more

Asked in TCS

Q. What is the difference between lists and tuples?
Lists are mutable while tuples are immutable in Python.
Lists use square brackets [] while tuples use parentheses ().
Elements in a list can be added, removed, or modified while tuples cannot be modified.
Lists are used for collections of homogeneous items while tuples are used for heterogeneous items.
Lists are slower than tuples in terms of performance.
Example of a list: [1, 2, 3] and example of a tuple: (1, 'apple', True).
Share interview questions and help millions of jobseekers 🌟

Asked in TCS

Q. What is the difference between method overloading and method overriding?
Method overloading is having multiple methods with the same name but different parameters. Method overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Method overloading is a compile-time polymorphism while method overriding is a runtime polymorphism.
Method overloading is used to provide different ways of calling the same method with different parameters.
Method overriding is used to provide a specific implementation of a ...read more

Asked in Orange Business

Q. What is a thread and what is its lifecycle?
A thread is a lightweight process that can run concurrently with other threads in a program.
Threads share the same memory space as the parent process.
Threads can communicate with each other through shared memory.
Thread lifecycle includes creation, running, waiting, and termination.
Threads can be created using the Thread class in Java or pthread_create() function in C.
Examples of multithreaded programs include web servers and video games.

Asked in TCS

Q. Given two linked lists representing numbers, add them to form a new linked list. For example, 1->2->3 + 4->5->6 = 5->7->9.
Add two linked lists of numbers to form a new linked list.
Traverse both linked lists simultaneously and add the corresponding nodes.
If one list is shorter than the other, pad it with zeros.
If the sum of two nodes is greater than 9, carry over the 1 to the next node.
Create a new linked list with the sum of nodes.
Return the head of the new linked list.

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. 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. 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 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, and can you explain it with real-life examples?
Inheritance is a concept in object-oriented programming where a class can inherit properties and methods from another class.
Inheritance allows for code reuse and promotes a hierarchical structure.
A child class can inherit properties and methods from a parent class.
For example, a Car class can inherit properties and methods from a Vehicle class.
Another example is a Dog class inheriting properties and methods from an Animal class.
Inheritance can also involve multiple levels, wi...read more

Asked in TCS

Q. What is Operating System? Explain different OSI Layers.
An Operating System (OS) manages computer hardware and software, providing services for computer programs.
An OS acts as an intermediary between users and computer hardware.
Examples of popular operating systems include Windows, macOS, and Linux.
The OS manages resources like CPU, memory, and storage.
It provides a user interface, such as command line or graphical interface.
Operating systems can be classified as batch, time-sharing, distributed, or real-time.

Asked in TCS

Q. Explain how constructors work in inheritance, providing real-life examples.
Constructors in inheritance allow child classes to inherit properties and methods from parent classes.
Constructors in child classes can call the constructor of the parent class using the 'super' keyword.
If a child class does not have a constructor, it will automatically inherit the constructor of the parent class.
Constructors can be used to initialize properties of the child class as well as the parent class.
Real life example: A car is a child class of a vehicle. The construc...read more

Asked in TCS

Q. What is java and how it is useful in our daily life
Java is a versatile programming language used in various applications, enhancing daily life through technology.
Widely used for building mobile applications, especially Android apps like WhatsApp and Instagram.
Powering web applications and services, such as e-commerce platforms like Amazon.
Utilized in enterprise solutions for managing business processes, like CRM systems.
Enables the development of embedded systems in devices like smart TVs and home appliances.
Supports big data...read more

Asked in TCS

Q. Tell me about your paper presentation experience outside of your college campus.
I have presented a paper on Artificial Intelligence at a national conference.
Presented a paper on AI at a national conference organized by IEEE.
Discussed the impact of AI on the future of work and society.
Received positive feedback from the audience and panelists.
Networked with professionals in the field and gained insights into current research.
Published the paper in the conference proceedings.

Asked in TCS

Q. Write a program in your favorite programming language to calculate the sum of natural digits in consecutive order.
This program calculates the sum of natural numbers in consecutive order up to a given limit.
Natural numbers start from 1 and go up to n.
The sum of the first n natural numbers can be calculated using the formula: n * (n + 1) / 2.
Example: For n = 5, the sum is 1 + 2 + 3 + 4 + 5 = 15.
Example: For n = 10, the sum is 1 + 2 + ... + 10 = 55.

Asked in TCS

Q. What is the prototype of the C language?
The prototype of C language is int main()
The prototype specifies the return type and parameters of a function
int main() is the prototype for the main function in C
The parentheses are required even if there are no parameters
Other functions can have different prototypes depending on their return type and parameters

Asked in TCS

Q. What is java? What are the features of java
Java is a high-level, object-oriented programming language used for developing applications and software.
Java is platform-independent, meaning it can run on any platform with a Java Virtual Machine (JVM)
It is statically-typed, which means that variables must be declared before they can be used
Java is object-oriented, which means that everything in Java is an object
It has automatic memory management, meaning that the programmer does not need to manually allocate and deallocate...read more

Asked in Mphasis

Q. What is the difference between functional and object-oriented programming?
Functional programming focuses on functions and immutability, while object oriented programming focuses on objects and classes.
Functional programming uses pure functions that do not have side effects
Object oriented programming uses objects that encapsulate data and behavior
In functional programming, data is immutable and functions are first-class citizens
In object oriented programming, objects interact with each other through methods and inheritance
Example: Functional program...read more

Asked in TCS

Q. Define OOPS and explain its types.
OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
There are four main types of OOPs: Abstraction, Encapsulation, Inheritance, and Polymorphism.
Abstraction is the process of hiding complex implementation details and showing only the necessary information to the user.
Encapsulation is the process of binding data and functions that manipulate that data together in a single unit.
Inheritance is the process of creating new clas...read more

Asked in TCS

Q. Types of data types with few examples.
Data types are classifications of data items that indicate the kind of values they contain.
Primitive data types: int, float, double, char, boolean
Non-primitive data types: arrays, strings, classes, interfaces
Examples: int age = 25, float price = 10.5, char grade = 'A', boolean isTrue = true, String name = 'John', int[] numbers = {1, 2, 3}

Asked in Tech Mahindra

Q. What are collections in Java?
Collections in Java are classes and interfaces that group multiple objects into a single unit.
Collections provide a way to manage and manipulate groups of objects.
They are used to store, retrieve, and manipulate data in a structured way.
Examples of collections include ArrayList, LinkedList, HashSet, and TreeMap.
Collections can be used to sort, search, filter, and modify data.
They are an important part of Java programming and are used extensively in real-world applications.

Asked in TCS

Q. What are pointers?
Pointers are variables that store memory addresses of other variables in a program.
Pointers allow for dynamic memory allocation and manipulation.
They are used to pass data between functions efficiently.
Pointers can be used to create complex data structures like linked lists and trees.
Example: int *ptr; // declares a pointer to an integer variable
Example: ptr = # // assigns the address of num to ptr
Example: *ptr = 10; // assigns the value 10 to the variable pointed to by ptr
Interview Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Assistant System Engineer Trainee Related Skills



Reviews
Interviews
Salaries
Users

