Bharti Airtel
10+ Pratik Resources Interview Questions and Answers
Q1. N-th Fibonacci Number Problem Statement
Given an integer ‘N’, your task is to find and return the N’th Fibonacci number using matrix exponentiation.
Since the answer can be very large, return the answer modulo ...read more
Q2. Covid Vaccination Distribution Problem
As the Government ramps up vaccination drives to combat the second wave of Covid-19, you are tasked with helping plan an effective vaccination schedule. Your goal is to ma...read more
Q3. Swap Kth Elements in an Array
Given an array ARR
of size N
, perform the operation to swap the Kth element from the beginning with the Kth element from the end of the array.
Example:
Input:
N = 5, K = 2
ARR = [1,...read more
Q6. Why react is fast than other frameworks
React is faster than other frameworks due to its virtual DOM, efficient diffing algorithm, and use of server-side rendering.
React uses a virtual DOM which allows it to update only the necessary components instead of re-rendering the entire page.
React's efficient diffing algorithm compares the virtual DOM with the actual DOM to minimize updates and improve performance.
React supports server-side rendering, which can improve initial load times by rendering the UI on the server b...read more
Q7. What is MFS in abinitio?
MFS in Abinitio stands for Multi-File System, which is a feature that allows Abinitio graphs to read/write data from multiple files simultaneously.
MFS allows parallel processing of data from multiple files in Abinitio graphs
It helps in improving performance by distributing the workload across multiple files
MFS can be configured to read/write data from/to different file systems or locations
Example: Using MFS, a graph can read data from multiple input files and write the output...read more
Q8. JavaScript prototype sorting function
JavaScript prototype sorting function for arrays of strings
Use the Array.prototype.sort() method to sort an array of strings
Pass a compare function to specify the sorting order
Example: ['banana', 'apple', 'cherry'].sort((a, b) => a.localeCompare(b))
Q9. Session Management in applications
Session management is the process of securely managing user sessions in web applications.
Use cookies or tokens to track user sessions
Implement session timeout to prevent unauthorized access
Store session data securely on the server side
Use HTTPS to encrypt session data during transmission
Q10. Promise polyfill from scratch
Creating a Promise polyfill from scratch involves implementing the Promise API using callbacks and handling asynchronous operations.
Understand the Promise API and its methods (resolve, reject, then, catch)
Implement a constructor function that takes an executor function as an argument
Handle asynchronous operations using callbacks and setTimeout
Implement the then and catch methods to handle success and error cases respectively
Interview Process at Pratik Resources
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month