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

JavaScript & Node.js Interview Guide

The document contains a comprehensive list of questions and programming tasks related to JavaScript, Node.js, and logical programming challenges. It covers various topics such as data types, functions, error handling, and asynchronous programming in JavaScript, as well as Node.js concepts like event-driven programming and middleware. Additionally, it includes logical programming exercises that require implementing algorithms and data manipulation techniques.

Uploaded by

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

JavaScript & Node.js Interview Guide

The document contains a comprehensive list of questions and programming tasks related to JavaScript, Node.js, and logical programming challenges. It covers various topics such as data types, functions, error handling, and asynchronous programming in JavaScript, as well as Node.js concepts like event-driven programming and middleware. Additionally, it includes logical programming exercises that require implementing algorithms and data manipulation techniques.

Uploaded by

tanviladva01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JavaScript

1. What are the different data types present in javascript?


2. Explain Hoisting in javascript.
3. Why do we use the word “debugger” in javascript?
4. Difference between “ == “ and “ === “ operators.
5. Difference between var and let keyword in javascript.
6. Explain Implicit Type Coercion in javascript.
7. Is javascript a statically typed or a dynamically typed language?
8. What is NaN property in JavaScript?
9. Explain passed by value and passed by reference.
10. What is an Immediately Invoked Function in JavaScript?
11. What do you mean by strict mode in javascript and characteristics of javascript strict-mode?
12. Explain Higher Order Functions in javascript.
13. Explain “this” keyword.
14. What do you mean by Self Invoking Functions?
15. Explain call(), apply() and, bind() methods.
16. What is the difference between exec () and test () methods in javascript?
17. What is currying in JavaScript?
18. What are some advantages of using External JavaScript?
19. Explain Scope and Scope Chain in javascript.
20. Explain Closures in JavaScript.
21. Mention some advantages of javascript.
22. What are object prototypes?
23. What are callbacks?
24. What are the types of errors in javascript?
25. What is memoization?
26. What is recursion in a programming language?
27. What is the use of a constructor function in javascript?
28. What is DOM?
29. Which method is used to retrieve a character from a certain index?
30. What do you mean by BOM?
31. What is the distinction between client-side and server-side JavaScript?
32. What are arrow functions?
33. What do mean by prototype design pattern?
34. Differences between declaring variables using var, let and const.
35. What is the rest parameter and spread operator?
36. In JavaScript, how many different methods can you make an object?
37. What is the use of promises in javascript?
38. What are classes in javascript?
39. What are generator functions?
40. Explain WeakSet in javascript.
41. Why do we use callbacks?
42. Explain WeakMap in javascript.
43. What is Object Destructuring?
44. Difference between prototypal and classical inheritance
45. What is a Temporal Dead Zone?
46. What do you mean by JavaScript Design Patterns?
47. Is JavaScript a pass-by-reference or pass-by-value language?
48. Difference between Async/Await and Generators usage to achieve the same functionality.
49. What are the primitive data types in JavaScript?
50. What is the role of deferred scripts in JavaScript?
51. What has to be done in order to put Lexical Scoping into practice?
52. 58. Write a function that performs binary search on a sorted array.
53. 59. Implement a function that returns an updated array with r right rotations on an array of integers a .
54. 60. Write the code for dynamically inserting new components.
55. 61. Write the code given If two strings are anagrams of one another, then return true.
56. 62. Write the code to find the vowels
57. 63. In JavaScript, how do you turn an Object into an Array []?

