Premium Employer

Infosys

3.6
based on 38.2k Reviews
Filter interviews by

100+ Force Motors Interview Questions and Answers

Updated 7 Jan 2025
Popular Designations

Q101. How to improve work knowledge

Ans.

Continuous learning through reading, courses, workshops, and hands-on experience.

  • Read books, articles, and research papers related to your field.

  • Take online courses or attend workshops to learn new technologies and skills.

  • Participate in hackathons or side projects to gain hands-on experience.

  • Seek mentorship from experienced professionals in the industry.

  • Attend conferences and networking events to stay updated on industry trends.

Add your answer

Q102. Intersection point of 2 linked lists

Ans.

Intersection point of 2 linked lists can be found by comparing the lengths and adjusting the starting points.

  • Traverse both lists to find their lengths

  • Adjust the starting point of the longer list to match the length of the shorter list

  • Traverse both lists in parallel until the intersection point is found

Add your answer

Q103. How you overcame them?

Ans.

I overcame challenges by breaking them down into smaller tasks, seeking help from colleagues, and continuously learning and improving.

  • Break down the problem into smaller, manageable tasks

  • Seek help from colleagues or mentors for guidance

  • Continuously learn and improve skills through online resources or courses

  • Stay persistent and determined to find a solution

Add your answer

Q104. what is wrapper class?

Ans.

Wrapper class is a class that wraps a primitive data type to provide additional functionality.

  • Wrapper classes are used to convert primitive data types into objects.

  • They provide methods to convert between primitive types and objects.

  • Examples include Integer, Double, and Boolean.

  • Wrapper classes are immutable.

  • They are often used in collections and generics.

Add your answer
Discover Force Motors interview dos and don'ts from real experiences

Q105. what is microservices

Ans.

Microservices are a software architecture design where applications are broken down into small, independent services that communicate with each other.

  • Microservices are independently deployable and scalable.

  • Each microservice focuses on a specific business function.

  • Communication between microservices is typically done through APIs.

  • Examples of companies using microservices include Netflix, Amazon, and Uber.

Add your answer

Q106. What is agile methodology

Ans.

Agile methodology is an iterative and flexible approach to software development that emphasizes collaboration and adaptability.

  • Agile methodology focuses on delivering working software in short iterations called sprints.

  • It values individuals and interactions over processes and tools.

  • It promotes customer collaboration and responds to changes in requirements.

  • Agile teams use frameworks like Scrum or Kanban to manage their work.

  • Daily stand-up meetings, backlog grooming, and retros...read more

View 1 answer
Are these interview questions helpful?

Q107. What is sdlc and stlc

Ans.

SDLC stands for Software Development Life Cycle and STLC stands for Software Testing Life Cycle.

  • SDLC is a process followed by software development teams to design, develop, test, and deploy software.

  • It consists of various phases like requirements gathering, system design, coding, testing, and maintenance.

  • STLC is a subset of SDLC specifically focused on the testing phase of software development.

  • It includes activities like test planning, test case development, test execution, a...read more

View 1 answer

Q108. What is Stack

Ans.

A stack is a data structure that follows the Last-In-First-Out (LIFO) principle.

  • Elements are added and removed from the top of the stack.

  • Common operations include push (add element to top) and pop (remove element from top).

  • Stacks can be implemented using arrays or linked lists.

  • Examples of stack usage include function call stack and undo/redo functionality in text editors.

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

Q109. What is hashmap?

Ans.

Hashmap is a data structure that stores key-value pairs and allows constant time access to values based on their keys.

  • Hashmap uses a hash function to map keys to indices in an array.

  • Collisions can occur when multiple keys map to the same index, which can be resolved using techniques like chaining or open addressing.

  • Examples of hashmap implementations include Java's HashMap class and Python's dict type.

Add your answer

Q110. What technology you work on?

Ans.

I work on a variety of technologies including Java, Python, SQL, and AWS.

  • Java

  • Python

  • SQL

  • AWS

Add your answer

Q111. Find second largest number in 3 numbers

Ans.

Find the second largest number in a set of three numbers.

  • Compare all three numbers and find the largest one.

  • Then compare the remaining two numbers and find the largest one.

  • The largest of the remaining two numbers is the second largest number.

Add your answer

Q112. what is autoboxing? what is decoupling?

Ans.

