Vanenburg
10+ Cummins Interview Questions and Answers
Q1. How to improve biometrics with latest technologies for employee attendance in company
Biometrics for employee attendance can be improved by integrating latest technologies like facial recognition and vein pattern recognition.
Implement facial recognition technology for accurate and fast attendance tracking.
Integrate vein pattern recognition for enhanced security and reliability.
Utilize AI algorithms to continuously improve biometric matching accuracy.
Explore touchless biometric solutions to promote hygiene and reduce physical contact.
Consider implementing multi...read more
Q2. Difference between SQL and NoSQL. Which one is better?
SQL is a relational database management system, while NoSQL is a non-relational database management system.
SQL is table-based, with structured data and predefined schema (e.g. MySQL, PostgreSQL)
NoSQL is document-based, key-value pairs, wide-column stores, or graph databases, with dynamic schema (e.g. MongoDB, Cassandra)
SQL is better for complex queries and transactions, while NoSQL is better for large amounts of unstructured data and real-time applications
Q3. Sort a list of 0s,1s,2s using brute force and optimized methods. Explain it's time and space complexity
Sort a list of 0s, 1s, 2s using brute force and optimized methods with time and space complexity analysis.
Brute force method: Count the occurrences of 0s, 1s, and 2s and reconstruct the array accordingly.
Optimized method: Use Dutch National Flag algorithm to partition the array into three sections based on 0s, 1s, and 2s.
Time complexity: Brute force - O(n), Optimized - O(n)
Space complexity: Brute force - O(1), Optimized - O(1)
Q4. What is NoSQL? Do you have experience with NoSQL databases?
NoSQL is a type of database that provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.
NoSQL stands for 'Not Only SQL' and is a non-relational database management system.
NoSQL databases are schema-less, allowing for flexibility in data storage and retrieval.
Examples of NoSQL databases include MongoDB, Cassandra, and Redis.
Q5. Explain machine learning and deep learning in layman terms with real-time examples
Machine learning is teaching computers to learn from data and make decisions without being explicitly programmed. Deep learning is a subset of machine learning that uses neural networks to mimic the human brain.
Machine learning is like teaching a child to recognize different fruits by showing them pictures and telling them the names.
Deep learning is like teaching a child to recognize different fruits by showing them pictures and letting them figure out the names on their own....read more
Q6. Why use OOPs? Your proficiency in Java
OOPs allows for better organization, reusability, and flexibility in code. Java is a popular OOP language.
OOPs promotes code reusability through inheritance and polymorphism
Encapsulation helps in data hiding and protecting data integrity
Java supports OOP principles like encapsulation, inheritance, and polymorphism
OOPs allows for better organization of code into classes and objects
Q7. Explain some machine learning algorithms that you know
Machine learning algorithms are used to make predictions or decisions based on data.
Linear Regression: used for predicting continuous values based on input features.
Logistic Regression: used for binary classification tasks.
Decision Trees: used for classification and regression tasks, creating a tree-like model of decisions.
Random Forest: ensemble learning method using multiple decision trees for improved accuracy.
Support Vector Machines (SVM): used for classification tasks by...read more
Q8. 4 pillars of OOPs with real time examples
4 pillars of OOPs are Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance: Child classes inherit attributes and methods from parent classes. Example: Animal -> Dog
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: Class with private variables and public methods
Abstraction: Hiding complex implementation details and showing only necessary features. Example: Car dashboard
Polymorphism: Ability to present the same inter...read more
Q9. What is the spring boot and java version used in your project?
We are using Spring Boot 2.5.3 and Java 11 in our project.
Spring Boot version: 2.5.3
Java version: 11
Q10. What is factory design patterns and give one example for it
Factory design pattern is a creational pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.
Factory design pattern is used to create objects without specifying the exact class of object that will be created.
It provides a way to delegate the instantiation logic to child classes.
One example is the Factory Method pattern, where a superclass provides an interface for creating objects, but ...read more
Q11. What is the use of transactional annotation?
Transactional annotation is used in Spring framework to manage transactions in a declarative way.
Transactional annotation is used to define the scope of a single database transaction.
It ensures that if any operation within the transaction fails, the entire transaction is rolled back.
It simplifies the code by handling transaction management automatically.
It can be applied at class level or method level in Spring applications.
Q12. Find the frequency of given character in the given string?
Use a loop to iterate through the string and count the occurrences of the given character.
Iterate through the string using a loop
Check each character if it matches the given character
Increment a counter if a match is found
Return the counter as the frequency of the given character
Q13. Find the second largest number in an given array?
Iterate through the array to find the second largest number.
Iterate through the array and keep track of the largest and second largest numbers.
Compare each element with the largest and second largest numbers to update them accordingly.
Return the second largest number once the iteration is complete.
Q14. Design employee database schema
Design a database schema for an employee database
Create a table for employees with fields like employee_id, name, department, position, etc.
Consider adding tables for departments, positions, and any other related entities
Include relationships between tables using foreign keys
Ensure data integrity with constraints like unique keys and not null constraints
Q15. Describe OOPs with a real world example using your understanding.
OOPs is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOPs focuses on creating objects that interact with each other to solve a problem.
Encapsulation, inheritance, and polymorphism are key principles of OOPs.
Example: In a car manufacturing company, a 'Car' object can have properties like 'model', 'color', and methods like 'startEngine', 'accelerate'.
Interview Process at Cummins
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month