Assistant System Engineer Trainee

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

Updated 27 Aug 2024

Q1. #include int main() { int any = ' ' * 10; printf("%d", any); return 0; } What is the output?

Ans.

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.

Ans.

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

Q3. Write a program to find a number that is palindrome or not ?

Ans.

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

Q4. Basic print function of python and OOPS concept explanation

Ans.

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

Are these interview questions helpful?

Q5. Write a sql query to find all records whose base branch city is kolkata and haven't been allocated to projects

Ans.

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

Q6. Principles of oops and explain agile methodologies and explain uses of stack and basic web development questions

Ans.

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 🌟

man-with-laptop

Q7. What is polymorphism in java and its types?

Ans.

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

Q8. What is the difference between list and tuples

Ans.

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).

Assistant System Engineer Trainee Jobs

0

Q9. What is the difference between method overloading and method overriding?

Ans.

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

Q10. what is thread and its lifecycle?

Ans.

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.

Q11. Given two linked list of numbers. Add them to form a new linked list example 1->2->3+4->5->6=5->7->9

Ans.

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.

Q12. Print the adress of a pointer, adress of a variable and value in variable?

Ans.

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.

Q13. What is the python code to shutdown a laptop?

Ans.

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

Q14. What is sdlc? What is white box testing how it usefull

Ans.

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

Q15. What is an exception in java?

Ans.

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.

Q16. What is throw keyword in java?

Ans.

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();

Q17. About inheritance and explain it with real life examples?

Ans.

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

Q18. Working of constructors in inheritance with real life examples?

Ans.

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

Q19. Paper presentation experience outside your college campus.

Ans.

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.

Q20. What is thePrototype of C language?

Ans.

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

Q21. What is java? What are the features of java

Ans.

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

Q22. what are collections in java?

Ans.

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.

Q23. What’s the difference between functional and object oriented programming

Ans.

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

Q24. Define oops and explain the types of it.

Ans.

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

Q25. Types of data types with few examples.

Ans.

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}

Q26. what are pointers?

Ans.

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

Frequently asked in,

Q27. What is the operating system in your laptop?

Ans.

The operating system in my laptop is Windows 10.

  • My laptop runs on Windows 10 operating system.

  • Windows 10 is a popular operating system developed by Microsoft.

  • It has a user-friendly interface and supports a wide range of software applications.

  • Some of the key features of Windows 10 include Cortana, Microsoft Edge, and virtual desktops.

Q28. What is encapsulation. Explain it with example

Ans.

Encapsulation is the concept of bundling data and methods that operate on the data into a single unit, known as a class.

  • Encapsulation helps in hiding the internal state of an object and restricting access to it.

  • It allows for data hiding, which prevents direct access to an object's attributes.

  • Encapsulation also helps in achieving data abstraction, where only necessary details are exposed to the outside world.

  • Example: In a class representing a car, the variables like speed and ...read more

Q29. Write code for cube of number , prime number , sorting , DBMS related , SQL.

Ans.

Code for cube of number, prime number, sorting, DBMS related, SQL

  • Cube of a number: num*num*num

  • Prime number: check if num is divisible by any number from 2 to num-1

  • Sorting: use built-in sorting functions or implement bubble sort, merge sort, quick sort, etc.

  • DBMS related: learn about database design, normalization, SQL queries, etc.

  • SQL: use SQL commands to create, modify, and query databases

Q30. What do you mean by abstraction

Ans.

Abstraction is the process of hiding complex details and showing only essential features of an object or system.

  • Abstraction helps in managing complexity by breaking down a system into smaller, more manageable parts.

  • It allows us to focus on the important aspects of a system while ignoring the irrelevant details.

  • Abstraction is used in programming to create classes and objects that represent real-world entities.

  • For example, a car object can have properties like make, model, and ...read more

Q31. Who is CEO of TCS?

Ans.

Rajesh Gopinathan is the CEO of TCS.

  • Rajesh Gopinathan took over as CEO of TCS in 2017.

  • He has been with TCS since 2001 and has held various leadership roles.

  • Under his leadership, TCS has continued to grow and expand globally.