Autoboxing is the automatic conversion of primitive data types to their corresponding object wrapper classes.

  • Autoboxing simplifies code by eliminating the need for manual conversion between primitive and object types.

  • For example, autoboxing allows you to add an int to an ArrayList without explicitly converting it to an Integer object.

  • Autoboxing can also lead to performance issues if used excessively.

  • Decoupling is the process of separating components or modules in a system to ...read more

Add your answer

Q113. Explain the concept of oops?

Ans.

OOPs is a programming paradigm that uses objects to represent real-world entities and provides concepts like inheritance, polymorphism, and encapsulation.

  • OOPs stands for Object-Oriented Programming.

  • It focuses on creating reusable code by organizing data and behavior into objects.

  • Inheritance allows the creation of new classes based on existing ones, promoting code reuse.

  • Polymorphism enables objects of different classes to be treated as objects of a common superclass.

  • Encapsulat...read more

Add your answer

Q114. what is java

Ans.

Java is a high-level programming language known for its platform independence and object-oriented approach.

  • Java is widely used for developing desktop, web, and mobile applications.

  • It is known for its robustness, security, and scalability.

  • Java programs are compiled into bytecode that can run on any Java Virtual Machine (JVM).

  • It supports multithreading, exception handling, and automatic memory management.

  • Popular frameworks and libraries in Java include Spring, Hibernate, and Ap...read more

View 1 answer

Q115. What is coding

Ans.

Coding is the process of creating instructions for a computer to execute.

  • Coding involves writing code in a programming language such as Java or Python.

  • The code is then compiled or interpreted to create a program that can be executed by a computer.

  • Coding requires logical thinking and problem-solving skills.

  • Examples of coding include creating websites, mobile apps, and video games.

Add your answer

Q116. What is c++

Ans.

C++ is a high-level programming language used for developing system software, application software, device drivers, and video games.

  • C++ was developed by Bjarne Stroustrup in 1983.

  • It is an extension of the C programming language.

  • C++ supports object-oriented programming, generic programming, and low-level memory manipulation.

  • Examples of software developed using C++ include the Windows operating system, Adobe Photoshop, and Mozilla Firefox.

Add your answer

Q117. Encapsulation explanation with example

Ans.

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

  • Encapsulation helps in hiding the internal state of an object and only exposing necessary functionalities.

  • It allows for better control over the data by preventing direct access from outside the object.

  • Example: In a class representing a car, the variables like speed and fuel level can be encapsulated along with methods like accelerate and refuel.

Add your answer

Q118. What is foreign key

Ans.

A foreign key is a column or a set of columns in a table that refers to the primary key of another table.

  • It establishes a relationship between two tables.

  • It ensures referential integrity.

  • It helps in maintaining data consistency.

  • It can be null or have duplicate values.

  • Example: A 'customer_id' column in an 'orders' table that refers to the 'id' column in a 'customers' table.

Add your answer

Q119. 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 code reuse and promotes code organization.

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

  • The child class inherits all the properties and methods of the parent class and can also add new properties and methods.

  • For example, a class Animal can be a parent class, and classe...read more

Add your answer

Q120. Different between boxing and unboxing?

Ans.

Boxing is the process of converting a value type to a reference type, while unboxing is the process of converting a reference type to a value type.

  • Boxing is implicit, while unboxing is explicit.

  • Boxing involves wrapping a value type in an object, while unboxing involves extracting the value type from the object.

  • Boxing can lead to performance overhead due to memory allocation, while unboxing can lead to runtime errors if the types do not match.

Add your answer

Q121. Define Access modifiers in .NET?

Ans.

Access modifiers in .NET are keywords used to specify the accessibility of classes, methods, and other members.

  • Access modifiers include public, private, protected, internal, protected internal, and private protected.

  • Public - accessible from any other code in the same assembly or another assembly.

  • Private - accessible only within the containing type.

  • Protected - accessible within the containing type and by derived types.

  • Internal - accessible only within the same assembly.

  • Protect...read more

Add your answer

Q122. What is normalization

Ans.

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

  • Normalization involves breaking down data into smaller, more manageable tables

  • It helps in reducing data redundancy by eliminating duplicate data

  • Normalization ensures data integrity by enforcing relationships between tables

  • There are different normal forms such as 1NF, 2NF, 3NF, BCNF, etc.

Add your answer

Q123. What is list comprehension

Ans.

