i
Deloitte
Filter interviews by
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope.
Variable declarations are hoisted but not their initializations.
Function declarations are fully hoisted.
Example: console.log(myVar); var myVar = 10; // Output: undefined
Example: console.log(myFunc()); function myFunc() { return 'Hello!'; } // Output: Hello!
Using map function to apply a callback function to each element in an array
Map function is used to iterate over an array and apply a callback function to each element
The callback function can perform operations on each element and return a new value
Example: arr.map(item => item * 2) will double each element in the array
HTML5 is the latest version of HTML with new features and improvements.
HTML5 supports new elements like <header>, <footer>, <nav>, <article>, <section> etc.
HTML5 supports new input types like email, url, date, range, color etc.
HTML5 supports new APIs like Geolocation, Web Storage, Web Workers, Canvas, Audio/Video etc.
Semantic elements in HTML provide meaning to the content, making it easier for search engines and screen readers to interpret.
Semantic elements are HTML tags that clearly define the content they wrap.
They provide structure and meaning to the content, making it more accessible and SEO-friendly.
Examples include <header>, <footer>, <nav>, <article>, <section>, <aside>, <main>...
What people are saying about Deloitte
The output will display the document object in the console.
Typing 'document' in the console will return the document object, which represents the current HTML document.
The document object provides access to the content and structure of the webpage, allowing manipulation of elements and properties.
Data can be passed in components using props in Vue.js and React.js.
In Vue.js, data can be passed down to child components using props.
In React.js, data can be passed down to child components using props as well.
In Vue.js, props are defined in the parent component and passed down to the child component.
In React.js, props are passed down from parent to child components as attributes.
DOM stands for Document Object Model, it is a programming interface for web documents. It represents the structure of a document as a tree of objects.
DOM is used to interact with HTML and XML documents in a structured way
It allows developers to manipulate the content, structure, and style of a website dynamically
DOM provides methods and properties to access and modify elements on a web page
Example: document.getEle...
Flexbox is best for one-dimensional layouts, Grid is best for two-dimensional layouts, DOM is the structure of a webpage, Box model is the layout of elements.
Flexbox is best for creating one-dimensional layouts like navigation bars or sidebars.
Grid is best for creating two-dimensional layouts like grids of images or cards.
DOM (Document Object Model) is the structure of a webpage, representing the elements as objec...
I appeared for an interview in Jan 2025.
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope.
Variable declarations are hoisted but not their initializations.
Function declarations are fully hoisted.
Example: console.log(myVar); var myVar = 10; // Output: undefined
Example: console.log(myFunc()); function myFunc() { return 'Hello!'; } // Output: Hello!
Using map function to apply a callback function to each element in an array
Map function is used to iterate over an array and apply a callback function to each element
The callback function can perform operations on each element and return a new value
Example: arr.map(item => item * 2) will double each element in the array
Flexbox is best for one-dimensional layouts, Grid is best for two-dimensional layouts, DOM is the structure of a webpage, Box model is the layout of elements.
Flexbox is best for creating one-dimensional layouts like navigation bars or sidebars.
Grid is best for creating two-dimensional layouts like grids of images or cards.
DOM (Document Object Model) is the structure of a webpage, representing the elements as objects.
Bo...
I appeared for an interview in Jan 2025.
Semantic elements in HTML provide meaning to the content, making it easier for search engines and screen readers to interpret.
Semantic elements are HTML tags that clearly define the content they wrap.
They provide structure and meaning to the content, making it more accessible and SEO-friendly.
Examples include <header>, <footer>, <nav>, <article>, <section>, <aside>, <main>, <...
HTML5 is the latest version of HTML with new features and improvements.
HTML5 supports new elements like <header>, <footer>, <nav>, <article>, <section> etc.
HTML5 supports new input types like email, url, date, range, color etc.
HTML5 supports new APIs like Geolocation, Web Storage, Web Workers, Canvas, Audio/Video etc.
Data can be passed in components using props in Vue.js and React.js.
In Vue.js, data can be passed down to child components using props.
In React.js, data can be passed down to child components using props as well.
In Vue.js, props are defined in the parent component and passed down to the child component.
In React.js, props are passed down from parent to child components as attributes.
I applied via Naukri.com
DOM stands for Document Object Model, it is a programming interface for web documents. It represents the structure of a document as a tree of objects.
DOM is used to interact with HTML and XML documents in a structured way
It allows developers to manipulate the content, structure, and style of a website dynamically
DOM provides methods and properties to access and modify elements on a web page
Example: document.getElementB...
The output will display the document object in the console.
Typing 'document' in the console will return the document object, which represents the current HTML document.
The document object provides access to the content and structure of the webpage, allowing manipulation of elements and properties.
Basic angular questions like-lazy loading, == === operator etc
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
Merge sort has a time complexity of O(n log n) in the worst case scenario.
Merge sort divides the array into two halves, sorts them recursively, and then merges them back together.
The time complexity of merge sort is O(n log n) in the worst case scenario.
For example, sorting an array of 8 elements would take 3 recursive calls to merge sort.
Create a palindrome checker using React JS to display on the UI
Create a input field for user to enter a string
Use state to store the input string
Create a function to check if the input string is a palindrome
Display the result on the UI
Javascript question on promise, callbacks, hosting
I appeared for an interview before Sep 2020.
Round duration - 90 minutes
Round difficulty - Medium
This test consists of two coding questions and some MCQ regarding computer fundamentals.
Kevin has two packs of cards. The first pack contains N cards, and the second contains M cards. Each card has an integer written on it. Determine two results: the tot...
Find total distinct card types and common card types between two packs of cards.
Create a set to store distinct card types when combining both packs.
Iterate through each pack and add card types to the set.
Find the intersection of card types between the two packs to get common card types.
Given an array of integers arr
, where arr[i]
represents the number of pages in the i-th
book, and an integer m
representing the number of students, allocate all the books ...
Allocate books to students in a way that minimizes the maximum number of pages assigned to a student.
Iterate through all possible allocations of books to students.
Calculate the maximum number of pages assigned to a student for each allocation.
Return the minimum of these maximums as the result.
Round duration - 40 minutes
Round difficulty - Easy
It was a technical round that is based on DSA and computer fundamentals.
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.
Use three pointers - prev, current, and next to reverse the linked list in O(N) time and O(1) space complexity.
Update the head of the reversed linked list as the last node encountered during the reversal process.
Given an integer array arr
of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.
The first line contains an integer 'T' representing the n...
Sort an array of 0s, 1s, and 2s in linear time complexity.
Use three pointers to keep track of 0s, 1s, and 2s while traversing the array.
Swap elements based on the values encountered to sort the array in-place.
Time complexity should be O(N) and space complexity should be O(1).
Tip 1 : If you are not able to complete something in-depth, clearly mention that to the interviewer.
Tip 2 : Practice DSA well.
Tip 3 : Try to think analytically and more logically,Your thinking skills matters a lot.
Tip 1 : Try to mention max no of projects
Tip 2 : DO not fake in your resume.
I applied via Campus Placement and was interviewed before Nov 2020. There was 1 interview round.
Program to calculate factorial
Use a loop to multiply the numbers from 1 to n
Handle edge cases like 0 and negative numbers
Use recursion for a more elegant solution
I have a strong background in software development, focusing on full-stack technologies and agile methodologies.
Bachelor's degree in Computer Science from XYZ University.
3 years of experience in web development using JavaScript, React, and Node.js.
Worked on a team project that improved application performance by 30%.
Experience with Agile methodologies, participating in daily stand-ups and sprint planning.
Contributed to...
based on 4 interview experiences
Difficulty level
Duration
based on 15 reviews
Rating in categories
Consultant
40.2k
salaries
| ₹10 L/yr - ₹21.5 L/yr |
Senior Consultant
24.9k
salaries
| ₹16.6 L/yr - ₹33.4 L/yr |
Analyst
16.7k
salaries
| ₹5 L/yr - ₹12 L/yr |
Assistant Manager
11.3k
salaries
| ₹12.1 L/yr - ₹22 L/yr |
Manager
7.9k
salaries
| ₹24.6 L/yr - ₹43.8 L/yr |
Accenture
PwC
Ernst & Young
Cognizant