Q32. What do you mean by OOPS

Ans.

OOPS stands for Object-Oriented Programming System

  • OOPS is a programming paradigm that focuses on objects and their interactions

  • It allows for encapsulation, inheritance, and polymorphism

  • Encapsulation refers to the bundling of data and methods within a single unit

  • Inheritance allows for the creation of new classes based on existing ones

  • Polymorphism allows for the use of a single interface to represent multiple types of objects

Q33. What do you know about DBMS?

Ans.

DBMS stands for Database Management System. It is a software system that allows users to define, create, maintain and control access to databases.

  • DBMS is used to manage large amounts of data efficiently.

  • It provides a way to store, retrieve and manipulate data in a structured manner.

  • It ensures data integrity and security.

  • Examples of DBMS include MySQL, Oracle, SQL Server, and PostgreSQL.

Q34. What are preprocessor in C language

Ans.

Preprocessors are directives that are executed before the compilation of the program.

  • Preprocessors start with a # symbol.

  • They are used to include header files, define constants, and perform conditional compilation.

  • Examples of preprocessor directives are #include, #define, #ifdef, #ifndef, #endif.

  • Preprocessors are executed before the actual compilation of the program.

  • They are used to modify the source code before it is compiled.

Q35. What is a map ?

Ans.

A map is a visual representation of an area, showing physical features, roads, and other details.

  • A map can be used for navigation and orientation.

  • It can show geographical features such as mountains, rivers, and lakes.

  • Maps can also display man-made features such as roads, buildings, and landmarks.

  • Different types of maps include topographic, political, and weather maps.

  • Maps can be created using various tools such as GPS, satellite imagery, and cartography software.

Q36. Difference between C,C++ Describe your Projects Oops concepts

Ans.

Difference between C and C++, Projects, and OOPs concepts

  • C is a procedural language while C++ is an object-oriented language

  • C++ supports features like inheritance, polymorphism, and encapsulation

  • Projects: developed a calculator using C++, a file management system using C

  • OOPs concepts: Abstraction, Encapsulation, Inheritance, Polymorphism

Q37. What is a tree ?

Ans.

A tree is a perennial plant with a single stem or trunk, supporting branches and leaves.

  • Trees are typically tall and have a woody stem.

  • They have roots that anchor them to the ground and absorb water and nutrients.

  • Trees provide oxygen, shade, and habitat for animals.

  • Examples of trees include oak, maple, pine, and palm trees.

Q38. models in s/w development lifecycle?

Ans.

Models are used in software development lifecycle to plan, design, implement and test software.

  • Models help in visualizing the software development process

  • They provide a framework for organizing and managing the development process

  • Some popular models include Waterfall, Agile, Spiral, and V-Model

  • Each model has its own advantages and disadvantages

  • Choosing the right model depends on the project requirements and constraints

Q39. Create a simple form with HTML

Ans.

Create a simple form with HTML

  • Use the <form> tag to create the form

  • Add <input> tags for different form fields like text, email, password, etc.

  • Include a submit button using <input type='submit'>

Q40. Type conversion in python.

Ans.

Type conversion refers to the process of converting one data type to another in Python.

  • Python has built-in functions like int(), float(), str(), bool() for type conversion.

  • Type conversion can be implicit or explicit.

  • Implicit type conversion is done automatically by Python, while explicit type conversion is done using the built-in functions.

  • Examples of type conversion include converting a string to an integer using int(), or converting a float to a string using str().

Q41. Why python and it's importance

Ans.

Python is a popular high-level programming language known for its simplicity, readability, and versatility.

  • Python is easy to learn and use, making it a great language for beginners.

  • It has a large and active community, with many libraries and frameworks available for various applications.

  • Python is used in a wide range of industries, including web development, data science, artificial intelligence, and automation.

  • It is platform-independent, meaning it can run on multiple operat...read more

Q42. Difference between truncate and delete command

Ans.

