
Chubb

Chubb Interview Questions and Answers for Freshers
Q1. What are props and events in ReactJS
Props are used to pass data from parent to child components, while events are actions that occur in the application.
Props are read-only and help in maintaining the unidirectional data flow in React
Events are actions like onClick, onChange, etc. that are triggered by user interactions
Example: Passing a 'name' prop from a parent component to a child component and triggering an onClick event to update state
Q2. Find the binary representation of a number
To find the binary representation of a number, convert the number to binary by dividing it by 2 and keeping track of the remainders.
Start by dividing the number by 2 and noting the remainder
Continue dividing the quotient by 2 until the quotient is 0
Write down the remainders in reverse order to get the binary representation
For example, the binary representation of 10 is 1010 (10 divided by 2 is 5 with a remainder of 0, then 2 with a remainder of 1, then 1 with a remainder of 0...read more
Q3. What is abstraction in java
Abstraction in Java is the concept of hiding the implementation details and showing only the necessary features of an object.
Abstraction allows you to define a template for a class without providing the implementation details.
It helps in reducing complexity by hiding unnecessary details and only showing the essential parts.
Abstract classes and interfaces are used to achieve abstraction in Java.
Q4. DSA: prime no. or not optimal approach
Optimal approach for checking if a number is prime or not using DSA
Optimal approach for checking prime numbers is to iterate up to square root of the number
Use trial division method to check divisibility by numbers up to square root of the number
Time complexity of this approach is O(sqrt(n))
Q5. Class, object with real time examples
A class is a blueprint for creating objects, which are instances of the class. Objects have attributes and behaviors.
Classes define the structure and behavior of objects.
Objects are instances of classes and have their own unique attributes and behaviors.
Example: Class 'Car' with attributes like 'color' and behaviors like 'drive'. Object 'myCar' is an instance of 'Car' with color 'red' and can drive.
Example: Class 'Person' with attributes like 'name' and behaviors like 'eat'. ...read more
Q6. SQL types of normal forms
SQL normal forms are levels of organization for relational databases to reduce redundancy and improve data integrity.
First normal form (1NF) - Eliminate repeating groups and ensure each column contains atomic values.
Second normal form (2NF) - Meet 1NF requirements and have all non-key attributes fully functionally dependent on the primary key.
Third normal form (3NF) - Meet 2NF requirements and have no transitive dependencies between non-key attributes.
Boyce-Codd normal form (...read more
Q7. Why didn't you use some X tech stack.
Top HR Questions asked in Chubb for Freshers
Interview Process at Chubb for Freshers

Top Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

