Wingify
20+ Pradeepit Consulting Services Interview Questions and Answers
Q1. when given time based logs, filter them using automation
Filter time based logs using automation
Use regular expressions to extract timestamps from logs
Implement a script or tool to filter logs based on specified time range
Consider using tools like grep, awk, or Python for automation
Automate the process to save time and ensure consistency
Test the automation script with different log files to ensure accuracy
Q2. what is generator functions? what is symbols? write an implementation for const keyword to support in es05.
Generator functions and symbols in JavaScript. Implementation of const keyword in ES5.
Generator functions are functions that can be paused and resumed, allowing for lazy evaluation of data.
Symbols are a new primitive type in ES6 that can be used as unique identifiers.
To implement const in ES5, we can use Object.defineProperty to create a read-only property on an object.
Q3. How is morder SDET different from normal QA
SDET focuses on developing automated tests and tools, while QA focuses on manual testing and bug reporting.
SDET is more focused on developing automated tests and tools to ensure software quality.
QA is more focused on manual testing, bug reporting, and ensuring the product meets requirements.
SDET often works closely with developers to integrate automated testing into the development process.
QA typically works independently to test the software and report bugs.
SDET requires pro...read more
Q4. given a series of numbers starting from 1, give the missing one
The missing number can be found by summing all numbers in the series and subtracting from the expected sum of consecutive numbers.
Sum all numbers in the series
Calculate the expected sum of consecutive numbers starting from 1
Subtract the sum of the series from the expected sum to find the missing number
Q5. You are given a student table having columns as id, name, and score. find the top 20 percentile of student's details based on their score.
Calculate top 20 percentile of student details based on score in a student table.
Calculate the 80th percentile score using formula: 80th_percentile = 0.8 * total_students
Sort the scores in descending order and find the score at 80th percentile position
Retrieve student details with scores greater than or equal to the 80th percentile score
Q6. Sort a provided map using values
Sort a map by values in Java
Create a list of map entries
Sort the list based on values using a custom comparator
Convert the sorted list back to a map
Q7. Picking up the right automation tool
Selecting the right automation tool is crucial for successful testing.
Consider the technology stack of the application being tested
Evaluate the features and capabilities of different automation tools
Assess the ease of use and learning curve for the team
Check for compatibility with existing testing frameworks
Look for good community support and documentation
Consider the cost and licensing of the tool
Q8. Find the maximum distance between any two leaf nodes of a binary tree.
Find the maximum distance between any two leaf nodes of a binary tree.
Traverse the tree to find the maximum depth of left and right subtrees
Calculate the maximum distance by adding the depths of left and right subtrees
Q9. Explain testing of the simple login page. Testing framework architechture. Explain some exceptions in Java selenium. Get Vs Post, HTTP port numbers
Testing a simple login page involves testing framework architecture, Java Selenium exceptions, and HTTP port numbers.
Testing the login functionality with valid and invalid credentials
Testing the error messages displayed for invalid credentials
Testing the session timeout functionality
Testing the password reset functionality
Using a testing framework like JUnit or TestNG
Handling exceptions like ElementNotVisibleException, NoSuchElementException, TimeoutException
Understanding the...read more
Q10. What is difference between == and ===
The '==' operator checks for equality after type coercion, while '===' checks for equality without type coercion.
The '==' operator compares two values after converting them to a common type.
The '===' operator compares two values without type conversion, so they must be of the same type to be considered equal.
Example: 1 == '1' will return true because the values are equal after type coercion, but 1 === '1' will return false because they are of different types.
Q11. what is call back hell in javascript
Callback hell refers to the situation where multiple nested callbacks make the code difficult to read and maintain.
Occurs when multiple asynchronous operations are nested within each other
Can lead to deeply nested code structure which is hard to follow
Can be avoided by using promises or async/await
Q12. Test Plan around a login form
Test plan for a login form
Identify test scenarios for valid/invalid credentials
Test password reset functionality
Verify error messages for incorrect inputs
Test for session timeout
Check for password encryption
Perform security testing for SQL injection
Test for compatibility across different browsers and devices
Q13. Explain memoization and write fibonacci code using memoization
Memoization is a technique to optimize function calls by caching their results.
Memoization is used to store the results of expensive function calls and return the cached result when the same inputs occur again.
It improves performance by avoiding redundant computations.
Fibonacci sequence is a classic example to demonstrate memoization.
Memoization can be implemented using an object or an array to store the cached results.
Q14. find Second largest number
To find the second largest number in an array, sort the array in descending order and return the second element.
Sort the array in descending order
Return the second element in the sorted array
Q15. explain or write custom events with example.
Custom events are user-defined events that can be triggered in a software application.
Custom events can be defined using event listeners and dispatchers.
They can be used to track user behavior, monitor application performance, and trigger specific actions.
Examples of custom events include button clicks, form submissions, and page scrolls.
Q16. Custom implementation of array flat method
Custom implementation of array flat method
Create a function that takes an array as input
Iterate through each element of the array
If an element is an array, recursively call the function on that element
If an element is a string, add it to the result array
Return the result array
Q17. How does the product help customers?
Our product helps customers by providing personalized solutions to their specific needs, increasing efficiency and satisfaction.
Our product offers customizable features to meet individual customer requirements.
It streamlines processes and automates tasks, saving time and resources for customers.
Customers receive ongoing support and guidance to maximize the benefits of the product.
For example, a customer in the e-commerce industry can use our product to track customer interact...read more
Q18. Polyfill for Promise All,
A polyfill is a code that adds a feature which the browser may not support. Promise.all() polyfill can be used for older browsers.
Create a function that takes an array of promises as input
Return a new promise that resolves when all promises in the input array have resolved
If any promise in the input array rejects, reject the new promise with the reason of the first promise that rejects
Use setTimeout and recursion to check if all promises have resolved
If the browser supports P...read more
Q19. Design least recently used cache.
Design a least recently used cache system.
Use a combination of a hash map and a doubly linked list to keep track of the least recently used items.
When a new item is accessed, move it to the front of the list.
If the cache is full, remove the least recently used item from the end of the list.
Q20. What is async await
Async await is a feature in JavaScript that allows for asynchronous code to be written in a synchronous manner.
Async await is built on top of promises and provides a cleaner syntax for handling asynchronous operations.
It allows you to write asynchronous code that looks like synchronous code, making it easier to read and maintain.
The 'async' keyword is used to define a function as asynchronous, while the 'await' keyword is used to pause the execution of the function until a pr...read more
Q21. Design a mall elevator system.
Design a mall elevator system to efficiently transport people between floors.
Consider the number of floors in the mall and the average foot traffic
Implement a system to prioritize elevator usage based on demand
Include safety features such as emergency stop buttons and weight limits
Top HR Questions asked in Pradeepit Consulting Services
Interview Process at Pradeepit Consulting Services
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month