Exambodh - Practice Aptitude, Reasoning & GK Questions
Ctrl + K
Ctrl + K
UPlay Quiz
BlogPlay quizU
≡One Liner Questions⌂HomeBgBlog?Play QuizAaArticles

Categories

SSC CGL›
General Knowledge›
Indian History›
Indian Polity›
Quantitative Aptitude

Exambodh

Exambodh helps students prepare for aptitude, reasoning, GK, and verbal exams with topic-wise practice questions, simple explanations, and structured learning.

Quick Links

HomePlay QuizArticlesAbout UsContactPrivacy PolicyDisclaimerCopyright PolicyTerms & Conditions

Study Hubs

Latest ArticlesGeneral KnowledgeQuantitative AptitudeLogical ReasoningComputer AwarenessCurrent Affairs

Popular Categories

SSC CGLGeneral KnowledgeIndian History
›
Logical Reasoning›
Interview Practice›
Science›
Computer Awareness›
Current Affairs›
Geography›
NCERT Solutions & Notes›
Static GK›
  1. Home
  2. |Interview Practice
  3. |One Liner Questions

Interview Practice One Liner Questions with Answers

Practice exam-ready one liner questions for Interview Practice with quick answers for SSC, Railway, Banking and competitive exams.

Total Questions: 54

ReactJS

Why were Hooks introduced in React?

Hooks were introduced to let developers use state and lifecycle features in functional components, reduce complexity of class components, and make logic reuse easier.

ReactJS

What problem do Hooks solve in React?

Hooks solve problems such as complex class component logic, difficulty in reusing stateful logic, and confusion around this keyword in JavaScript.

ReactJS

What are the rules of Hooks?

Hooks must only be called at the top level of a React function and only inside React function components or custom Hooks. They should not be called inside loops, conditions, or nested functions.

ReactJS

What is the difference between Hooks and class components?

Hooks allow functional components to manage state and side effects, while class components use this.state and lifecycle methods. Hooks usually make code shorter, cleaner, and easier to reuse.

ReactJS

What is a custom Hook in React?

A custom Hook is a JavaScript function whose name starts with use and which can call other Hooks. It is used to extract and reuse stateful logic across multiple components.

ReactJS

Can Hooks be used inside class components?

No, Hooks cannot be used inside class components. They are designed only for function components and custom Hooks.

ReactJS

What is the purpose of useState Hook?

useState is used to add and manage local state in a functional component. It returns the current state value and a function to update it.

ReactJS

What is the purpose of useContext Hook?

useContext is used to read and use context values directly inside a functional component, helping avoid prop drilling.

ReactJS

What are the benefits of Hooks in React development?

Hooks make code more readable, reduce class-related complexity, allow logic reuse through custom Hooks, and help organize state and side effects in a cleaner way.

ReactJS

What is the useState hook?

useState is used to add and manage state in functional components.

‹
123456
›
Page
˅
of 6
Indian Polity
Quantitative Aptitude
Logical Reasoning
Explore:HomePlay QuizArticlesContact

Copyright 2026 Exambodh - aptitude, reasoning & verbal practice.