Truncate is a DDL command that removes all records from a table, while delete is a DML command that removes specific records.

  • Truncate is faster than delete as it does not log individual row deletions.

  • Truncate resets the identity seed of the table, while delete does not.

  • Truncate cannot be rolled back, while delete can be rolled back using a transaction.

  • Truncate does not fire triggers, while delete does.

  • Example: TRUNCATE TABLE TableName; DELETE FROM TableName WHERE Condition;

Q43. software development lifecycle?

Ans.

Software development lifecycle is a process of designing, developing, testing, and deploying software.

  • It includes phases like planning, analysis, design, implementation, testing, and maintenance.

  • Each phase has its own set of activities and deliverables.

  • The goal is to ensure that the software meets the requirements and is of high quality.

  • Popular models include Waterfall, Agile, and DevOps.

  • Tools like version control, bug tracking, and continuous integration are used to support ...read more

Q44. what is inheritance?

Ans.

Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.

  • Inheritance allows for code reuse and promotes the concept of hierarchical relationships between classes.

  • The existing class is called the superclass or parent class, while the new class is called the subclass or child class.

  • The subclass inherits all the properties and methods of the superclass, and can also add its own unique properties and meth...read more

Frequently asked in, ,

Q45. Disadvantages of Python over Java.

Ans.

Python has slower execution speed and weaker type checking compared to Java.

  • Python is an interpreted language, while Java is a compiled language.

  • Python has a slower execution speed than Java due to its interpreted nature.

  • Java has stronger type checking than Python, which can lead to fewer errors.

  • Python's dynamic typing can lead to errors that are only caught at runtime.

  • Java has better support for multithreading and concurrency than Python.

  • Python's standard library is not as c...read more

Q46. what is object oriented language

Ans.

Object-oriented language is a programming language that uses objects to represent data and methods to manipulate that data.

  • Object-oriented programming focuses on objects that contain data and methods to manipulate that data.

  • It allows for encapsulation, inheritance, and polymorphism.

  • Examples of object-oriented languages include Java, C++, and Python.

Q47. types of inheritance?

Ans.

Types of inheritance include single, multiple, multilevel, hierarchical, and hybrid inheritance.

  • Single inheritance involves a class inheriting from a single base class.

  • Multiple inheritance involves a class inheriting from multiple base classes.

  • Multilevel inheritance involves a class inheriting from a derived class, which in turn inherits from another class.

  • Hierarchical inheritance involves multiple classes inheriting from a single base class.

  • Hybrid inheritance is a combinatio...read more

Q48. What is class and object?

Ans.

A class is a blueprint for creating objects, while an object is an instance of a class.

  • A class defines the properties and behaviors of objects.

  • An object is a specific instance of a class.

  • Classes can have attributes (variables) and methods (functions).

  • Objects can interact with each other by calling methods on each other.

  • Example: Class 'Car' can have attributes like 'color' and 'model', while an object 'myCar' can be an instance of the 'Car' class with specific values for color...read more

Frequently asked in, ,

Q49. Difference between clustering and grouping

Ans.

Clustering is grouping similar data points together based on their characteristics, while grouping is organizing data into categories based on predefined criteria.

  • Clustering is unsupervised learning, while grouping is typically done based on predefined rules or criteria.

  • Clustering aims to find natural groupings in data, while grouping is more about organizing data for easier analysis.

  • Example: Clustering can be used in customer segmentation to group customers with similar purc...read more

Q50. What is lambda

Ans.

Lambda is a function that can be passed as an argument or stored as a variable.

  • Lambda is an anonymous function in Python.

  • It is used for creating small, one-time use functions.

  • Lambda functions can take any number of arguments, but can only have one expression.

  • Example: lambda x: x*2 will double the input value of x.

1
2
Next
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10.4k Interviews
3.6
 • 7.6k Interviews
3.7
 • 5.6k Interviews
3.8
 • 5.6k Interviews
3.5
 • 3.8k Interviews
3.4
 • 800 Interviews
3.9
 • 364 Interviews
3.9
 • 71 Interviews
View all

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

Assistant System Engineer Trainee Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter