Persistent Systems
20+ Bluewud Concepts Interview Questions and Answers
Given an unsorted array, find the K largest elements in non-decreasing order.
Sort the array in non-decreasing order.
Return the last K elements of the sorted array.
Q2. What is nodejs and difference between nodejs and javascript
Node.js is a server-side JavaScript runtime environment.
Node.js is built on top of the V8 JavaScript engine from Google Chrome.
It allows developers to write server-side code in JavaScript.
Node.js has a non-blocking I/O model, making it efficient for handling large amounts of data.
Node.js has a vast library of modules available through npm (Node Package Manager).
Write a program to print the follwing pattern in javascript.
*******
** **
* * * *
* ** *
* * * *
** **
*******
The program prints a star pattern using asterisks and spaces.
Use nested loops to iterate through rows and columns.
Determine the number of asterisks and spaces to print in each row.
Use conditional statements to decide when to print an asterisk or a space.
Q4. What is Difference between let var const,
let, var, and const are all used to declare variables in JavaScript, but they have different scoping rules and behaviors.
let and const were introduced in ES6, while var has been around since the beginning of JavaScript.
let and const are block-scoped, while var is function-scoped.
Variables declared with const cannot be reassigned, while let and var can be.
const variables must be initialized when they are declared, while let and var can be declared without initialization.
Exampl...read more
Q5. what is express js and why it is used in web apps and what is body parser
Express.js is a popular Node.js web framework used for building web applications. Body-parser is a middleware used to parse incoming request bodies.
Express.js is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
It provides a way to handle HTTP requests and responses, routing, middleware, and more.
Body-parser is a middleware used to parse incoming request bodies in a middleware before your handlers,...read more
Q6. what are the scope in javascript, describe each one.
Scopes in JavaScript determine the accessibility of variables and functions.
Global scope: variables and functions declared outside any function are accessible globally
Local scope: variables and functions declared inside a function are only accessible within that function
Block scope: variables declared with let and const are only accessible within the block they are declared in
Function scope: variables declared with var are accessible within the function they are declared in
Q7. what is callback hell, what is Promises?
Callback hell is a situation where nested callbacks make code unreadable. Promises are a solution to this problem.
Callback hell occurs when there are too many nested callbacks in asynchronous code
It makes the code difficult to read and maintain
Promises are a way to handle asynchronous operations without nested callbacks
Promises can be used to chain multiple asynchronous operations together
Promises have a resolve and reject function to handle success and failure respectively
Q8. what is passport.js why it is used
Passport.js is an authentication middleware for Node.js.
Passport.js provides a simple way to authenticate users with various authentication strategies such as local, OAuth, OpenID, etc.
It is highly customizable and can be integrated with any Node.js web application framework.
Passport.js maintains user sessions and provides a consistent API for authentication across different strategies.
Example: Using Passport.js with Express.js to authenticate users with Google OAuth2.
Example...read more
Q9. what is event loops and phases
Event loop is a mechanism that allows JavaScript to perform non-blocking I/O operations.
Event loop is a loop that constantly checks the message queue and executes the next message if there is any.
Phases are the different stages of the event loop, such as timers, I/O callbacks, idle, and poll.
Event loop is crucial for Node.js to handle multiple requests simultaneously without blocking the main thread.
Example: setTimeout() function is added to the timer phase and executed after...read more
Q10. what is Function hoisting
Function hoisting is a JavaScript behavior where function declarations are moved to the top of their scope.
Function declarations are moved to the top of their scope during the compilation phase.
Function expressions are not hoisted.
Hoisting can lead to unexpected behavior and bugs if not understood properly.
Q11. what are arrow functions
Arrow functions are a concise way to write functions in JavaScript.
They have a shorter syntax than traditional function expressions.
They do not have their own 'this' keyword.
They are not suitable for methods, constructors, or prototype methods.
Example: const add = (a, b) => a + b;
Example: const square = x => x * x;
Q12. why nodejs is single Threaded
Node.js is single-threaded to optimize performance and simplify programming.
Node.js uses an event-driven, non-blocking I/O model.
This allows for efficient handling of multiple requests without creating new threads.
Node.js also uses a single event loop to manage all I/O operations.
This simplifies programming by eliminating the need for complex thread synchronization.
However, Node.js can still take advantage of multi-core systems by creating child processes.
Q13. write a sql query to select 2nd highest from a column of a table
SQL query to select 2nd highest from a column of a table
Use ORDER BY to sort the column in descending order
Use LIMIT to select the second row
Use subquery to avoid duplicates
Q14. List manipulation using list comprehension and lambda function for prime number
Using list comprehension and lambda function to manipulate a list of prime numbers
Use list comprehension to generate a list of numbers
Use a lambda function to check if a number is prime
Filter the list of numbers using the lambda function to get prime numbers
Q15. difference between node and expressjs
Node is a runtime environment for executing JavaScript code, while Express is a web application framework built on top of Node.
Node provides the platform for running JavaScript code outside of a web browser
Express is a lightweight framework that simplifies building web applications on top of Node
Express provides features like routing, middleware, and templating that make it easier to build web applications
Node and Express are often used together to build scalable and efficien...read more
Q16. What us sdlc? Use of it.
SDLC stands for Software Development Life Cycle. It is a process used by software development teams to design, develop, and test high-quality software.
SDLC involves planning, designing, coding, testing, and deployment stages.
It helps in ensuring that the software meets the requirements and is delivered on time and within budget.
Examples of SDLC models include Waterfall, Agile, and DevOps.
Each stage of SDLC has specific goals and deliverables to be achieved.
Q17. What is oops? Pilars or oops.
OOPs stands for Object-Oriented Programming. It is based on four main principles: Inheritance, Encapsulation, Abstraction, and Polymorphism.
OOPs is a programming paradigm that focuses on objects and classes.
The four main pillars of OOPs are Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation refers to the bundling of data and methods that operate on the data into a single unit...read more
Q18. What is devops and why devops?
DevOps is a software development methodology that combines software development (Dev) with IT operations (Ops) to improve collaboration and efficiency.
DevOps aims to automate and streamline the software development process.
It focuses on continuous integration, continuous delivery, and continuous deployment.
DevOps encourages a culture of collaboration, communication, and shared responsibility between development and operations teams.
Tools commonly used in DevOps include Jenkin...read more
Q19. SQL query for 2nd highest salary
SQL query to find the 2nd highest salary in a table
Use the ORDER BY clause to sort the salaries in descending order
Use the LIMIT clause to limit the result to the second row
Consider handling cases where there might be ties for the highest salary
Q20. Move all the zeros at last
Move all zeros in an array to the end while maintaining the order of other elements.
Iterate through the array and move all zeros to the end while keeping the order of non-zero elements.
Use two pointers approach to swap elements in-place.
Example: Input [0, 1, 0, 3, 12], Output [1, 3, 12, 0, 0]
Q21. Binary search algorithm explanation
Binary search is a divide and conquer algorithm that efficiently finds the target value in a sorted array.
Divide the array in half and compare the target value with the middle element
If the target value is smaller, search the left half. If larger, search the right half
Repeat the process until the target value is found or the subarray is empty
Q22. What is state file?
A state file is a file used to store the current state of a system or application.
State files are commonly used in software development to save the current state of an application for later retrieval.
They can be used to store variables, configurations, or other data that needs to persist between sessions.
State files are often used in configuration management tools like Terraform to track the state of infrastructure resources.
Examples of state files include .tfstate files in T...read more
Q23. When you are joine
Joining a new team requires understanding the team dynamics and culture.
Take time to observe and learn about the team's communication style and work processes.
Be open to feedback and willing to adapt to the team's way of doing things.
Build relationships with team members and establish trust through open communication.
Ask questions and seek clarification to ensure a clear understanding of expectations and goals.
Contribute your skills and expertise to the team while also being ...read more
Q24. SQL Queries using JOINS
SQL queries using JOINs are used to combine rows from two or more tables based on a related column between them.
Use INNER JOIN to return rows when there is at least one match in both tables.
Use LEFT JOIN to return all rows from the left table and the matched rows from the right table.
Use RIGHT JOIN to return all rows from the right table and the matched rows from the left table.
Use FULL JOIN to return rows when there is a match in one of the tables.
Example: SELECT * FROM tabl...read more
Interview Process at Bluewud Concepts
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month