Premium Employer

Infosys

3.6
based on 39.2k Reviews
Filter interviews by

600+ FabHotels Interview Questions and Answers

Updated 11 Feb 2025
Popular Designations

Q1. Count Ways to Reach the N-th Stair Problem Statement

You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or two step...read more

Ans.

The problem involves determining the number of distinct ways to climb from the 0th to the Nth stair by climbing one or two steps at a time.

  • Use dynamic programming to solve this problem efficiently.

  • Define a recursive function to calculate the number of ways to reach each stair based on the number of ways to reach the previous two stairs.

  • Consider base cases for 0th and 1st stair.

  • Keep track of the number of ways modulo 10^9+7 to avoid overflow issues.

View 4 more answers

Q2. Maximum Subarray Sum Problem Statement

Given an array arr of length N consisting of integers, find the sum of the subarray (including empty subarray) with the maximum sum among all subarrays.

Explanation:

A sub...read more

Ans.

Find the sum of the subarray with the maximum sum among all subarrays in an array of integers.

  • Iterate through the array and keep track of the maximum sum subarray encountered so far.

  • Use Kadane's algorithm to efficiently find the maximum subarray sum.

  • Consider the sum of an empty subarray as 0.

View 5 more answers

Q3. Distinct Strings With Odd and Even Swapping Allowed Problem Statement

You are provided with an array of strings, and your objective is to determine the number of unique strings within it.

A string is deemed uni...read more

Ans.

Count the number of unique strings in an array by allowing swapping of characters at odd and even indices.

  • Iterate through each string in the array and check if it can be transformed into another string by swapping characters at odd and even indices.

  • Keep track of unique strings using a set data structure.

  • Return the size of the set as the number of unique strings.

View 2 more answers

Q4. Valid Parenthesis Problem Statement

Given a string str composed solely of the characters "{", "}", "(", ")", "[", and "]", determine whether the parentheses are balanced.

Input:

The first line contains an integ...read more
Add your answer
Discover FabHotels interview dos and don'ts from real experiences

Q5. Khaled has an array A of N elements. It is guaranteed that N is even. He wants to choose at most N/2 elements from array A. It is not necessary to choose consecutive elements. Khaled is interested in XOR of all...

read more
Ans.

Choose at most N/2 elements from an array A of N elements and find XOR of all the chosen elements.

  • Choose the N/2 largest elements to maximize the XOR value.

  • Use a priority queue to efficiently select the largest elements.

  • If N is small, brute force all possible combinations of N/2 elements.

View 1 answer

Q6. Pair Sum Problem Statement

You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.

Note:

Each pa...read more

Ans.

Find pairs of elements in an array that sum up to a given value, sorted in a specific order.

  • Iterate through the array and for each element, check if the complement (S - current element) exists in a hash set.

  • If the complement exists, add the pair to the result list.

  • Sort the result list based on the criteria mentioned in the question.

  • Return the sorted list of pairs.

View 2 more answers
Are these interview questions helpful?

Q7. What are oops concepts?

Ans.

OOPs concepts are the fundamental principles of Object-Oriented Programming.

  • Encapsulation: Binding data and functions together in a single unit.

  • Inheritance: Acquiring properties and behavior of a parent class by a child class.

  • Polymorphism: Ability of an object to take many forms.

  • Abstraction: Hiding the implementation details and showing only the necessary information.

  • Example: A car is an object that encapsulates data like speed, fuel, and functions like start, stop, and accel...read more

View 18 more answers

Q8. Print All Subsets Challenge

Given an array arr containing 'N' distinct integers, your task is to generate all possible non-empty subsets of this array.

Note: While the elements within each subset should be in i...read more

Ans.

Generate all possible non-empty subsets of an array of distinct integers.

  • Use recursion to generate subsets by including or excluding each element in the array.

  • Maintain a current subset and add it to the result when reaching the end of the array.

  • Ensure elements within each subset are in increasing order.

  • Handle the input and output format as specified in the question.

  • Consider edge cases like empty array or array with only one element.

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Quick Sort Problem Statement

You are provided with an array of integers. The task is to sort the array in ascending order using the quick sort algorithm.

Quick sort is a divide-and-conquer algorithm. It involve...read more

Ans.

To achieve NlogN complexity in the worst case, we can implement the randomized version of quicksort algorithm.

  • Randomly select a pivot element to reduce the chances of worst-case scenarios.

  • Implement a hybrid sorting algorithm like Introsort which switches to heap sort when the recursion depth exceeds a certain limit.

  • Use median-of-three partitioning to select a good pivot element for better performance.

  • Optimize the algorithm by using insertion sort for small subarrays to reduce...read more

Add your answer

Q10. Trie Implementation Task

Create a Trie data structure supporting two operations: inserting words and checking their presence. A Trie organizes data like a tree structure, where each node stores letters of words...read more

Ans.

Implement a Trie data structure supporting insertion and search operations for words.

  • Create a TrieNode class with a dictionary to store children nodes.

  • Implement insert(word) by iterating through each character of the word and creating nodes if necessary.

  • Implement search(word) by traversing the Trie and checking for the presence of the word.

  • Use a boolean flag in TrieNode to mark the end of a word.

  • Handle Type 1 and Type 2 queries accordingly in the main program.

Add your answer

Q11. Ninja And Divisible Array Problem Statement

Ninja is tasked with dividing an array ARR of even size N and an integer K into N/2 pairs such that the sum of each pair is divisible by K.

Your goal is to determine ...read more

Add your answer

Q12. Group Anagrams Problem Statement

Given an array or list of strings called inputStr, your task is to return the strings grouped as anagrams. Each group should contain strings that are anagrams of one another.

An...read more

Add your answer

Q13. Merge Sort Linked List Problem Statement