List comprehension is a concise way to create lists in programming languages like Python.

  • Used to create lists by iterating over an existing list or range

  • Can include conditions to filter elements

  • Syntax is [expression for item in list if condition]

Add your answer

Q124. Difference between state and props

Ans.

State is mutable data owned and managed by a component, while props are immutable data passed to a component.

  • State is used to store and manage data within a component, while props are used to pass data from a parent component to a child component.

  • State can be changed using setState() method, while props cannot be changed directly.

  • State is only accessible within the component it is defined in, while props can be accessed by child components.

  • Example: A parent component passes a...read more

Add your answer

Q125. What is pickling?

Ans.

Pickling is a process of serializing and de-serializing Python objects into a byte stream.

  • Pickling is used to store Python objects in a file or transfer them over a network.

  • The pickle module in Python is used for pickling and unpickling.

  • The pickled data can be stored in a file or transferred over a network.

  • The pickled data can be easily unpickled to get back the original Python object.

Add your answer

Q126. What is a pointer?

Ans.

A pointer is a variable that stores the memory address of another variable.

  • Pointers are used to manipulate data directly in memory.

  • They can be used to pass large data structures efficiently to functions.

  • Pointers can be used to create dynamic data structures like linked lists and trees.

Add your answer

Q127. Why ece??

Ans.

ECE provided a strong foundation in problem-solving and critical thinking skills.

  • ECE taught me how to analyze and design complex systems.

  • It helped me develop a strong understanding of digital logic and circuit design.

  • ECE provided me with a solid background in programming and software development.

  • It gave me exposure to a wide range of technologies and applications.

  • ECE prepared me for a career in the rapidly evolving field of technology.

Add your answer

Q128. Oops concepts with examples

Ans.

Oops concepts are fundamental to object-oriented programming. They include inheritance, polymorphism, encapsulation, and abstraction.

  • Inheritance: A subclass inherits properties and methods from its superclass. Example: class Dog extends Animal

  • Polymorphism: Objects of different classes can be treated as if they are of the same class. Example: Animal a = new Dog()

  • Encapsulation: Hiding implementation details and exposing only necessary information. Example: private variables wit...read more

Add your answer

Q129. What is interface

Ans.

An interface is a contract that defines the methods and properties that a class must implement.

  • Interfaces are used to achieve abstraction and polymorphism in object-oriented programming.

  • They provide a way to define a set of methods and properties that can be implemented by different classes.

  • Interfaces can be used to define common behavior that can be shared across multiple classes.

  • A class can implement multiple interfaces, but it must implement all the methods and properties ...read more

Add your answer

Q130. Rotate a matrix by 90 degree

Ans.

To rotate a matrix by 90 degrees, transpose the matrix and then reverse each row.

  • Transpose the matrix by swapping matrix[i][j] with matrix[j][i]

  • Reverse each row of the transposed matrix

Add your answer

Q131. What are extension methods

Ans.

Extension methods are a way to add new methods to existing types without modifying the original type.

  • Extension methods allow you to add new methods to existing classes or interfaces.

  • They are defined as static methods in a static class.

  • They are called as if they were instance methods of the existing type.

  • Extension methods can be used to extend functionality of third-party or system types.

  • Example: Adding a method to the String class to reverse a string.

Add your answer

Q132. detect cycle in undirected graph

Ans.

Detecting cycles in an undirected graph

  • Use Depth First Search (DFS) to traverse the graph and detect back edges

  • Maintain a visited array to keep track of visited nodes

  • If a visited node is encountered again during DFS and it is not the parent of the current node, then a cycle exists

Add your answer

Q133. What is authentication

Ans.

Authentication is the process of verifying the identity of a user or system.

  • Authentication ensures that the user is who they claim to be before granting access to resources.

  • Common authentication methods include passwords, biometrics, and two-factor authentication.

  • Examples of authentication systems include login screens, fingerprint scanners, and security tokens.

Add your answer

Q134. What is interface in c#

Ans.

Interface in C# is a reference type that defines a contract for classes to implement certain methods and properties.

  • Interfaces cannot have implementation, only method and property signatures

  • Classes can implement multiple interfaces

  • Interfaces are used for achieving abstraction and multiple inheritance in C#

Add your answer

Q135. What is OOPS ?

Ans.

OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.

  • OOPS is a way of organizing and designing code around objects

  • Objects have properties (attributes) and methods (functions)

  • Encapsulation, inheritance, and polymorphism are key concepts in OOPS

  • Examples of OOPS languages include Java, C++, and Python

