Add office photos
Employer?
Claim Account for FREE

Oracle Cerner

3.7
based on 1.3k Reviews
Filter interviews by

Purchasing Power Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. What is meant by function overloading and function overriding?

Ans.

Function overloading is when multiple functions have the same name but different parameters. Function overriding is when a subclass provides its own implementation of a method that is already present in the parent class.

  • Function overloading is used to provide multiple ways to call a function with different parameters.

  • Function overriding is used to provide a specific implementation of a method in a subclass.

  • Function overloading is resolved at compile-time based on the number a...read more

Add your answer

Q2. What is meant by closure in javascript?

Ans.

Closure is a function that has access to its parent scope, even after the parent function has closed.

  • Closure is created when a function is defined inside another function.

  • The inner function has access to the outer function's variables and parameters.

  • The outer function returns the inner function, which can be called later with the parent scope still accessible.

  • Closures are used for data privacy, event handlers, and callbacks.

Add your answer

Q3. What is abstract class in javascript?

Ans.

There is no abstract class in JavaScript.

  • JavaScript does not have a built-in abstract class concept.

  • However, it is possible to create abstract classes using functions and prototypes.

  • Abstract classes are used as blueprints for other classes to inherit from.

  • They cannot be instantiated on their own and must be extended by a subclass.

  • Abstract methods can be defined in the abstract class and must be implemented in the subclass.

Add your answer

Q4. Algorithm to convert roman numeral to numbers?

Ans.

Algorithm to convert roman numeral to numbers

  • Create a dictionary to map roman numerals to their corresponding values

  • Iterate through the roman numeral string from right to left

  • If the current value is less than the previous value, subtract it from the total

  • If the current value is greater than or equal to the previous value, add it to the total

  • Return the total

Add your answer
Discover Purchasing Power interview dos and don'ts from real experiences

Q5. What is React Context?

Ans.

React Context is a feature in React that allows data to be passed down the component tree without having to pass props manually.

  • Context provides a way to share values like themes, user data, etc. across the component tree.

  • It avoids prop drilling, where props are passed down multiple levels to reach a component that needs them.

  • Context consists of two parts: a Provider component that provides the data and a Consumer component that consumes the data.

  • Context can be used with the ...read more

Add your answer

Q6. Implement counter in react app

Ans.

Implement a counter in a React app

  • Create a state variable to hold the count

  • Render the count in the UI

  • Add buttons to increment and decrement the count

  • Update the state variable on button click

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top SDE-2 Interview Questions from Similar Companies

4.1
 • 39 Interview Questions
3.8
 • 19 Interview Questions
4.0
 • 16 Interview Questions
3.9
 • 14 Interview Questions
4.1
 • 11 Interview Questions
View all
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