You are given a singly linked list of integers. Your task is to sort the linked list using the merge sort algorithm.

Explanation:

Merge Sort is a divide and conquer algo...read more

Ans.

Implement the merge sort algorithm to sort a singly linked list of integers.

  • Divide the linked list into two halves recursively

  • Merge the sorted halves using the merge() function

  • Implement the merge() function to merge two sorted subarrays

  • Ensure the constraints are met for input elements

  • Return the sorted linked list for each test case

Add your answer

Q14. String Compression Problem Statement

Ninja needs to perform basic string compression. For any character that repeats consecutively more than once, replace the repeated sequence with the character followed by th...read more

Ans.

Implement a function to compress a string by replacing consecutive characters with the character followed by the count of repetitions.

  • Iterate through the input string and keep track of consecutive characters and their counts

  • Replace consecutive characters with the character followed by the count of repetitions if count is greater than 1

  • Return the compressed string

Add your answer

Q15. Number of Islands Problem Statement

Given a non-empty grid of 0s and 1s, determine the number of distinct islands. An island is a collection of '1's (land) connected horizontally, vertically, or diagonally. It ...read more

Ans.

The task is to determine the number of distinct islands in a grid of 0s and 1s connected horizontally, vertically, or diagonally.

  • Iterate through the grid and for each '1' encountered, perform a depth-first search to mark all connected '1's as visited.

  • Use a set to store the unique shapes of islands encountered during the traversal.

  • Return the size of the set as the total number of distinct islands in the grid.

Add your answer
Q16. What is the difference between INNER JOIN and OUTER JOIN in database management systems?
Ans.

INNER JOIN returns only the matching rows between two tables, while OUTER JOIN returns all rows from one table and matching rows from the other.

  • INNER JOIN is used to retrieve rows from both tables that have matching values based on a specified condition.

  • OUTER JOIN is used to retrieve all rows from one table and only matching rows from the other table.

  • Types of OUTER JOIN include LEFT JOIN, RIGHT JOIN, and FULL JOIN.

  • Example: INNER JOIN would return a list of students who have r...read more

Add your answer
Q17. What are the integrity rules in a Database Management System (DBMS)?
Ans.

Integrity rules in a DBMS ensure data accuracy, consistency, and reliability.

  • Constraints like primary key, foreign key, unique key enforce data integrity

  • Referential integrity ensures relationships between tables are maintained

  • Entity integrity ensures each row has a unique identifier

  • Domain integrity enforces valid data types and values

  • Check constraints validate data before insertion or update

Add your answer

Q18. Generate All Parentheses Combinations

Given an integer N, your task is to create all possible valid parentheses configurations that are well-formed using N pairs. A sequence of parentheses is considered well-fo...read more

Ans.

Generate all valid parentheses combinations for a given number of pairs.

  • Use backtracking to generate all possible combinations of parentheses.

  • Keep track of the number of open and close parentheses used.

  • Add '(' if there are remaining open parentheses, and add ')' if there are remaining close parentheses.

  • Stop when the length of the generated string is equal to 2*N.

Add your answer
Q19. What is the difference between a constructor and a method in Object-Oriented Programming?
Ans.