Add your answer

Q136. Different between java and c

Ans.

Java is an object-oriented language while C is a procedural language.

  • Java is platform-independent while C is platform-dependent.

  • Java has automatic garbage collection while C requires manual memory management.

  • Java has built-in support for multithreading while C requires external libraries.

  • Java has a larger standard library compared to C.

  • Java has a simpler syntax compared to C.

  • C is faster and more efficient compared to Java.

  • C is commonly used for system programming while Java i...read more

Add your answer

Q137. What is cordova?

Ans.

Cordova is a mobile application development framework that allows developers to build apps using web technologies.

  • Cordova enables developers to create cross-platform mobile apps using HTML, CSS, and JavaScript.

  • It provides access to native device APIs, allowing developers to use device features like camera, accelerometer, etc.

  • Cordova apps can be built for multiple platforms like iOS, Android, Windows, etc.

  • It was previously known as PhoneGap, but now it is an open-source projec...read more

Add your answer

Q138. Difference between Hashmap & TreeMap

Ans.

HashMap is unordered, TreeMap is sorted by keys

  • HashMap uses hashing to store key-value pairs, allowing for O(1) retrieval time

  • TreeMap uses a Red-Black tree to store key-value pairs, maintaining keys in sorted order

  • HashMap allows one null key and multiple null values, TreeMap does not allow null keys

Add your answer

Q139. What is record in c#

Ans.

A record in C# is a data structure that contains a fixed number of fields of different data types.

  • Records are similar to classes but are immutable by default

  • They are used to group related data together

  • Records are value types and are compared by value rather than by reference

Add your answer

Q140. What is database

Ans.

A database is a structured collection of data that is organized and managed to provide efficient retrieval and storage.

  • A database is used to store and manage large amounts of data.

  • It provides a way to organize and structure data for easy retrieval and manipulation.

  • Databases can be relational, object-oriented, or hierarchical, depending on the data model used.

  • Examples of databases include MySQL, Oracle, MongoDB, and SQLite.

View 1 answer

Q141. Explain authentication and authorisation

Ans.

Authentication verifies the identity of a user, while authorization determines what actions they are allowed to perform.

  • Authentication confirms the identity of a user through credentials like passwords or biometrics

  • Authorization determines the permissions and access levels a user has within a system

  • Examples include logging in with a username and password (authentication) and being able to view/edit specific files based on user roles (authorization)

Add your answer

Q142. nth largest element in a array

Ans.

Find the nth largest element in an array of strings.

  • Convert the array of strings to an array of integers for comparison.

  • Sort the array in descending order.

  • Return the element at index n-1 to get the nth largest element.

Add your answer

Q143. what is polymorphism

Ans.

Polymorphism is the ability of an object to take on many forms.

  • Polymorphism allows objects of different classes to be treated as if they are of the same class.

  • It is achieved through method overriding and/or method overloading.

  • Examples include function overloading in C++ and method overriding in Java.

  • Polymorphism helps in achieving loose coupling and flexibility in code design.

Add your answer

Q144. What are triggers

Ans.

Triggers are database objects that automatically execute in response to certain events or changes in data.

  • Triggers are used to enforce business rules or data integrity.

  • They can be used to audit changes to data.

  • Triggers can be set to execute before or after an event, such as an insert, update, or delete operation.

  • They can be defined on tables, views, or schemas.

  • Examples of triggers include sending an email notification when a new record is added to a table, or updating a relat...read more

Add your answer

Q145. what is DOM

Ans.

DOM stands for Document Object Model. It is a programming interface for web documents.

  • DOM is a tree-like structure that represents the HTML or XML document.

  • It allows developers to manipulate the content and structure of a web page using scripting languages like JavaScript.

  • DOM provides a way to access and modify the elements, attributes, and text content of a web page.

  • It also allows developers to add or remove elements dynamically from the web page.

  • Examples of DOM methods incl...read more

Add your answer

Q146. 1.DBMS 2.what is OOPS

Ans.

DBMS is a software system that manages databases. OOPS is a programming paradigm based on objects.

  • DBMS stands for Database Management System and is used to store, retrieve and manage data efficiently.

  • OOPS stands for Object-Oriented Programming System and is based on the concept of objects, classes, and inheritance.

  • DBMS examples include MySQL, Oracle, and SQL Server.

  • OOPS examples include Java, C++, and Python.

