Add office photos
Employer?
Claim Account for FREE

Codebuddy

2.9
based on 14 Reviews
Filter interviews by

Citicon Engineers Interview Questions and Answers

Updated 6 Jan 2025

Q1. Write bug report. On scenario

Ans.

Unable to login with correct credentials

  • Entered correct username and password

  • Clicked on login button

  • Error message displayed: 'Invalid username or password'

Add your answer

Q2. Write test case on apple

Ans.

Test case for apple

  • Verify the apple is not rotten or spoiled

  • Check the weight and size of the apple

  • Ensure the apple is not bruised or damaged

  • Test the sweetness and texture of the apple

  • Confirm the apple is free from pesticides and chemicals

Add your answer

Q3. Is it advisable to use indexes as keys? If not, why?

Ans.

No, it is not advisable to use indexes as keys in React components.

  • Using indexes as keys can lead to performance issues and incorrect behavior when reordering or deleting items in a list.

  • It is recommended to use unique IDs as keys to ensure proper component rendering and reconciliation.

  • Example:

      {items.map((item, index) =>
    • {item}
    • )}

Add your answer

Q4. When to use memoisation?

Ans.

Memoisation should be used to optimize performance by caching expensive function calls.

  • Use memoisation when a function is computationally expensive and its output depends only on its input parameters.

  • Memoisation can be used to cache the results of recursive function calls to avoid redundant calculations.

  • In React, useMemo hook can be used to memoize the result of a function component to prevent unnecessary re-renders.

  • Memoisation is particularly useful in optimizing performance...read more

Add your answer
Discover Citicon Engineers interview dos and don'ts from real experiences

Q5. what are hooks in react

Ans.

Hooks are a new addition in React 16.8 that allow you to use state and other React features without writing a class.

  • Hooks are functions that let you use state and other React features in functional components.

  • They allow you to reuse stateful logic without changing your component hierarchy.

  • Examples of hooks include useState, useEffect, useContext, etc.

Add your answer

Q6. What is hoisting?

Ans.

Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope.

  • Variable and function declarations are hoisted to the top of their scope during the compilation phase.

  • Only declarations are hoisted, not initializations.

  • Function declarations are hoisted before variable declarations.

Add your answer

Q7. What are keys and what are their uses?

Ans.

Keys are unique identifiers for elements in a list in React, used for efficient rendering and updating.

  • Keys help React identify which items have changed, are added, or are removed in a list.

  • Keys should be unique among siblings, but don't need to be globally unique.

  • Using index as a key is not recommended as it can cause issues with component state.

  • Keys are important for performance optimization in React.

  • Example:

      {items.map((item) =>
    • {item.name}
    • )}

Add your answer

Q8. What is code splitting?

Ans.

Code splitting is a technique used to split a large bundle of code into smaller chunks that can be loaded on demand.

  • Code splitting helps improve performance by reducing initial load times.

  • It allows for lazy loading of code, meaning only the necessary code is loaded when needed.

  • Commonly used in React applications using dynamic imports or React.lazy().

Add your answer

Q9. React without JSX

Ans.

React can be used without JSX by using React.createElement() method.

  • React.createElement() method can be used to create React elements without JSX.

  • JSX is just syntactic sugar for React.createElement() calls.

  • Example: React.createElement('div', {className: 'container'}, 'Hello, World!')

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

Interview Process at Citicon Engineers

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

Top Interview Questions from Similar Companies

3.9
 • 730 Interview Questions
4.0
 • 637 Interview Questions
4.2
 • 370 Interview Questions
3.5
 • 346 Interview Questions
3.9
 • 204 Interview Questions
4.0
 • 193 Interview Questions
View all
Top Codebuddy 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
75 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