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

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
Assistant System Engineer Trainee Interview Questions and Answers for Freshers

Asked in TCS

Q. Difference between Structure and Union in C programming language, What is OOPs and it’s features ?
Structure and Union are data structures in C. OOPs is Object Oriented Programming paradigm with features like inheritance, polymorphism, encapsulation, and abstraction.
Structure is a collection of variables of different data types under a single name. Union is similar but all variables share the same memory location.
OOPs is a programming paradigm that focuses on objects and their interactions. It features inheritance, where a class can inherit properties and methods from anot...read more

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 program to print the sum of two numbers. If no number is input by the user, the program should use the "break" syntax of Python and terminate.
Program to print addition of two numbers with break syntax if no input.
Use input() function to take user input
Use try-except block to handle errors
Use while loop to keep taking input until break is entered

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
Share interview questions and help millions of jobseekers 🌟

Asked in TCS

Q. What is the logic for sorting numbers in C programming?
Sorting numbers in C programming involves using various algorithms to arrange them in ascending or descending order.
Common sorting algorithms include bubble sort, insertion sort, selection sort, merge sort, and quicksort.
The choice of algorithm depends on the size of the data set and the efficiency required.
Sorting can be done using loops and conditional statements in C programming.
The sorted array can be printed using a for loop.
Sorting can also be done using library functio...read more

Asked in TCS

Q. Can you work in any location? What if we assign you in the Sahara desert with 55 degree Celsius temperature?
Yes, I am willing to work in any location including the Sahara desert with 55 degree Celsius temperature.
I am adaptable and can work in any environment.
I am willing to face challenges and overcome them.
I will take necessary precautions to ensure my safety and health.
I will follow company guidelines and procedures.
Examples: I have worked in remote locations with extreme weather conditions before and have experience in handling such situations.

Asked in TCS

Q. If I assign NULL to a pointer which was assigned memory with the malloc function in C, will the allocated memory be freed?
Assigning NULL to a pointer does not free the memory allocated by malloc in C.
Using malloc allocates memory on the heap.
Assigning NULL to a pointer only changes the pointer's address, not the allocated memory.
To free memory, use the free() function before assigning NULL.
Example: int *ptr = malloc(sizeof(int)); free(ptr); ptr = NULL;

Asked in TCS

Q. Is Java a method-based or function-based programming language?
Java is a method based programming language.
Java is a method based programming language because it relies on methods (functions) to perform actions.
In Java, functions are defined within classes and are called using objects or class names.
Example: public void printMessage() { System.out.println("Hello, World!"); }

Asked in TCS

Q. What is Encapsulation?
Encapsulation is the process of hiding internal details and providing a public interface for accessing and manipulating data.
Encapsulation is a fundamental concept in object-oriented programming.
It combines data and methods into a single unit called a class.
The class encapsulates the data and provides methods to interact with it.
Access to the data is controlled through the class's public interface.
Encapsulation helps in achieving data abstraction, data hiding, and code reusab...read more

Asked in TCS

Q. Which programming language are you most comfortable in?
I am most comfortable in Java.
I have experience in developing Java applications for both desktop and web environments.
I am familiar with Java frameworks such as Spring and Hibernate.
I have also worked with Java-based tools like Maven and Jenkins.
I am comfortable with object-oriented programming concepts and design patterns in Java.
For example, I have developed a web application using Spring MVC and Hibernate for database connectivity.

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. Lists are mutable objects whereas as Tuples are immutable. --Mutable objects - Allow you to change the value/data in place without affecting the objects identity. --Immutable objects - In contrast to the Mutabl...
read moreLists can be modified after creation, while tuples cannot be changed once created.
Lists use square brackets [] while tuples use parentheses ()
Example: list_example = [1, 2, 3], tuple_example = (4, 5, 6)
Lists are more flexible but tuples are faster and consume less memory

Asked in TCS