Add your answer

Q147. Lifecycle methods of React components

Ans.

Lifecycle methods are functions that are called at different stages of a component's life in React.

  • Mounting: constructor(), render(), componentDidMount()

  • Updating: render(), componentDidUpdate()

  • Unmounting: componentWillUnmount()

  • Error Handling: componentDidCatch()

Add your answer

Q148. Wap of bubble sort

Ans.

Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.

  • Start from the first element and compare it with the next element

  • If the next element is smaller, swap them

  • Repeat this process for all elements in the array

  • Continue this process until no more swaps are needed

Add your answer

Q149. Best practices for writing code

Ans.

Best practices for writing clean and efficient code

  • Follow coding standards and conventions

  • Write modular and reusable code

  • Use meaningful variable and function names

  • Document your code for better understanding

  • Test your code thoroughly before deployment

Add your answer

Q150. What is tree

Ans.

A tree is a data structure consisting of nodes connected by edges that represent a hierarchical structure.

  • Nodes represent elements of the tree

  • Edges represent the relationships between nodes

  • The topmost node is called the root

  • Each node can have zero or more child nodes

  • Examples include binary trees, AVL trees, and B-trees

Add your answer

Q151. What is percentage

Ans.

Percentage is a way of expressing a number as a fraction of 100.

  • Percentage is denoted by the symbol %.

  • To convert a decimal to a percentage, multiply by 100.

  • To convert a percentage to a decimal, divide by 100.

  • Percentages are commonly used in finance, statistics, and science.

  • For example, a 25% increase means the value has increased by 25/100 or 0.25.

Add your answer

Q152. What is rdd

Ans.

RDD stands for Resilient Distributed Datasets, a fundamental data structure in Apache Spark.

  • RDD is a fault-tolerant collection of elements that can be processed in parallel.

  • It allows for in-memory processing of data across multiple nodes in a cluster.

  • RDDs can be created from Hadoop Distributed File System (HDFS) files, local files, or by transforming existing RDDs.

  • Examples of transformations include map, filter, and reduce.

  • RDDs can also be cached in memory for faster access.

Add your answer

Q153. write a code for panagram

Ans.

A panagram is a sentence containing every letter of the alphabet at least once.

  • Create a function that takes a string as input

  • Convert the input string to lowercase for case-insensitivity

  • Iterate through each letter of the alphabet and check if it exists in the input string

Add your answer

Q154. Find Maximum Subarray

Ans.

Maximum Subarray problem involves finding the contiguous subarray with the largest sum.

  • Use Kadane's algorithm to find the maximum subarray sum in O(n) time complexity.

  • Initialize two variables - maxEndingHere and maxSoFar to keep track of current subarray sum and maximum subarray sum.

  • Iterate through the array and update the variables accordingly.

  • Example: Input array [1, -2, 3, -1, 2] should return 4 (subarray [3, -1, 2] has the maximum sum).

Add your answer

Q155. Height of Binary Tree

Ans.

The height of a binary tree is the number of edges on the longest path from the root node to a leaf node.

  • The height of an empty tree is -1.

  • The height of a tree with only one node (the root) is 0.

  • The height of a binary tree can be calculated recursively by finding the height of the left and right subtrees and adding 1 to the maximum of the two heights.

Add your answer

Q156. Morris InOrder Traversal

Ans.

Morris InOrder Traversal is a method to traverse a binary tree without using recursion or a stack.

  • Start at the root node

  • While current is not null, if current has no left child, visit current and move to right child. If current has left child, find the rightmost node in the left subtree and set it as the right child of current

  • Repeat until all nodes are visited

Add your answer

Q157. Tools you used in VAPT?

Ans.

I have used tools like Burp Suite, Nmap, Metasploit, Wireshark, and Nessus for VAPT.

  • Burp Suite

  • Nmap

  • Metasploit

  • Wireshark

  • Nessus

Add your answer

Q158. Sort a list of string

Ans.

Sort an array of strings

  • Use built-in sorting functions like sort() in JavaScript

  • Implement custom sorting algorithms like bubble sort or quicksort

  • Consider the case sensitivity of the strings while sorting

Add your answer

Q159. What is tester

Ans.

A tester is a professional who tests software applications to ensure they meet the requirements and function properly.

  • Testers identify and report defects in software

  • They create test plans and test cases

  • They execute tests and analyze results

  • They work closely with developers to resolve issues

  • Examples of testing types include functional, performance, and security testing

