0% found this document useful (0 votes)
54 views6 pages

Mean Stack Developer Questions Basic: 'False'

The document contains interview questions for a Mean Stack developer role covering basic JavaScript concepts, logical reasoning, AngularJS concepts, performance optimization, algorithms, and data structures. Some example questions include differences between == and ===, implementing currying, finding prime factors, improving scrolling performance, and explaining insertion sort, hash tables, and red-black trees.

Uploaded by

Mubashar Ehsan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views6 pages

Mean Stack Developer Questions Basic: 'False'

The document contains interview questions for a Mean Stack developer role covering basic JavaScript concepts, logical reasoning, AngularJS concepts, performance optimization, algorithms, and data structures. Some example questions include differences between == and ===, implementing currying, finding prime factors, improving scrolling performance, and explaining insertion sort, hash tables, and red-black trees.

Uploaded by

Mubashar Ehsan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Mean Stack Developer Questions

Basic

 What the differences are between == and ===?


 How would you compare two objects in JavaScript?
 In Boolean:
1. Is 'false' is false?
2. What will be value of [] in Boolean type?
3. What is output of {} in Boolean type?
4. Is Boolean (function () {}) true or false?
5. What will be output of 2 + true?
 What will be output of 4+3+2+"1"?
 What is the value of -'34'+10?
 Write the output of Math.max ([5, 16, 7, 11]);?
 Which is the example of closure, please select
1. function a () {
function b () {
console.log ('Guess me');
}
b ();
}
2. function counter(){
var i = 0;

return function(){
return i++;
}
}
 How would you implement currying for any functions?

 What will you see in the console for the following example?
var a = 1;
function b() {
a = 10;
return;
function a() {}
}
b();
console.log(a);

Logical

 Please write a function to find all prime factors of a number?


 Write a function to remove duplicate members from an array.

 How can a string “I am going to seebiz employee" be reverse like "I ma gniog ot zibees
eeyolpme"? Please note that the words are in place but reverse.

 Find a missing a number (only 1) from an unsorted array of numbers, range 1 to 100.

 Write a function to count values with zeros upto ‘n’. E.g. if n= ‘20’, answer will be 3 (0, 10, 20)

 How can you evaluate the balanced parentheses in a given expression? Write code
 Write a function to determine if given number is a power of 2. If yes return the number else
return -1.

 You have a set of date intervals represented by StartDate and EndDate. How would you
efficiently calculate the longest timespan covered by them?

 How would you optimally calculate p^k, where k is a non-negative integer?

JS concepts

 What is the difference in these promises?


o myEvaluation().then(function () {
return willBePassed();
});
o myEvaluation ().then(function () {
willBePassed ();
});
o myEvaluation ().then(willBePassed ());
o myEvaluation ().then(willBePassed);
 List at least three ways to communicate between modules of your application using core AngularJS
functionality.
 In AngularJS, how do you reset a “$timeout”, and disable a “$watch()”?
 List a few ways to improve performance in an AngularJS app.
 What are the differences between DOM and BOM?

Performance

 What tools you use to find a performance bug in your code?

 How can you improve your website's scrolling performance?

 What are the differences between layout, painting and compositing?

 What are the best practices of code testing? Please write minimum 5.
 What is the purpose of a code linting tool?

 What is domain pre-fetching and how does it help with performance?

 What tools would you use to test code's functionality?

 What are the differences between Long-Polling, Websockets and Server-Sent Events?

 List all the HTTP methods, and briefly explain.

 What is the usage of ‘OPTIONS’ method?

 What is CONNECT method? How can we best use in development?

 How does domain pre-fetching helps to improve performance?

 What is CDN? Please explain some benefits of using CDN.

 Please explain these headers responses


o Expires

o Date

o Age

o If-Modified

o Transfer-Encoding
o ETag

o X-Frame-Options

 What is the difference between local storage and session storage?

 What are the limitations of web storage?

 What is maximum size of data can be store in web storage?

 Cookies vs local storage

 What is difference between web storage and indexedDB in browsers?

 What are web workers? Can they modify DOM directly?

Algorithms

 How do Insertion sort, Heapsort, Quicksort, and Merge sort work?


 Please explain Hash Table with example?
 What are Red-Black Trees and B-Trees? What is the best use case for each of them?
 What are the Dijkstra and Prim algorithms, and how are they implemented?
 What is the Bellman-Ford algorithm for finding single source shortest paths?
 What are Divide and Conquer algorithms? Describe how they work.

You might also like