Constructor is a special method used to initialize an object, while a method is a function that performs a specific task within a class.

  • Constructors are called automatically when an object is created, while methods need to be called explicitly.

  • Constructors have the same name as the class, while methods have unique names.

  • Constructors do not have a return type, while methods can have a return type.

  • Example: Constructor - public ClassName() { // initialization code }, Method - pu...read more

Add your answer

Q20. What is SQL? Explain in detail.

Ans.

SQL is a programming language used to manage and manipulate relational databases.

  • SQL stands for Structured Query Language.

  • It is used to create, modify, and query databases.

  • SQL is used in various industries such as finance, healthcare, and e-commerce.

  • Examples of SQL commands include SELECT, INSERT, UPDATE, and DELETE.

  • SQL is used to retrieve specific data from a database using queries.

View 3 more answers
Q21. What is meant by multitasking and multithreading in operating systems?
Ans.

Multitasking refers to the ability of an operating system to run multiple tasks concurrently, while multithreading involves executing multiple threads within a single process.

  • Multitasking allows multiple programs to run simultaneously on a single processor, switching between them quickly.

  • Multithreading enables a single program to perform multiple tasks concurrently by dividing it into smaller threads that can be executed independently.

  • Multitasking is at the process level, whi...read more

Add your answer

Q22. How to select a record from a table?

Ans.

To select a record from a table, use the SELECT statement with appropriate conditions.

  • Use the SELECT statement with the appropriate columns to retrieve data from the table.

  • Specify the table name in the FROM clause.

  • Use the WHERE clause to specify the conditions for selecting the record.

  • Example: SELECT * FROM table_name WHERE column_name = 'value';

Add your answer

Q23. What are OOP concepts? Tell me about the pillars of Object Oriented Programming.

Ans.

OOP concepts are the building blocks of Object Oriented Programming. The four pillars of OOP are Abstraction, Encapsulation, Inheritance, and Polymorphism.

  • Abstraction: Hiding implementation details and showing only necessary information to the user.

  • Encapsulation: Binding data and functions together to protect data from outside interference.

  • Inheritance: Creating new classes from existing ones, inheriting properties and methods.

  • Polymorphism: Ability of objects to take on multip...read more

Add your answer

Q24. What do you mean by SDLC?

Ans.

SDLC stands for Software Development Life Cycle.

  • SDLC is a process used by software development teams to design, develop, and test high-quality software.

  • It consists of several phases including planning, analysis, design, implementation, testing, and maintenance.

  • Each phase has its own set of activities and deliverables that must be completed before moving on to the next phase.

  • SDLC helps ensure that software is developed efficiently, on time, and within budget.

  • Examples of SDLC m...read more

View 1 answer
Q25. What is the relationship between a train's speed when passing through a platform and the relative speed of two trains?
Add your answer
Q26. What is the difference between Early Binding and Late Binding in C++?
Ans.

Early binding is resolved at compile time while late binding is resolved at runtime in C++.

  • Early binding is also known as static binding, where the function call is resolved at compile time based on the type of the object.

  • Late binding is also known as dynamic binding, where the function call is resolved at runtime based on the actual type of the object.

  • Early binding is faster as the function call is directly linked during compilation.

  • Late binding allows for more flexibility a...read more

Add your answer

Q27. Can you tell me the difference between C and C++ ?

Ans.

C is a procedural programming language while C++ is an extension of C with added features of object-oriented programming.

  • C is a procedural language, while C++ supports both procedural and object-oriented programming.

  • C++ has additional features like classes, objects, inheritance, and polymorphism.

  • C++ supports function overloading and exception handling, which are not present in C.

  • C++ has a standard template library (STL) that provides useful data structures and algorithms.

  • C++ ...read more

Add your answer
Q28. Can you explain the different languages used in Database Management Systems (DBMS)?
Ans.

Different languages used in DBMS include SQL, PL/SQL, T-SQL, and NoSQL.

  • SQL (Structured Query Language) is the standard language for relational database management systems.

  • PL/SQL (Procedural Language/SQL) is Oracle Corporation's procedural extension for SQL.

  • T-SQL (Transact-SQL) is Microsoft's proprietary extension to SQL.

  • NoSQL encompasses a wide range of database technologies that can store unstructured, semi-structured, or structured data.

Add your answer

Q29. As your major is mechanical, explain how turbine works and its parts?

Ans.

A turbine is a mechanical device that converts the energy from a fluid flow into useful work.

  • Turbines are commonly used in power generation, aviation, and marine applications.

  • They consist of several key parts including the rotor, stator, blades, and shaft.

  • The rotor is the rotating part of the turbine, while the stator is the stationary part.

  • Blades are attached to the rotor and are designed to capture the energy of the fluid flow.

  • The shaft connects the rotor to the external lo...read more

Add your answer

Q30. When we travel using busses from one place to another and there is no particular bus for this route then we have to co-ordinate timing of different busses to travel this route. We can make this process automati...

read more
Ans.

Yes, we can automate the process of coordinating timing of different busses for a particular route.

  • We can use GPS tracking to monitor the location of busses in real-time.

  • We can develop a software that can analyze the data and suggest the best route and timing for the passenger.

  • We can also use machine learning algorithms to predict the traffic and suggest the best route and timing for the passenger.

  • We can integrate this system with a mobile app that can provide real-time infor...read more

Add your answer

Q31. 1)what is constructor. 2)Difference between method overriding and overloading 3) Write a program for print prime number between two given ranges 4)What is dangling pointer

Ans.

Interview questions for System Engineer position

  • Constructor is a special method that is used to initialize an object

  • Method overriding is when a subclass provides its own implementation of a method that is already present in the parent class, while method overloading is when multiple methods have the same name but different parameters

  • Program to print prime numbers between two given ranges can be achieved using nested loops and checking for prime numbers using modulus operator

  • A...read more

Add your answer
Q32. What is the garbage collector in Java?
Ans.

Garbage collector in Java is a built-in mechanism that automatically manages memory by reclaiming unused objects.

  • Garbage collector runs in the background to identify and delete objects that are no longer needed.

  • It helps in preventing memory leaks and optimizing memory usage.

  • Examples of garbage collectors in Java include Serial, Parallel, CMS, and G1.

Add your answer

Q33. Is there any diversification going to happen in infosys from services to product development like Google?

Ans.

Yes, Infosys has already diversified into product development with offerings like Finacle and EdgeVerve.

  • Infosys has already developed products like Finacle, a banking software, and EdgeVerve, an AI-powered automation platform.

  • The company has also acquired product-based companies like Panaya and Skava.

  • Infosys has a dedicated Product Engineering Services unit that focuses on developing and maintaining software products.

  • However, services still remain the primary focus of Infosys...read more

Add your answer

Q34. You belong to mechanical domain, why do you want to switch it.

Ans.

I want to switch to system engineering as it aligns with my interests and skills.

  • I have always been interested in technology and how systems work

  • I have gained experience in programming and software development

  • I believe my skills in problem-solving and critical thinking will be valuable in system engineering

  • I am excited about the opportunity to work on complex systems and contribute to their design and development

Add your answer

Q35. Why you use Java, What are the features of java, How it is different with others?

Ans.

Java is a popular programming language known for its platform independence, object-oriented approach, and robustness.

  • Java is platform independent, meaning it can run on any platform that has a Java Virtual Machine (JVM).

  • It is object-oriented, allowing for modular and reusable code.

  • Java is known for its robustness and reliability, with features like automatic memory management and exception handling.

  • Java has a rich set of APIs and libraries, making it versatile for various app...read more

Add your answer
Q36. What is the difference between Call by Value and Call by Reference in C++?
Ans.

Call by Value passes a copy of the actual parameter, while Call by Reference passes the address of the actual parameter.

  • Call by Value: Changes made to the formal parameter inside the function do not affect the actual parameter.

  • Call by Reference: Changes made to the formal parameter inside the function affect the actual parameter.

  • Example: void swap(int a, int b) vs void swap(int &a, int &b)

Add your answer
Q37. What is the Diamond Problem in C++ and how can it be resolved?
Ans.

