HCLTech
10+ The Jain International School Interview Questions and Answers
Q1. Write pseudo code to arrange a random list of numbers in Ascending order
Pseudo code to sort a random list of numbers in ascending order
Loop through the list and compare adjacent elements
If the left element is greater than the right element, swap them
Repeat until no swaps are needed
Q2. Write program to swap between two numbers without using temp variables
Program to swap two numbers without using temp variables
Use arithmetic operations to swap the values
Add the two numbers and store the result in the first variable
Subtract the second variable from the result and store it in the second variable
Q3. How to write a procedure in PL/1
To write a procedure in PL/1, use the PROC statement followed by the procedure name and the necessary code.
Begin with the PROC statement followed by the procedure name
Add the necessary code within the procedure
End the procedure with the END statement
Example: PROC MYPROC; /* code here */ END MYPROC;
Q4. How the login components works in Angular
Login components in Angular handle user authentication and authorization.
Use Angular's built-in forms module to create login form
Implement authentication service to handle login logic
Use Angular router to navigate to different pages based on login status
Q5. What is event loop in javascript
Event loop is a mechanism in JavaScript that allows for asynchronous programming by handling and executing tasks in a non-blocking manner.
Event loop is responsible for managing the execution of code in JavaScript.
It continuously checks for tasks in the event queue and executes them one by one.
Tasks can be added to the event queue through various mechanisms like timers, user interactions, or network requests.
The event loop ensures that the JavaScript runtime remains responsive...read more
Q6. Explain Stacks, Heaps, Sorting techniques
Stacks and heaps are data structures used to store and manage memory. Sorting techniques are algorithms used to sort data.
Stacks are a LIFO (last in, first out) data structure. Examples include the call stack in programming and undo/redo functionality in text editors.
Heaps are a dynamic memory allocation technique. Examples include the heap memory in programming and the memory allocation in operating systems.
Sorting techniques include bubble sort, insertion sort, selection so...read more
Q7. Difference between let const and var
let, const, and var are JavaScript keywords used to declare variables, but they have different scoping and reassignment rules.
let and const are block-scoped, while var is function-scoped.
let and var allow variable reassignment, while const does not.
let and const are hoisted to the top of their block, but not initialized, while var is hoisted and initialized with undefined.
let and const are part of the ES6 (ECMAScript 2015) standard, while var is the older way of declaring var...read more
Q8. Call bind applied in javascript
bind is a method in JavaScript used to create a new function with a specified 'this' value and initial arguments.
bind() returns a new function with the specified 'this' value and arguments.
The original function is not called immediately when bind() is used.
bind() can be used to partially apply arguments to a function.
The bound function can be called with additional arguments.
The 'this' value inside the bound function will always be the specified value.
Q9. Ar hitecture of current project
Microservices architecture using Docker containers and Kubernetes for scalability and flexibility.
Utilizes microservices architecture for modularity and scalability
Docker containers used for easy deployment and management
Kubernetes for orchestration and scaling of containers
Q10. What is abstract
Abstract is a concept or idea that is not concrete or tangible.
Abstract classes in programming are classes that cannot be instantiated and are meant to be inherited by other classes.
Abstract data types are data types defined by their behavior and operations, rather than their implementation.
Abstract art is art that does not attempt to represent an accurate depiction of visual reality.
Interview Process at The Jain International School
Top Senior Software Engineer 2 Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month