Node JS
1. What is [Link]? Where can you use it?
2. Why use [Link]?
3. How does [Link] work?
4. Why is [Link] Single-threaded?
5. If [Link] is single-threaded, then how does it handle concurrency?
6. Explain callback in [Link].
7. What are the advantages of using promises instead of callbacks?
8. How would you define the term I/O?
9. How is [Link] most frequently used?
10. Explain the difference between frontend and backend development?
11. What is NPM?
12. What are the modules in [Link]?
13. What is the purpose of the module .Exports?
14. What is the difference between Angular and [Link]?
15. Which database is more popularly used with [Link]?
16. What are some of the most commonly used libraries in [Link]?
17. What are the pros and cons of [Link]?
18. What is the command used to import external libraries?
19. What does event-driven programming mean?
20. What is an Event Loop in [Link]?
21. What is an EventEmitter in [Link]?
22. What are the two types of API functions in [Link]?
23. What is the [Link] file?
24. How would you use a URL module in [Link]?
25. What is the [Link] package?
26. How do you create a simple [Link] application?
27. What are streams in [Link]?
28. How do you install, update, and delete a dependency?
29. How do you create a simple server in [Link] that returns Hello World?
30. Explain asynchronous and non-blocking APIs in [Link]
31. How do we implement async in [Link]?
32. What is a callback function in [Link]?
33. What is REPL in [Link]?
34. What is the control flow function?
35. How does control flow manage the function calls?
36. What is the difference between fork() and spawn() methods in [Link]?
37. What is the buffer class in [Link]?
38. What is piping in [Link]?
39. What are some of the flags used in the read/write operations in files?
40. How do you open a file in [Link]?
41. What is callback hell?
42. What is a reactor pattern in [Link]?
43. What is a test pyramid in [Link]?
44. For [Link], why does Google use the V8 engine?
45. Describe [Link] exit codes.
46. Explain the concept of middleware in [Link].
47. What are the different types of HTTP requests?
48. How would you connect a MongoDB database to [Link]?
49. What is the purpose of NODE_ENV?
50. List the various [Link] timing features.
51. What is WASI, and why is it being introduced?
52. What is a first-class function in Javascript?
53. How do you manage packages in your [Link] project?
54. How is [Link] better than other frameworks?
55. List down the two arguments that async. First, does the queue take as input?
56. What is the purpose of the [Link]?
57. What is the difference between JavaScript and [Link]?
58. What is the difference between asynchronous and synchronous functions?
59. What are the asynchronous tasks that should occur in an event loop?
60. What is the order of execution in control flow statements?
61. Are there any disadvantages to using [Link]?
62. What is the difference between [Link] and Ajax?
63. What is the advantage of using [Link]?
64. Does Node run on Windows?
65. Can you access DOM in Node?
66. Why is [Link] quickly gaining attention from JAVA programmers?
67. What are the Challenges with [Link]?
68. What is "non-blocking" in [Link]?
69. How does [Link] overcome the problem of blocking I/O operations?
70. How can we use async await in [Link]?
71. Why should you separate the Express app and server?
72. Explain the concept of stub in [Link].
73. What is the framework that is used majorly in [Link] today?
74. What are the security implementations that are present in [Link]?
75. What is Libuv?
76. What are global objects in [Link]?
77. Why is assert used in [Link]?
78. Why is ExpressJS used?
79. What is the use of the connect module in [Link]?
80. What's the difference between 'front-end' and 'back-end' development?
81. What are LTS releases of [Link]?
82. What do you understand about ESLint?
83. How does [Link] handle the child threads?
84. What is an Event Emitter in [Link]?
85. How to Enhance [Link] Performance through Clustering?
86. What is a thread pool, and which library handles it in [Link]?
87. How to measure the duration of async operations?
88. How to measure the performance of async operations?
89. What are the types of streams available in [Link]?
90. What is meant by tracing in [Link]?
91. Where is [Link] used in [Link]?
92. What is the difference between readFile and create Read Stream in [Link]?
93. What is the use of the crypto module in [Link]?
94. What is a passport in [Link]?
95. How to get information about a file in [Link]?
96. How does the DNS lookup function work in [Link]?
97. What is the difference between setImmediate() and setTimeout()?
98. Does [Link] provide any Debugger?
99. Do you have any past [Link] work experience?
100. Do you have any experience working in the same industry as ours?
101. Do you have any certification to boost your candidature for this [Link] role?
102. What Is Express JS?
103. Why Express JS?
104. Features of Express JS
105. Advantages of Using Express With [Link]
106. Limitations of Express JS
107. Companies That Are Using Express JS
108. Installation and the First Program
109. What is JSON Web Token?
110. Advantages of [Link] authentication with JWT
111. 6. JSON Web Token Authentication with [Link]
112. 5. [Link] MySQL
113. 4. [Link] MongoDB
114. What Is JSON Web Token?
115. JSON Web Token Structure
116. JWT Use Cases

Logical Questions
Logical Program:

1. WAP to Swapping of two variables using third variable.


2. WAP to Swap of two variables using without third variable.
3. WAP to find Rupees and Paisa from any rupees of 12.50
Input:
12.50
Output:
12 Rupees
50 Paisa
4. WAP to print sum of Digit of given number?
Input:
768
Output:
21
5. WAP to Print sum of first and last digit of given number?

Input:
768
Output:
15

Input :

8983
Output:

11

6. WAP to print sum of middle of digits of given number?

Input:
768
Output:
6

Input :

8983

Output:

17

7. WAP to print reverse number of given number?


8. WAP to check given number is palindrome or not?
9. WAP to check given number is Armstrong number or not?
10. WAP to check given number is magic number or not?
11. WAP to check given number is prime number or not?
12. WAP to find a factorial of given number.
13. WAP to print below series Fibonacci series
0, 1, 1, 2, 3, 5, 8, 13, 21
14. Make table of given number:
No: 5
5*1=5 5*2=10 5*3=15 5*4=20
15. Pattern

1 1 5 5 1 1
12 2 1 5 4 4 5 23 23
1 2 3 3 2 1 5 4 3 3 4 5 456 4 6
1 2 3 4 4 3 2 1 5 4 3 2 2 3 4 5 7 8 9 10 7 10
1 2 3 4 5 5 4 3 2 1 5 4 3 2 1 1 2 3 4 5 1112131415 1112131415

0 1 1 1 0 1
01 1 0 0 1 0 0 1 1 1 1
0 1 0 1 0 1 0 1 0 1 1 1 0 0 0 1 2 1
0 1 0 1 1 0 1 0 1 0 1 0 0 0 0 0 1 1 1 1 1 3 3 1
0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 1 1 1 1 0 0 0 0 0 1 4 6 4 1

* 1 5 4 3 2 1 1 2 3 4 5 1 *
* * * * 5 4 3 2 1 2 3 4 121 ***
* * * 1 2 3 5 4 3 1 2 3 12321 *****
* * * * * * * * 5 4 1 2 1234321 *******
* * * * * 1 2 3 4 5 5 1 123454321 ********
1112131415 1415
* *
** **
*** ***
**** ****
***** *****
**** ****
*** ***
** **
* *
16. WAP to find sum of all array values and find Average of array
17. WAP to find maximum and minimum values in Array
18. WAP to make Reverse array of given array
19. WAP to check Array is Palindrome or not
20. WAP to sort the array in ascending order and descending order using bubble sort.
21. WAP to insert one element on particular position in given array
22. WAP to delete one element in given array using position and Values
23. WAP to delete duplicate values in given array
OR

WAP to find unique values in given array

You might also like