Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

Nodejs_javascript_Logical interview questions

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
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Nodejs_javascript_Logical interview questions

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
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

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 Node.js? Where can you use it?
2. Why use Node.js?
3. How does Node.js work?
4. Why is Node.js Single-threaded?
5. If Node.js is single-threaded, then how does it handle concurrency?
6. Explain callback in Node.js.
7. What are the advantages of using promises instead of callbacks?
8. How would you define the term I/O?
9. How is Node.js most frequently used?
10. Explain the difference between frontend and backend development?
11. What is NPM?
12. What are the modules in Node.js?
13. What is the purpose of the module .Exports?
14. What is the difference between Angular and Node.js?
15. Which database is more popularly used with Node.js?
16. What are some of the most commonly used libraries in Node.js?
17. What are the pros and cons of Node.js?
18. What is the command used to import external libraries?
19. What does event-driven programming mean?
20. What is an Event Loop in Node.js?
21. What is an EventEmitter in Node.js?
22. What are the two types of API functions in Node.js?
23. What is the package.json file?
24. How would you use a URL module in Node.js?
25. What is the Express.js package?
26. How do you create a simple Express.js application?
27. What are streams in Node.js?
28. How do you install, update, and delete a dependency?
29. How do you create a simple server in Node.js that returns Hello World?
30. Explain asynchronous and non-blocking APIs in Node.js
31. How do we implement async in Node.js?
32. What is a callback function in Node.js?
33. What is REPL in Node.js?
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 Node.js?
37. What is the buffer class in Node.js?
38. What is piping in Node.js?
39. What are some of the flags used in the read/write operations in files?
40. How do you open a file in Node.js?
41. What is callback hell?
42. What is a reactor pattern in Node.js?
43. What is a test pyramid in Node.js?
44. For Node.js, why does Google use the V8 engine?
45. Describe Node.js exit codes.
46. Explain the concept of middleware in Node.js.
47. What are the different types of HTTP requests?
48. How would you connect a MongoDB database to Node.js?
49. What is the purpose of NODE_ENV?
50. List the various Node.js 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 Node.Js project?
54. How is Node.js 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 module.exports?
57. What is the difference between JavaScript and Node.js?
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 Node.js?
62. What is the difference between Node.js and Ajax?
63. What is the advantage of using Node.js?
64. Does Node run on Windows?
65. Can you access DOM in Node?
66. Why is Node.JS quickly gaining attention from JAVA programmers?
67. What are the Challenges with Node.js?
68. What is "non-blocking" in node.js?
69. How does Node.js overcome the problem of blocking I/O operations?
70. How can we use async await in node.js?
71. Why should you separate the Express app and server?
72. Explain the concept of stub in Node.js.
73. What is the framework that is used majorly in Node.js today?
74. What are the security implementations that are present in Node.js?
75. What is Libuv?
76. What are global objects in Node.js?
77. Why is assert used in Node.js?
78. Why is ExpressJS used?
79. What is the use of the connect module in Node.js?
80. What's the difference between 'front-end' and 'back-end' development?
81. What are LTS releases of Node.js?
82. What do you understand about ESLint?
83. How does Node.js handle the child threads?
84. What is an Event Emitter in Node.js?
85. How to Enhance Node.js Performance through Clustering?
86. What is a thread pool, and which library handles it in Node.js?
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 Node.js?
90. What is meant by tracing in Node.js?
91. Where is package.json used in Node.js?
92. What is the difference between readFile and create Read Stream in Node.js?
93. What is the use of the crypto module in Node.js?
94. What is a passport in Node.js?
95. How to get information about a file in Node.js?
96. How does the DNS lookup function work in Node.js?
97. What is the difference between setImmediate() and setTimeout()?
98. Does Node.js provide any Debugger?
99. Do you have any past Node.js 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 Node.js role?
102. What Is Express JS?
103. Why Express JS?
104. Features of Express JS
105. Advantages of Using Express With Node.js
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 Node.js authentication with JWT
111. 6. JSON Web Token Authentication with Node.js
112. 5. Node.js MySQL
113. 4. Node.js 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