Q. What are the differences between a Database Management System (DBMS) and a Relational Database Management System (RDBMS)?
DBMS is a general system for managing databases, while RDBMS specifically uses a relational model for data organization.
DBMS stores data as files, while RDBMS stores data in tables with rows and columns.
RDBMS supports relationships between tables using foreign keys, unlike DBMS.
DBMS may not enforce data integrity, whereas RDBMS ensures data integrity through constraints.
Examples of DBMS include hierarchical databases and network databases; examples of RDBMS include MySQL, Pos...read more

Asked in TCS

Q. What are the differences between Data Manipulation Language (DML) and Data Definition Language (DDL)?
DML is for data manipulation, while DDL is for defining database structures.
DML includes commands like INSERT, UPDATE, DELETE for managing data.
DDL includes commands like CREATE, ALTER, DROP for defining database schemas.
Example of DML: INSERT INTO table_name (column1, column2) VALUES (value1, value2);
Example of DDL: CREATE TABLE table_name (column1 datatype, column2 datatype);

Asked in TCS

Q. What is the difference between compile-time polymorphism and run-time polymorphism, and can you provide examples to illustrate each?
Compile-time polymorphism is resolved during compilation, while run-time polymorphism is resolved during execution.
Compile-time polymorphism is achieved through method overloading and operator overloading.
Example of compile-time polymorphism: Method overloading in Java.
Run-time polymorphism is achieved through method overriding.
Example of run-time polymorphism: Using virtual functions in C++.

Asked in TCS

Q. What are the differences between local and global variables?
Local variables are declared inside a function and have a limited scope, while global variables are declared outside a function and can be accessed from anywhere in the program.
Local variables are only accessible within the function they are declared in.
Global variables can be accessed from any part of the program.
Local variables are created when a function is called and destroyed when the function returns.
Global variables are created when the program starts and destroyed whe...read more

Asked in TCS

Q. Write a program to check whether the given number is a palindrome.
Program to check if a number is a palindrome
Convert the number to a string
Reverse the string
Compare the original string with the reversed string
If they are the same, the number is a palindrome

Asked in Hexaware Technologies

Q. What is the difference between an Interface and Abstraction?
Interface defines the contract between a class and the outside world, while Abstraction provides a generalized view of an object.
Interface is a blueprint of a class that defines the methods and properties that a class must implement.
Abstraction is a concept that hides the implementation details and provides a generalized view of an object.
Interface is used to achieve multiple inheritance in Java.
Abstraction is used to achieve encapsulation in Java.
Interface can be implemented...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).

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 TCS

Q. What are the four pillars of C++?
The 4 pillars of C++ are encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Creating new classes from existing classes, inheriting their attributes and methods.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding complex implementation details and showing only the necessary features.

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. Why did you choose to learn Python instead of other languages?
Python is easy to learn, versatile, and has a large community support.
Python has a simple syntax and is easy to read and write.
It has a wide range of applications, from web development to data analysis and machine learning.
Python has a large community of developers who contribute to its libraries and frameworks.
Python is versatile and can be used for both small and large projects.
Python is an interpreted language, which means it can be run on any platform without the need for...read more

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 are the four pillars of OOP? Explain with examples.
The four pillars of OOP are Abstraction, Encapsulation, Inheritance, and Polymorphism.
Abstraction: Hiding implementation details and showing only necessary information. Example: A car dashboard shows only necessary information like speed, fuel level, etc.
Encapsulation: Binding data and functions that manipulate the data together. Example: A class in OOP encapsulates data and functions that operate on that data.
Inheritance: Creating new classes from existing ones, inheriting t...read more

Asked in TCS

Q. What is the difference between procedural and object-oriented programming?
Procedural programming focuses on procedures or functions while object oriented programming focuses on objects and their interactions.
Procedural programming is based on the concept of procedures or functions that perform specific tasks.
Object oriented programming is based on the concept of objects that have properties and methods.
Procedural programming is more suited for small programs while object oriented programming is better for larger programs.
In procedural programming, ...read more
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

