Add office photos
Engaged Employer

Full Creative

3.5
based on 119 Reviews
Filter interviews by

OCH Chemicals & Systems Interview Questions and Answers

Updated 5 Feb 2024

Q1. What is a linkedlist and its pros ?

Ans.

A linked list is a linear data structure where each element is a separate object with a pointer to the next element.

  • Linkedlist allows for efficient insertion and deletion of elements

  • It can be used to implement stacks, queues, and graphs

  • Traversal is slower compared to arrays

  • Examples include singly linked list, doubly linked list, and circular linked list

Add your answer

Q2. What is Hoisting? What is closure?

Ans.

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

  • Hoisting applies to variable declarations and function declarations

  • Variables are initialized with undefined and functions are fully defined

  • Hoisting only moves the declarations, not the assignments

  • Example: console.log(x); var x = 5; // Output: undefined

  • Closure is a function that has access to its outer function's variables, even after the outer function has returned...read more

Add your answer

Q3. What is this in javascript ?

Ans.

This could refer to anything in javascript, please provide more context.

  • Please provide more context for a specific answer.

  • It could be a variable, function, object, or any other javascript construct.

  • Without more information, it is impossible to provide a specific answer.

Add your answer

Q4. What is box model? Center the input tag?

Ans.

Box model is a way of representing HTML elements as rectangular boxes with content, padding, border, and margin.

  • The box model consists of content, padding, border, and margin.

  • Content is the actual content of the element.

  • Padding is the space between the content and the border.

  • Border is the line that surrounds the padding and content.

  • Margin is the space between the border and other elements.

  • To center an input tag, set margin-left and margin-right to auto and display to block.

Add your answer
Discover OCH Chemicals & Systems interview dos and don'ts from real experiences

Q5. What is useState in react?

Ans.

useState is a hook in React that allows functional components to have state variables.

  • useState is a built-in hook in React.

  • It allows functional components to have state variables.

  • It takes an initial state value and returns an array with the current state value and a function to update it.

  • The state can be updated using the function returned by useState.

  • Example: const [count, setCount] = useState(0);

Add your answer

Q6. What is temporal deadzone ?

Ans.

Temporal dead zone is a behavior in JavaScript where a variable cannot be accessed before it is declared.

  • Variables declared with let and const are hoisted but cannot be accessed before their declaration

  • Trying to access a variable in its temporal dead zone results in a ReferenceError

  • Temporal dead zone is a feature introduced in ES6 to improve JavaScript's scoping mechanism

Add your answer

Q7. Data Types In Javascript

Ans.

Data types in JavaScript include primitive and object types.

  • Primitive types include string, number, boolean, null, undefined, and symbol.

  • Object types include arrays, functions, and objects.

  • Typeof operator can be used to determine the type of a variable.

  • Type coercion can occur when different types are used together.

Add your answer

Q8. Difference between Javascript and Java

Ans.

Javascript is a scripting language used for web development, while Java is a general-purpose programming language.

  • Javascript is interpreted, while Java is compiled

  • Javascript is used for client-side scripting, while Java is used for server-side programming

  • Javascript is loosely typed, while Java is strongly typed

  • Javascript has a prototype-based object model, while Java has a class-based object model

Add your answer

Q9. What is React Vdom ?

Ans.

React Vdom is a virtual representation of the actual DOM used by React to optimize rendering performance.

  • Vdom is a lightweight copy of the actual DOM tree.

  • React compares the previous and current Vdom trees to determine the minimum number of changes required to update the actual DOM.

  • This approach reduces the number of DOM manipulations and improves performance.

  • Vdom can be created using React.createElement() or JSX syntax.

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
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