Add your answer

Q160. tell abour urself

Ans.

I am a passionate software engineer with 5 years of experience in developing web applications using Java, Spring Boot, and Angular.

  • 5 years of experience in software development

  • Proficient in Java, Spring Boot, and Angular

  • Strong problem-solving skills

  • Experience working in Agile development environment

  • Bachelor's degree in Computer Science from XYZ University

Add your answer

Q161. Explain js top 3 features

Ans.

JavaScript's top 3 features are flexibility, ease of use, and wide adoption.

  • Flexibility allows for dynamic and interactive web pages

  • Ease of use makes it accessible to beginners and experienced developers alike

  • Wide adoption ensures a large community for support and resources

Add your answer

Q162. reverse a linked list

Ans.

Reverse a linked list by changing the pointers direction

  • Iterate through the linked list and change the direction of pointers

  • Use three pointers - prev, current, next to reverse the list

  • Update the head of the list to be the last node after reversing

Add your answer

Q163. What is oops concept

Ans.

Object-oriented programming paradigm focusing on objects and classes for code organization and reusability.

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

  • Inheritance: Ability of a class to inherit properties and behavior from another class.

  • Polymorphism: Ability to present the same interface for different data types.

  • Abstraction: Hiding the complex implementation details and showing only the necessary features to the outside world.

Add your answer

Q164. Final keyword in Java

Ans.

Final keyword in Java is used to restrict the user from changing the value of a variable, making it a constant.

  • Final keyword can be applied to variables, methods, and classes

  • Final variables must be initialized and cannot be reassigned

  • Final methods cannot be overridden in subclasses

  • Final classes cannot be subclassed

Add your answer

Q165. Static keyword in Java

Ans.

Static keyword in Java is used to create class-level variables and methods that can be accessed without creating an instance of the class.

  • Static variables are shared among all instances of a class

  • Static methods can be called without creating an object of the class

  • Static blocks are used to initialize static variables

Add your answer

Q166. Addition of two number

Ans.

Addition of two numbers is a basic arithmetic operation that involves combining two numbers to get a total sum.

  • Use the + operator to add two numbers in most programming languages.

  • Ensure the numbers are in the correct format (integers, floats, etc.) before adding.

  • Consider handling edge cases like overflow or underflow when adding large numbers.

Add your answer

Q167. Difference between c and c++

Ans.

C++ is an extension of C with object-oriented programming features.

  • C++ supports classes and objects while C does not.

  • C++ has better support for function overloading and templates.

  • C++ has a standard library while C does not.

  • C++ is more complex than C.

  • C++ is backward compatible with C.

  • C++ allows for both procedural and object-oriented programming.

  • C++ has a more strict type checking system than C.

Add your answer

Q168. Concept of Hibernation

Ans.

Hibernation is a state of inactivity and metabolic depression in animals to conserve energy during winter or other harsh conditions.

  • Hibernation is a natural adaptation to survive in extreme conditions.

  • During hibernation, the body temperature drops, heart rate slows down, and breathing becomes shallow.

  • Animals store food in their bodies before hibernation to survive without eating or drinking for months.

  • Examples of hibernating animals include bears, bats, and hedgehogs.

Add your answer

Q169. Wat is gac stands for??

Ans.

GAC stands for Global Assembly Cache.

  • GAC is a machine-wide code cache for the Common Language Infrastructure (CLI) in Microsoft .NET Framework.

  • It stores assemblies specifically designated to be shared by multiple applications on the computer.

  • GAC helps in avoiding DLL Hell issues by providing a centralized storage location for assemblies.

  • Assemblies in GAC are identified by their strong names.

  • Developers can use tools like Gacutil.exe to install, uninstall, and manage assemblies...read more

Add your answer

Q170. Internal working of Hashmap

Ans.

HashMap in Java is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values based on keys.

  • HashMap internally uses an array of linked lists to store key-value pairs.

  • When a key-value pair is added, the key is hashed to find the index in the array where it will be stored.

  • If multiple keys hash to the same index (collision), a linked list is used to store all key-value pairs at that index.

  • To retrieve a value, the key is hashed again to find the ...read more

Add your answer

Q171. Wap of prime number

Ans.

A program to print all prime numbers

  • Take input from user for range of numbers

  • Loop through the range and check if each number is prime

  • Print the prime numbers

