Add office photos
Engaged Employer

Oneture Technologies

4.1
based on 63 Reviews
Filter interviews by

Haryana Police Interview Questions and Answers

Updated 5 Nov 2024

Q1. How react props work

Ans.

React props are used to pass data from parent to child components in React applications.

  • Props are read-only and cannot be modified by the child component

  • Props are passed down from parent to child components

  • Props can be accessed using this.props in class components or props in functional components

Add your answer

Q2. React state and their use

Ans.

React state is used to store and manage data within a component.

  • State is used to store data that can change over time within a component

  • State can be initialized in the constructor using this.state

  • State can be updated using this.setState() method

  • State changes trigger re-rendering of the component

Add your answer

Q3. Redux working and use

Ans.

Redux is a predictable state container for JavaScript apps, commonly used with React for managing application state.

  • Redux helps manage the state of an application in a predictable way

  • It uses a single immutable state tree which can only be changed by emitting actions

  • Reducers are pure functions that specify how the state changes in response to actions

  • Redux is commonly used with React to manage the state of components

Add your answer

Q4. Write code for reading file in node js

Ans.

Reading a file in Node.js involves using the 'fs' module to open and read the contents of the file.

  • Use the 'fs' module's 'readFile' method to read the contents of a file asynchronously.

  • Pass the file path and encoding as parameters to the 'readFile' method.

  • Handle the file contents in the callback function provided to the 'readFile' method.

Add your answer
Discover Haryana Police interview dos and don'ts from real experiences

Q5. Write CRUD APIs for a sample data

Ans.

Creating CRUD APIs for sample data in a MERN stack application

  • Create a POST API to add new data

  • Create a GET API to retrieve all data

  • Create a GET API to retrieve data by ID

  • Create a PUT API to update data by ID

  • Create a DELETE API to delete data by ID

Add your answer

Q6. Framework used in last project

Ans.

I used React.js as the framework in my last project.

  • React.js is a popular JavaScript library for building user interfaces.

  • It allows for the creation of reusable UI components.

  • React.js uses a virtual DOM for efficient rendering.

  • Example: I used React.js to build a dynamic dashboard for tracking sales data.

Add your answer

Q7. Explain the framework structure

Ans.

Framework structure refers to the organization of code, libraries, and tools used in automation testing.

  • Framework structure typically includes folders for test scripts, test data, configuration files, and reusable components.

  • It also involves defining the hierarchy of test cases, setting up test suites, and implementing reporting mechanisms.

  • Common types of frameworks include data-driven, keyword-driven, and hybrid frameworks.

  • Example: In a data-driven framework, test data is se...read more

Add your answer

Q8. Explain the basic coding standards

Ans.

Basic coding standards are guidelines that help ensure code quality, readability, and maintainability.

  • Consistent indentation for readability

  • Meaningful variable and function names

  • Proper commenting for clarity

  • Use of design patterns for scalability

  • Adherence to naming conventions like camelCase or snake_case

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

Interview Process at Haryana Police

based on 6 interviews
Interview experience
4.2
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.8
 • 2k Interview Questions
4.1
 • 550 Interview Questions
4.0
 • 362 Interview Questions
3.8
 • 206 Interview Questions
3.9
 • 168 Interview Questions
3.7
 • 133 Interview Questions
View all
Top Oneture Technologies Interview Questions And Answers
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