Assistant System Engineer Trainee
200+ Assistant System Engineer Trainee Interview Questions and Answers
Q1. #include int main() { int any = ' ' * 10; printf("%d", any); return 0; } What is the output?
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.
Q2. 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
Q3. 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
Q4. Write a program to find a number that is palindrome or not ?
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
Q5. 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
Q6. Write a program to print addition of two numbers such that if no number is input by the user then the program should use the "break" syntax of python and end.
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
Share interview questions and help millions of jobseekers 🌟
Q7. 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
Q8. 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
Assistant System Engineer Trainee Jobs
0Q9. What is the logic for sorting the 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
Q10. 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.
Q11. Is Java a method based programming language or a 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!"); }
Q12. 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
Q13. 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.
Q14. What is polymorphism in java and 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
Q15. 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
Q16. What are the difference between Local variable and Global Variable?
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
Q17. Write a program to check whether the given number is palindrom.
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
Q18. Give the difference between 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
Q19. What is the difference between list 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).
Q20. 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
Q21. what is thread and 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.
Q22. Why you choose python to learn 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
Q23. Given two linked list of numbers. Add them to form a new linked list 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.
Q24. What are 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
Q25. What is the difference is 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
Q26. Program to check whether the number is 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
Q27. 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.
Q28. Print the adress of a pointer, adress of a variable and value in 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.
Q29. What is the python code to shutdown 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
Q30. (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.
Q31. 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
Q32. 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
Q33. What is the use of Having and Where in 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
Q34. 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
Q35. 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.
Q36. What is loops, explain the 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
Q37. How can you delete 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
Q38. 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
Q39. 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
Q40. 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.
Q41. What is 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();
Q42. 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
Q43. Tell me 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)
Q44. 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.
Q45. How do you look up on solution 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
Q46. About inheritance and 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
Q47. Do you know what are AI and ML ?
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
Q48. 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
Q49. What is the difference between primary and unique key
Primary key uniquely identifies a record in a table, while a unique key ensures that all values in a column are distinct.
Primary key can't have null values, while unique key can have one null value.
A table can have only one primary key, but multiple unique keys.
Primary key is automatically indexed, while unique key may or may not be indexed.
Q50. Working of constructors in inheritance with 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
Interview Questions of Similar Designations
Top Interview Questions for Assistant System Engineer Trainee Related Skills
Interview experiences of popular companies
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/Month