The Diamond Problem in C++ occurs when a class inherits from two classes that have a common base class, leading to ambiguity in method resolution.

  • Diamond Problem arises in multiple inheritance in C++ when a class inherits from two classes that have a common base class.

  • Ambiguity occurs when the derived class tries to access a method or attribute from the common base class.

  • To resolve the Diamond Problem, virtual inheritance can be used to ensure that only one instance of the co...read more

Add your answer

Q38. What are features of JAVA?

Ans.

Java is a versatile programming language known for its platform independence and rich set of features.

  • Platform independence: Java programs can run on any operating system or device with a Java Virtual Machine (JVM)

  • Object-oriented: Java supports the principles of object-oriented programming, allowing for modular and reusable code

  • Garbage collection: Java automatically manages memory allocation and deallocation, reducing the risk of memory leaks

  • Exception handling: Java provides ...read more

View 1 answer

Q39. Write a program to check a given string is palindrome or not

Ans.

A program to check if a given string is a palindrome or not.

  • A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward.

  • To check if a string is a palindrome, we can compare the characters from the beginning and end of the string.

  • If the characters match at each position, the string is a palindrome.

  • We can use two pointers, one starting from the beginning and the other from the end, and compare the characters at each position....read more

View 2 more answers

Q40. At what scale did you choose yourself in the programming language?

Ans.

I chose myself in the programming language at a small scale and gradually increased it.

  • Started with basic syntax and gradually moved to more complex concepts

  • Practiced on small projects before moving to larger ones

  • Learned from online resources and collaborated with peers

  • Continuously updated skills and learned new languages as needed

Add your answer

Q41. If there is some fest in your college and you are given the responsibility of parking 500 cars in your campus, how will you do it?

Ans.

I would create designated parking areas, implement a parking management system, and utilize efficient parking strategies.

  • Create designated parking areas based on the capacity and layout of the campus.

  • Implement a parking management system to track and manage the parking spaces.

  • Utilize efficient parking strategies such as valet parking, shuttle services, and carpooling.

  • Ensure proper signage and directions to guide the drivers to available parking spaces.

  • Coordinate with event or...read more

Add your answer
Q42. What is thrashing in operating systems?
Ans.

Thrashing in operating systems occurs when a system is spending more time swapping data between memory and disk than actually executing tasks.

  • Occurs when the system is overwhelmed with too many processes competing for limited resources

  • Results in a decrease in system performance as the CPU is constantly switching between processes

  • Can be alleviated by optimizing resource allocation and reducing the number of active processes

  • Example: A system running multiple memory-intensive ap...read more

Add your answer

Q43. How data structures and variables are managed in memory in Python?

Ans.

Python manages data structures and variables using dynamic memory allocation.

  • Python uses a heap to manage memory allocation for data structures and variables.

  • Variables are created dynamically and stored in memory as objects.

  • Python uses reference counting to keep track of the number of references to an object.

  • Garbage collection is used to reclaim memory for objects that are no longer referenced.

  • Examples of data structures in Python include lists, tuples, dictionaries, and sets...read more

View 1 answer

Q44. What are the different types of loops used in C++?

Ans.

C++ has 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 at least once before checking the condition.

View 1 answer

Q45. What you know about Machine and its function?

Ans.

A machine is a device that performs a specific task using power and mechanisms.

  • Machines can be simple or complex, ranging from a simple lever to a complex computer.

  • Machines use energy to perform work, such as lifting, moving, or transforming materials.

  • Examples of machines include cars, airplanes, washing machines, and robots.

  • Machines can be classified into six types: lever, pulley, wheel and axle, inclined plane, wedge, and screw.

Add your answer
Q46. What are the various types of constructors in Object-Oriented Programming?
Ans.

Types of constructors in OOP include default, parameterized, copy, and static constructors.

  • Default constructor: Constructor with no parameters.

  • Parameterized constructor: Constructor with parameters to initialize object properties.

  • Copy constructor: Constructor that creates a new object as a copy of an existing object.

  • Static constructor: Constructor used to initialize static data members of a class.

Add your answer
Q47. What are the limitations of inheritance in object-oriented programming?
Ans.

Limitations of inheritance in OOP include tight coupling, lack of flexibility, and potential for creating deep class hierarchies.

  • Tight coupling: Subclasses are tightly bound to their superclasses, making it difficult to make changes without affecting other classes.

  • Lack of flexibility: Subclasses inherit all attributes and methods from their superclasses, limiting the ability to customize behavior.

  • Deep class hierarchies: Inheritance can lead to deep class hierarchies with mult...read more

Add your answer
Q48. What is meant by normalization and denormalization?
Ans.

Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity. Denormalization is the opposite process.

  • Normalization involves breaking down data into smaller, more manageable tables to reduce redundancy and dependency.

  • Denormalization involves combining tables to improve query performance by reducing the number of joins needed.

  • Normalization helps maintain data integrity by reducing the risk of anomalies such as update, insert, an...read more

Add your answer

Q49. A task of parking is given, how will you go forward with it?

Ans.

I would analyze the requirements and constraints of the parking task and devise a plan accordingly.

  • Understand the size and type of vehicles that need to be parked

  • Analyze the available space and layout of the parking area

  • Consider any regulations or restrictions on parking

  • Determine the optimal parking arrangement for maximum efficiency

  • Implement a system for monitoring and managing the parking area

Add your answer

Q50. What is difference between procedural programming language and object oriented programming language ?

Ans.

Procedural programming focuses on procedures and functions while object-oriented programming focuses on objects and classes.

  • Procedural programming is based on top-down approach while object-oriented programming is based on bottom-up approach.

  • Procedural programming is more suitable for small programs while object-oriented programming is more suitable for large programs.

  • Procedural programming is less secure while object-oriented programming is more secure.

  • Examples of procedural...read more

Add your answer

Q51. You have to take responsibility of the parking section of an event which has 500 cars. How will you manage the task given to you?

Ans.

I will manage the parking section of the event by implementing a systematic approach and utilizing technology.

  • Create a parking plan and layout to efficiently accommodate 500 cars.

  • Assign dedicated parking spots for VIPs, disabled individuals, and event staff.

  • Implement a ticketing system or RFID technology to track and manage parking spaces.

  • Deploy parking attendants to guide drivers and ensure smooth traffic flow.

  • Utilize digital signage or mobile apps to provide real-time parki...read more

Add your answer

Q52. Explain about basic gating logic 'And' 'Or' 'Nand' 'Nor'? How to build Nand from other gates?

Ans.

Basic gating logic includes And, Or, Nand, and Nor gates. Nand gate can be built using other gates.

  • And gate outputs true only when all inputs are true.

  • Or gate outputs true when at least one input is true.

  • Nand gate outputs the negation of the And gate.

  • Nor gate outputs the negation of the Or gate.

  • Nand gate can be built by combining an And gate followed by a Not gate.

View 1 answer

Q53. As I am Non CS, why are you switching from Non IT to IT Industry?

Ans.

I am passionate about technology and have always been interested in IT. I believe my skills and experience can be better utilized in the IT industry.

  • I have always had a strong interest in technology and IT

  • I enjoy problem-solving and working with computers

  • I believe my skills and experience align well with the demands of the IT industry

Add your answer
Q54. Explain the difference between the DELETE and TRUNCATE commands in a DBMS.
Ans.

DELETE removes specific rows from a table, while TRUNCATE removes all rows and resets auto-increment values.

  • DELETE is a DML command, while TRUNCATE is a DDL command.

  • DELETE can be rolled back, while TRUNCATE cannot be rolled back.

  • DELETE triggers ON DELETE triggers, while TRUNCATE does not trigger any triggers.

  • DELETE is slower as it maintains logs, while TRUNCATE is faster as it does not maintain logs.

Add your answer

Q55. How can you ease human life using machine learning or any other technology?

Ans.

Machine learning can ease human life by automating tasks, improving healthcare, and enhancing personalization.

  • Automating repetitive tasks can save time and increase efficiency

  • Machine learning can improve healthcare by predicting diseases and identifying effective treatments

  • Personalization can be enhanced through recommendation systems and targeted advertising

  • Natural language processing can improve communication and accessibility for individuals with disabilities

Add your answer

Q56. Which language do you use in programming?

Ans.

I primarily use Python for programming.

  • Python is versatile and easy to read, making it great for system engineering tasks.

  • I also have experience with languages like Java, C++, and Bash scripting.

  • Python's extensive libraries and frameworks make it ideal for automation and scripting tasks.

View 1 answer

Q57. What is call by reference and why is it different from call by value?

Ans.

Call by reference passes the memory address of a variable, while call by value passes a copy of the variable's value.

  • Call by reference allows the function to modify the original variable

  • Call by value does not affect the original variable

  • Example: int x = 5; function(x); //call by reference modifies x

  • Example: int y = 10; function(y); //call by value does not modify y

Add your answer

Q58. What is DBMS.Difference between drop , delete and truncate in dbms

Ans.

Drop, delete and truncate are SQL commands used to remove data from a database.

  • DROP command removes a table from the database

  • DELETE command removes specific rows from a table

  • TRUNCATE command removes all rows from a table

  • DROP and TRUNCATE are DDL commands while DELETE is a DML command

  • DROP and TRUNCATE cannot be rolled back while DELETE can be rolled back

Add your answer

Q59. Which is your favorite language? (c, c++,Java) how you will rate them out of 10?

Ans.

My favorite language is Java and I would rate it 9 out of 10.

  • I prefer Java because of its platform independence and vast community support.

  • C and C++ are also good languages but require more attention to memory management.

  • Java's object-oriented approach and extensive libraries make it a versatile language.

  • Example: I have developed a web application using Java Spring framework.

  • Example: I have also worked on C++ projects for embedded systems.

View 1 answer

Q60. What is exception Handling? And what is try, catch and throw?

Ans.

Exception handling is a way to handle errors and unexpected events in a program.

  • Try block contains the code that might throw an exception

  • Catch block catches the exception thrown by the try block

  • Throw keyword is used to explicitly throw an exception

  • Exception handling helps in preventing program crashes and provides a way to gracefully handle errors

  • Example: try { //code that might throw an exception } catch (Exception e) { //code to handle the exception }

Add your answer

Q61. What software you can make from c language?

Ans.

C language can be used to develop various software applications.

  • Operating systems like Unix, Linux, and Windows are written in C

  • Database systems like MySQL and PostgreSQL are written in C

  • Networking protocols like TCP/IP are implemented in C

  • Graphics and game engines like OpenGL and Unity are written in C

  • System utilities like compilers, debuggers, and interpreters are written in C

View 1 answer

Q62. Explain Oop concepts with examples ,what is static variable, conditions operator, arithmetic operator

Ans.

OOP concepts include encapsulation, inheritance, polymorphism, and abstraction. Static variables are shared among all instances of a class.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit (class)

  • Inheritance: Allowing a class to inherit properties and behavior from another class

  • Polymorphism: Ability for objects to be treated as instances of their parent class

  • Abstraction: Hiding the implementation details and showing only the necessary featur...read more

Add your answer

Q63. 1) Tell me about yourself 2) Different types Databases 3) Components Of web app 4) Program life cycle of CPP

Ans.

Interview questions for System Engineer

  • Different types of databases include relational, NoSQL, graph, and document

  • Components of a web app include client-side scripting, server-side scripting, and database technology

  • Program life cycle of CPP includes editing, preprocessing, compiling, linking, and executing

Add your answer

Q64. What are the data structures you know and diff between tree and graph.

Ans.

Data structures: trees and graphs. Difference between them.

  • Trees are a type of graph with a hierarchical structure

  • Graphs are a collection of nodes and edges that can be connected in any way

  • Trees have a single root node and each node has at most one parent

  • Graphs can have multiple disconnected components

  • Trees are used for hierarchical data like file systems, organization charts

  • Graphs are used for modeling relationships between objects like social networks, road networks

Add your answer

Q65. Which programming languages you are familiar with?

Ans.

I am familiar with multiple programming languages.

  • I am proficient in Java and Python.

  • I have experience with C++, JavaScript, and SQL.

  • I am also familiar with HTML and CSS for web development.

  • I am constantly learning and expanding my knowledge of new languages and technologies.

Add your answer

Q66. 1)Explain project 2)what is constructor 3)what multiple inheritance 4) what is access modifier

Ans.

Interview questions for System Engineer position

  • Project is a temporary endeavor to create a unique product or service

  • Constructor is a special method used to initialize objects

  • Multiple inheritance is the ability of a class to inherit properties and behavior from multiple parent classes

  • Access modifier is a keyword that determines the visibility and accessibility of a class, method, or variable

View 1 answer
Q67. Explain the difference between a dangling pointer and a void pointer.
Ans.

Dangling pointer points to memory that has been deallocated, while void pointer is a pointer that has no specific data type.

  • Dangling pointer occurs when a pointer points to memory that has been freed or deleted.

  • Void pointer is a pointer that can point to any data type.

  • Example: int *ptr = NULL; ptr = malloc(sizeof(int)); free(ptr); // ptr is now a dangling pointer

  • Example: void *ptr; int num = 10; ptr = # // ptr is a void pointer pointing to an integer

Add your answer

Q68. Give the logic to write a program to find all the prime numbers between any two given numbers.

Ans.

Program to find all prime numbers between two given numbers.

  • Take input of two numbers from user

  • Loop through the range of numbers between the two given numbers

  • Check if each number is prime or not

  • Print all the prime numbers found

View 1 answer

Q69. Why can't I use an assignment in an expression?

Ans.

Assignments do not return a value and cannot be used in expressions.

  • Assignments are used to store a value in a variable, but they do not return a value that can be used in an expression.

  • Expressions are used to evaluate a value, but an assignment does not evaluate to a value.

  • For example, you cannot use an assignment in a conditional statement like if(x = 5), as it will always evaluate to true.

View 1 answer

Q70. What is truncate and delete command?

Ans.

Truncate and delete are SQL commands used to remove data from a table.

  • Truncate removes all data from a table and resets the identity column

  • Delete removes specific rows from a table based on a condition

  • Truncate is faster than delete as it doesn't log individual row deletions

  • Delete can be rolled back, but truncate cannot

  • Example: TRUNCATE TABLE myTable; DELETE FROM myTable WHERE id = 1;

View 1 answer

Q71. What is the difference between do-while, while, for loop?

Ans.

do-while, while, and for loops are used for iteration in programming, but differ in their syntax and conditions.

  • while loop checks the condition before executing the code block

  • do-while loop executes the code block once before checking the condition

  • for loop is used for iterating over a sequence of values

  • for loop has three parts: initialization, condition, and increment/decrement

  • Example: while(i < 10){...}, do{...}while(i < 10), for(i=0; i<10; i++){...}

Add your answer

Q72. What is Oops and Explain the Four Pillars?

Ans.

Oops stands for Object-Oriented Programming System. The four pillars are Inheritance, Encapsulation, Abstraction, and Polymorphism.

  • Oops stands for Object-Oriented Programming System

  • The four pillars are Inheritance, Encapsulation, Abstraction, and Polymorphism

  • Inheritance allows a class to inherit properties and behavior from another class

  • Encapsulation refers to the bundling of data with the methods that operate on that data

  • Abstraction focuses on hiding the implementation detai...read more

Add your answer

Q73. Technical questions:1)difference between definition and initialization.2)what is recursion function

Ans.

Answering technical questions on definition, initialization, and recursion function.

  • Definition is the act of declaring a variable, while initialization is the act of assigning a value to that variable.

  • Recursion function is a function that calls itself until a base condition is met.

  • Example of definition: int x;

  • Example of initialization: int x = 5;

  • Example of recursion function: int factorial(int n) { if (n == 0) return 1; else return n * factorial(n-1); }

Add your answer

Q74. Any Situation : Ex: One small island,only one person,island is full of dry grass and it is firing,then how he will escape

Ans.

The person can escape the island by creating a firebreak or finding a body of water.

  • Create a firebreak by clearing a path of grass around oneself to prevent the fire from spreading.

  • Look for a body of water such as a lake, river, or ocean to escape the fire.

  • If no water source is available, try to find a sheltered area with less dry grass to wait for the fire to pass.

  • Use any available tools or materials to help create a firebreak or signal for help.

Add your answer

Q75. Differentiate between C++ and Java? What are programming principles and pointers

Ans.

C++ is a compiled language with pointers, while Java is interpreted with garbage collection.

  • C++ is faster and more efficient than Java due to its compiled nature.

  • Java is more secure and portable than C++ due to its interpreted nature.

  • C++ uses pointers to directly access memory, while Java uses references to objects.

  • Programming principles include encapsulation, inheritance, and polymorphism.

  • Pointers are variables that store memory addresses, used for direct memory access and m...read more

Add your answer

Q76. One of the pseudocodes that came was this: #include int main() { int a = 100; printf("%0 %x", a); } Find the output.

Ans.

This question tests the candidate's knowledge of C programming language and output formatting.

  • The code initializes an integer variable 'a' with value 100.

  • The printf statement uses two format specifiers: '%0' and '%x'.

  • The '%0' specifier is invalid and will not print anything.

  • The '%x' specifier prints the value of 'a' in hexadecimal format.

  • The output will be '64' in hexadecimal format.

Add your answer

Q77. What is control structures? What is loops? What is for loop?

Ans.

Control structures are used to control the flow of a program. Loops are a type of control structure that allow for repeated execution of code.

  • Control structures are used to make decisions and control the flow of a program.

  • Loops are a type of control structure that allow for repeated execution of code.

  • A for loop is a type of loop that is used to iterate over a sequence of values.

  • For example, a for loop can be used to iterate over the elements of an array or the characters in a...read more

Add your answer

Q78. Write a program for prime numbers and what DML and DDL comments

Ans.

Program to find prime numbers with DML and DDL comments

  • Create a program that checks if a number is prime or not

  • Use a loop to iterate through numbers and check for divisibility

  • Add DML comments to explain the logic of the code

  • Add DDL comments to describe the structure of the program

Add your answer

Q79. What is polymorphism. What are spring annotations. What functions are used in web services. How hashmap works.

Ans.

Polymorphism is the ability of an object to take on many forms. Spring annotations are used to simplify the configuration of Spring applications. Web services use functions like GET, POST, PUT, and DELETE. Hashmap is a data structure that stores key-value pairs.

  • Polymorphism allows objects to be treated as instances of their own class or as instances of their parent class.

  • Spring annotations are used to define the behavior of Spring components and simplify the configuration pro...read more

Add your answer

Q80. What coding language do you know?

Ans.

I know multiple coding languages including Java, Python, and C++.

  • Java

  • Python

  • C++

View 1 answer

Q81. 6) what are different data types, Variables. For loop, While loop.

Ans.

Data types include integers, floats, strings, and booleans. Variables store data. For loops iterate a set number of times. While loops iterate until a condition is met.

  • Data types include int, float, string, and bool

  • Variables store data and can be assigned values

  • For loops iterate a set number of times based on a range or sequence

  • While loops iterate until a condition is met

  • Example: int x = 5; float y = 3.14; string name = 'John'; bool isTrue = true;

Add your answer

Q82. OOPS concepts. What is are the different access modifiers with examples? Explain your project. And more, I don't remember rest.

Ans.

Access modifiers in OOPS and project explanation

  • Access modifiers control the visibility of class members

  • Public: accessible from anywhere

  • Private: accessible only within the class

  • Protected: accessible within the class and its subclasses

  • Project: accessible within the same package

  • Example: public class Car { private int speed; protected String model; }

  • My project involved developing a web application for managing inventory

  • Used Java, Spring framework, and MySQL database

  • Implemented C...read more

Add your answer

Q83. What is Exception handling and difference between throw and throws keyword

Ans.

Exception handling is a mechanism to handle runtime errors. throw is used to throw an exception while throws is used to declare an exception.

  • Exception handling is used to handle runtime errors and prevent the program from crashing.

  • throw keyword is used to throw an exception explicitly.

  • throws keyword is used to declare an exception that can be thrown by a method.

  • throw keyword is used inside a method while throws keyword is used in the method signature.

  • Example: public void meth...read more

Add your answer

Q84. What is oops? What is polymorphism? and types. What is Abstraction ? explain SDLC? What is DBMS? diff b/w truncate, delete and drop. What is Join? types And general HR questions

Ans.

Answers to technical and HR questions for System Engineer interview

  • OOPs stands for Object-Oriented Programming which is a programming paradigm based on the concept of objects

  • Polymorphism is the ability of an object to take on many forms. There are two types of polymorphism: compile-time and runtime

  • Abstraction is the process of hiding implementation details while showing only the necessary information to the user

  • SDLC stands for Software Development Life Cycle which is a proces...read more

View 1 answer

Q85. what do you think of data science and its future

Ans.

Data science is a rapidly growing field that uses algorithms and techniques to extract insights and knowledge from data.

  • Data science involves analyzing large amounts of data to uncover patterns, trends, and insights.

  • It plays a crucial role in decision-making processes for businesses, governments, and organizations.

  • Data science uses a combination of statistics, machine learning, and programming to make sense of complex data sets.

  • The future of data science looks promising with ...read more

Add your answer

Q86. What is database Types of database Breaks What is array Oops concepts Inheritance Polymorphism etc

Ans.

A database is a collection of data that is organized in a way that allows for easy retrieval and manipulation.

  • Types of databases include relational, NoSQL, object-oriented, and graph databases.

  • Arrays are a data structure that stores a collection of elements of the same type.

  • Object-oriented programming concepts include inheritance, polymorphism, and encapsulation.

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

  • Polymorphism allows for the use of a s...read more

Add your answer

Q87. What is the SQL query to retrieve the person with the highest salary?

Ans.

Use SQL query with MAX function to retrieve person with highest salary.

  • Use SELECT statement to retrieve data

  • Use MAX function to find the highest salary

  • Use WHERE clause to filter out the person with highest salary

Add your answer

Q88. How to copy files from 1 folder to other

Ans.

To copy files from one folder to another, use the copy command in the command prompt or drag and drop the files.

  • Open the source folder and the destination folder in separate windows

  • Select the files you want to copy in the source folder

  • Right-click on the selected files and click on 'Copy' or use the 'Ctrl+C' shortcut

  • Go to the destination folder and right-click on an empty space

  • Click on 'Paste' or use the 'Ctrl+V' shortcut

  • Alternatively, open the command prompt and use the 'copy...read more

Add your answer

Q89. 3)Do you know about programming languages and which language you use recently and why?

Ans.

Yes, I am familiar with programming languages and have recently used Python for its versatility and ease of use.

  • I have experience with Python, Java, C++, and SQL

  • Python is my recent choice due to its readability, flexibility, and vast libraries

  • I have used Python for data analysis, automation, and web development projects

Add your answer

Q90. 1.what is java 2.why platform independent 3.what is jvm ,jdk and jre 4.do we require jvm or jre to run java code or both we required 5.what is java.lang 6.libraries 7.what is dbms ,rdbm and its example 8.what i...

read more
Ans.

Java is a high-level, object-oriented programming language used for developing applications and software.

  • Java is platform-independent due to its bytecode and JVM.

  • JVM, JDK, and JRE are essential components of Java.

  • JVM is responsible for executing Java bytecode.

  • JDK is a software development kit used for developing Java applications.

  • JRE is a runtime environment required to run Java applications.

  • java.lang is a package that contains fundamental classes and interfaces.

  • Libraries in ...read more

Add your answer

Q91. What is data base and their types why we use db jions conditions

Ans.

A database is a collection of organized data that can be easily accessed, managed, and updated. There are different types of databases such as relational, NoSQL, and object-oriented databases.

  • Types of databases include relational databases (e.g. MySQL, Oracle), NoSQL databases (e.g. MongoDB, Cassandra), and object-oriented databases (e.g. db4o).

  • We use database joins to combine rows from two or more tables based on a related column between them.

  • Database joins help in retrievin...read more

Add your answer

Q92. What are the difference between multiple web servers?

Ans.

Multiple web servers differ in their hardware, software, and configuration.

  • Hardware differences include CPU, RAM, and storage capacity.

  • Software differences include operating system, web server software, and scripting languages.

  • Configuration differences include load balancing, caching, and security settings.

  • Examples of web servers include Apache, Nginx, and IIS.

Add your answer

Q93. What is difference between inner join and outer join?

Ans.

Inner join returns only the matching rows from both tables while outer join returns all rows from both tables.

  • Inner join only returns the rows that have matching values in both tables.

  • Outer join returns all rows from both tables, even if there are no matching values.

  • Left outer join returns all rows from the left table and matching rows from the right table.

  • Right outer join returns all rows from the right table and matching rows from the left table.

  • Full outer join returns all ...read more

Add your answer

Q94. Is Python language a case sensitive?

Ans.

Yes, Python is a case sensitive language.

  • Variable names 'myVar' and 'myvar' are different in Python.

  • Keywords like 'if', 'else', 'while' are case sensitive.

  • Function names and method names are also case sensitive.

View 1 answer
Q95. How do you delete a table in SQL?
Ans.

To delete a table in SQL, you can use the DROP TABLE statement.

  • Use the DROP TABLE statement followed by the table name to delete the table.

  • Make sure to backup any important data in the table before deleting it.

  • Ensure that you have the necessary permissions to delete the table.

Add your answer

Q96. what is recursion ? what is inheritance? what is heap? write a code to find the largest element in an array?

Ans.

Recursion is a process in which a function calls itself. Inheritance is a mechanism in OOP where a class inherits properties of another class. Heap is a region of memory used for dynamic memory allocation.

  • Recursion can be used to solve problems that can be broken down into smaller sub-problems.

  • Inheritance allows for code reuse and helps in creating a hierarchy of classes.

  • Heap is used for dynamic memory allocation in languages like C and C++.

  • Code to find largest element in an ...read more

Add your answer

Q97. What are the difference between method overloading and method overriding

Ans.

Method overloading is having multiple methods in the same class 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 the superclass.

  • Method overloading involves multiple methods with the same name but different parameters in the same class.

  • Method overriding involves a method in a subclass with the same name and parameters as a method in the superclass.

  • Method overloading is determined at...read more

Add your answer

Q98. Tell me about yourself What is string builder What is oops What do you mean by exception handling Write a code to remove duplicate in hello word

Ans.

Interview questions for System Engineer position

  • String builder is a class in Java that allows you to build strings dynamically

  • OOPS stands for Object-Oriented Programming System and is a programming paradigm

  • Exception handling is a mechanism to handle runtime errors in a program

  • Code to remove duplicates in hello world: String str = "hello world"; str = new LinkedHashSet<>(Arrays.asList(str.split(""))).stream().collect(Collectors.joining());

Add your answer

Q99. Which were the projects I have implemented , how this is useful in real world!?

Ans.

I have implemented various projects including X, Y, and Z which have real-world applications.

  • Project X involved developing a system for automating inventory management, which has helped the company save time and reduce errors.

  • Project Y was focused on improving the efficiency of the production line by implementing predictive maintenance, resulting in a significant reduction in downtime.

  • Project Z was aimed at enhancing the security of the company's network by implementing multi...read more

Add your answer

Q100. 4 PILLARS OF OOPS DIFF BETWEEN C AND CPP REVERSE A STRING DBMS BASIC QUESTIONS

Ans.

The 4 pillars of OOPS are encapsulation, inheritance, polymorphism, and abstraction.

  • Encapsulation: bundling of data and methods into a single unit

  • Inheritance: ability of a class to inherit properties and methods from another class

  • Polymorphism: ability of an object to take on many forms

  • Abstraction: hiding unnecessary details and providing only essential information

Add your answer
1
2
3
4
5
6
7
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at FabHotels

based on 704 interviews
5 Interview rounds
Aptitude Test Round
Technical Round - 1
Technical Round - 2
Personal Interview1 Round - 1
Personal Interview1 Round - 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top System Engineer Interview Questions from Similar Companies

3.7
 • 640 Interview Questions
3.7
 • 37 Interview Questions
4.1
 • 19 Interview Questions
3.8
 • 11 Interview Questions
3.6
 • 10 Interview Questions
View all
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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

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