Myanatomy Integration
Interview Questions and Answers
Q1. Is nodejs is single Threaded or multi threaded ?
Node.js is single threaded, but it uses non-blocking I/O operations to handle multiple requests concurrently.
Node.js runs on a single thread event loop, but it uses worker threads for CPU-intensive tasks.
It employs asynchronous programming to handle multiple requests without blocking the main thread.
Node.js can handle multiple requests concurrently by delegating I/O operations to the operating system.
Example: Using callbacks or Promises in Node.js allows for non-blocking oper...read more
Q2. Difference between sql and mongoDB? Difference between mysql and nosql
SQL is a relational database management system, while MongoDB is a NoSQL database. MySQL is a specific implementation of SQL, while NoSQL is a category of databases.
SQL databases are table-based, with a predefined schema, while MongoDB is document-based, using collections and documents.
SQL databases use structured query language for defining and manipulating data, while MongoDB uses JSON-like documents with dynamic schemas.
SQL databases are vertically scalable, while NoSQL da...read more
Q3. How will you schedule tasks to CPUs based on there priorities ?
CPU scheduling is done using algorithms like FCFS, SJF, RR, etc. based on priority and burst time.
Priorities are assigned to tasks based on their importance and urgency
FCFS (First Come First Serve) algorithm schedules tasks in the order they arrive
SJF (Shortest Job First) algorithm schedules tasks with the shortest burst time first
RR (Round Robin) algorithm schedules tasks in a circular queue with a fixed time slice
Priority scheduling algorithm schedules tasks based on their ...read more
Q4. codding assignment for form
Create a coding assignment for a form
Include a variety of input fields such as text, number, dropdown, checkbox, radio buttons
Validate user input to ensure data integrity
Implement functionality to submit the form and display a success message
Q5. What are Schema, Indexes, Event Loop, etc.
Schema defines the structure of a database, Indexes improve query performance, Event Loop manages asynchronous operations.
Schema is a blueprint of a database that defines tables, columns, relationships, etc.
Indexes are data structures that improve query performance by allowing faster data retrieval.
Event Loop is a mechanism that manages asynchronous operations in JavaScript.
Other important concepts for Full Stack Developers include REST APIs, MVC architecture, and version con...read more
Q6. Coding question Consecutive 1's not allowed in binary string
Write a function to generate binary strings without consecutive 1's.
Use dynamic programming to keep track of previous two states
Start with base cases of 0 and 1
For each new bit, check if adding it would create consecutive 1's
If not, add it to the string and update the previous two states
Repeat until desired length is reached
Q7. what is LRU cache and where to use it ?
LRU cache is a data structure that stores recently used items and discards the least recently used item when the cache is full.
LRU stands for Least Recently Used
It is used to improve the performance of applications by reducing the number of disk reads or network calls
It is commonly used in web browsers, databases, and operating systems
It can be implemented using a hash table and a doubly linked list
When an item is accessed, it is moved to the front of the list. When the cache...read more
Q8. Create form a to console.log input value
Create a form and log input value to console
Create an HTML form element with input field
Add an event listener to the form submit event
Retrieve the input value using JavaScript
Log the input value to console
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month