Add your answer

Q172. Wat is MVC life cycle

Ans.

MVC life cycle refers to the sequence of events that occur during the processing of a web request in the Model-View-Controller design pattern.

  • 1. Request is received by the controller

  • 2. Controller invokes the appropriate method in the model to process the request

  • 3. Model updates the data and notifies the view

  • 4. View renders the updated data to the user

  • 5. Response is sent back to the client

Add your answer

Q173. Common Design patterns

Ans.

Common design patterns are reusable solutions to common problems in software design.

  • Creational patterns: Singleton, Factory, Builder

  • Structural patterns: Adapter, Decorator, Facade

  • Behavioral patterns: Observer, Strategy, Template Method

Add your answer

Q174. latest feature of java 8

Ans.

Java 8 introduced lambda expressions and functional interfaces.

  • Lambda expressions allow for more concise and readable code.

  • Functional interfaces enable the use of lambda expressions.

  • Stream API for processing collections of data.

  • Date and Time API for improved handling of date and time.

  • Default methods in interfaces for backward compatibility.

Add your answer

Q175. Write program of palindrome

Ans.

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

  • Take input from the user

  • Reverse the input string

  • Compare the original and reversed string

  • If they are the same, then it is a palindrome

Add your answer

Q176. Write program of fibnoicc

Ans.

Program to generate Fibonacci series

  • Declare variables for first two numbers in series

  • Loop through desired number of terms and generate next number by adding previous two

  • Print or store each number in series

Add your answer

Q177. Any Program logic In

Ans.

Program logic refers to the sequence of steps or instructions that a program follows to achieve a specific task.

  • Program logic is the backbone of any software application.

  • It involves breaking down a problem into smaller, more manageable parts.

  • Each part is then solved using a specific set of instructions or algorithms.

  • Examples of program logic include sorting algorithms, search algorithms, and decision-making algorithms.

Add your answer

Q178. Stack vs Queue. Explain diff

Ans.

Stack is Last In First Out (LIFO) data structure, while Queue is First In First Out (FIFO) data structure.

  • Stack: elements are added and removed from the top of the stack. Example: browser history.

  • Queue: elements are added at the rear and removed from the front of the queue. Example: waiting line at a ticket counter.

Add your answer

Q179. Rotate array by k

Ans.

Rotate array by k positions to the right

  • Create a temporary array to store elements that will be rotated

  • Shift elements to the right by k positions

  • Copy elements from temporary array back to original array

Add your answer

Q180. Merge sort an array

Ans.

Merge sort is a divide and conquer algorithm that recursively divides the array into halves and merges them in sorted order.

  • Divide the array into two halves

  • Recursively merge sort each half

  • Merge the sorted halves back together

Add your answer

Q181. Projects worked

Ans.

I have worked on various projects including web development, mobile app development, and data analysis.

  • Developed a web application using React and Node.js for a client in the healthcare industry

  • Created a mobile app using Flutter for a startup in the travel industry

  • Analyzed data using Python and SQL to improve customer retention for an e-commerce company

Add your answer

Q182. Explain events loop

Ans.

Events loop is a mechanism in software development that continuously checks for and processes events in a program.

  • Events loop is commonly used in event-driven programming to handle user inputs, network requests, and other asynchronous tasks.

  • It allows the program to efficiently manage multiple tasks without blocking the main thread.

  • Examples include JavaScript's event loop in web browsers and Node.js, which processes events like click events or HTTP requests.

Add your answer

Q183. Explain Oops concept

Ans.

OOPs (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data and code.

  • OOPs focuses on creating objects that interact with each other to solve a problem

  • Key concepts include encapsulation, inheritance, polymorphism, and abstraction

  • Encapsulation: bundling data and methods that operate on the data into a single unit

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

  • Polymorphism: ability for obje...read more

Add your answer

Q184. Reverse a number

Ans.

To reverse a number, convert it to a string, reverse the string, and convert it back to a number.

  • Convert the number to a string

  • Reverse the string

  • Convert the reversed string back to a number

Add your answer
1
2
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Force Motors

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

Top Software Engineer Interview Questions from Similar Companies

3.3
 • 79 Interview Questions
3.8
 • 18 Interview Questions
3.9
 • 14 Interview Questions
3.8
 • 13 Interview Questions
3.9
 • 13 Interview Questions
4.2
 • 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