Add office photos
Engaged Employer

Protonshub Technologies

3.9
based on 88 Reviews
Filter interviews by

CandorWorks Interview Questions and Answers

Updated 14 Nov 2024

Q1. Why do we before_save call first and before_create after it?

Ans.

before_save is called first to perform any necessary actions before saving the record, and before_create is called after it to perform actions specific to record creation.

  • before_save is a callback method that is triggered before a record is saved to the database.

  • before_create is a callback method that is triggered before a new record is created and saved to the database.

  • The order of these callbacks allows for performing general actions before saving and specific actions befor...read more

View 1 answer

Q2. Difference between stored procedure and function. What are limitations of struct over class Coding question related to inheritance

Ans.

Stored procedures are precompiled SQL queries stored in the database, while functions are reusable code blocks that return a value.

  • Stored procedures are used for performing specific tasks in the database, while functions are used to return a single value.

  • Stored procedures can contain multiple SQL statements, while functions contain a single SQL statement.

  • Stored procedures can have input and output parameters, while functions can only have input parameters.

  • Stored procedures ca...read more

Add your answer

Q3. What is the difference b/w SOAP and REST?

Ans.

SOAP is a protocol while REST is an architectural style for web services.

  • SOAP uses XML for messaging while REST uses JSON or XML.

  • SOAP requires more bandwidth and processing power than REST.

  • REST is more flexible and scalable than SOAP.

  • SOAP has built-in error handling while REST relies on HTTP error codes.

  • SOAP is commonly used in enterprise applications while REST is used for web-based applications.

Add your answer

Q4. what is redux management

Ans.

Redux management is a state management tool for JavaScript apps, allowing for centralized state management and predictable state changes.

  • Centralized state management for React applications

  • Stores the entire state of the application in a single immutable object

  • State changes are made through actions and reducers

  • Helps in managing complex state logic and data flow in large applications

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

Q5. what is settimeout

Ans.

setTimeout is a function in JavaScript that executes a specified function or code snippet after a specified delay.

  • setTimeout is used to delay the execution of a function or code snippet.

  • It takes two parameters: a function to be executed and a delay time in milliseconds.

  • Example: setTimeout(() => { console.log('Delayed message') }, 2000) will log 'Delayed message' after 2 seconds.

Add your answer

Q6. what is interval

Ans.

Interval is a time period between two specified points.

  • Interval is a duration of time between two specific points.

  • It can be used in programming to execute a function at regular intervals.

  • For example, setInterval() function in JavaScript is used to repeatedly execute a function at specified intervals.

Add your answer

Q7. what is context api

Ans.

Context API is a feature in React that allows sharing data between components without having to pass props through every level of the component tree.

  • Context API provides a way to pass data through the component tree without having to pass props down manually at every level.

  • It is useful for sharing global data such as themes, user authentication, or language preferences.

  • Context API consists of three main parts: Provider, Consumer, and useContext hook.

  • Example: Using Context API...read more

Add your answer

Q8. Limitation of struct over class

Ans.

Structs are limited in terms of inheritance, access control, and polymorphism compared to classes.

  • Structs do not support inheritance, while classes do.

  • Structs have limited access control (public by default), while classes can have private, protected, and public members.

  • Structs do not support polymorphism, while classes can have virtual functions for runtime polymorphism.

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 Interview Questions from Similar Companies

4.0
 • 208 Interview Questions
3.6
 • 168 Interview Questions
3.5
 • 164 Interview Questions
3.9
 • 135 Interview Questions
3.8
 • 131 Interview Questions
View all
Top Protonshub 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
Get AmbitionBox app

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