Extramarks Education
Tekfen Construction Interview Questions and Answers
Q1. What is react, diff between react and angular, deep copy shallow copy, hoisting, diff between props and state
React is a JavaScript library for building user interfaces. It is different from Angular in various ways.
React is a library while Angular is a framework
React uses virtual DOM while Angular uses real DOM
React is more flexible and easier to learn than Angular
Deep copy creates a new object with the same values while shallow copy creates a new reference to the same object
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their sco...read more
Q2. Q1. Find palindrome strings in an array of strings.
Finding palindrome strings in an array of strings.
Iterate through each string in the array.
For each string, check if it is equal to its reverse to determine if it is a palindrome.
Store palindrome strings in a separate array or print them out.
Q3. Implement custom hooks and array flat method
Implement custom hooks and array flat method
Custom hooks are reusable functions that allow you to extract component logic into reusable functions
Array flat method is used to flatten an array of nested arrays into a single array
To implement custom hooks, create a function that uses the useState and useEffect hooks
To implement array flat method, use the reduce method to flatten the array
Q4. Q2 what are closures?
Closures are functions that have access to variables from their containing scope even after the parent function has finished executing.
Closures allow functions to maintain access to variables from their parent scope
They are created when a function is defined within another function
Closures are commonly used in event handlers and callbacks
Q5. Q1 difference between let and const
let is mutable and can be reassigned, const is immutable and cannot be reassigned
let allows reassignment of values, const does not
const must be initialized with a value, let can be declared without a value
const is block-scoped, let is function-scoped
Q6. Q3. What is typeof null
typeof null returns 'object' in JavaScript.
typeof null is 'object' in JavaScript
This is a historical bug in JavaScript that has not been fixed for backward compatibility
Example: console.log(typeof null) will output 'object'
Q7. Q2. Explain debouncing with example.
Debouncing is a technique used to limit the rate at which a function is called.
Debouncing is used to prevent multiple rapid calls to a function, typically in response to user input.
It involves setting a delay before allowing the function to be called again.
Example: Debouncing a search input field to only trigger the search function after the user has stopped typing for a certain period.
Interview Process at Tekfen Construction
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month