Informatica Business Solutions
20+ Royal Engineered Stones Interview Questions and Answers
Q1. Difference between querySelector and getElementWithClass
querySelector selects elements using CSS selectors, while getElementWithClass selects elements by class name.
querySelector uses CSS selectors to select elements, while getElementWithClass selects elements by class name
querySelector can select elements based on any CSS selector, while getElementWithClass is limited to selecting elements by class name
querySelector returns the first matching element, while getElementWithClass returns a collection of elements with the specified c...read more
Q2. What is the difference between Process and Program?
Process refers to a series of actions or steps taken to achieve a specific goal, while Program refers to a set of instructions or code written to perform a specific task.
Process involves a series of steps or actions to achieve a goal, while Program involves a set of instructions or code.
Process is more abstract and can be applied to various contexts, while Program is more specific and often related to computer programming.
Examples of processes include manufacturing processes,...read more
Q3. Implementation and explanation of all oops concept
Object-oriented programming concepts include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: bundling data and methods that operate on the data into a single unit (class). Example: class Car with properties like color and methods like start() and stop().
Inheritance: allows a class to inherit properties and methods from another class. Example: class SUV inheriting from class Car.
Polymorphism: ability of a method to do different things based on the obje...read more
Q4. Coding based on string concept Find the middle node of linkedlist Sort algo used in Arrays.sort() method Explain hashing Difference between findElement and findElements Writing xpath for any dynamic element.
Finding the middle node of a linked list, explaining sorting algorithm used in Arrays.sort(), describing hashing, differentiating findElement and findElements, and writing xpath for dynamic elements.
To find the middle node of a linked list, use the slow and fast pointer approach.
Arrays.sort() method in Java uses a modified version of quicksort algorithm.
Hashing is a technique used to map data to a fixed-size array, called a hash table, using a hash function.
findElement is use...read more
Q5. What are the methods Present in Object Class
Some methods present in the Object class are toString(), equals(), hashCode(), getClass(), and clone().
toString() - returns a string representation of the object
equals() - compares two objects for equality
hashCode() - returns a hash code value for the object
getClass() - returns the runtime class of the object
clone() - creates and returns a copy of the object
Q6. Backend structure explanation in detail
Backend structure refers to the organization of server-side components that handle data processing and storage.
Backend structure typically includes databases, servers, APIs, and application logic.
Databases store and manage data, servers handle requests and responses, APIs facilitate communication between different components, and application logic processes data and implements business rules.
For example, a backend structure for an e-commerce website may include a MySQL databa...read more
Q7. What are different error codes in REST API
Error codes in REST API
400 Bad Request - The request was invalid or cannot be served
401 Unauthorized - Authentication failed or user does not have permissions for the requested operation
403 Forbidden - The authenticated user does not have access to the requested resource
404 Not Found - The requested resource could not be found
500 Internal Server Error - An error occurred on the server side
503 Service Unavailable - The server is currently unavailable
Q8. Diff between let and var
let is block scoped while var is function scoped in JavaScript.
let variables are limited to the block in which they are declared, while var variables are limited to the function in which they are declared.
Using let can help prevent variable hoisting issues that may occur with var.
let allows for better code readability and maintainability compared to var.
Q9. Closures in Javascript
Closures in JavaScript allow functions to access variables from their outer scope even after the outer function has finished executing.
Closures are created whenever a function is defined within another function.
Inner functions have access to the outer function's variables even after the outer function has returned.
Closures can be used to create private variables and functions in JavaScript.
Q10. Sort a stack without using any other data structure.
Sort a stack without using any other data structure.
Pop the top element and store it in a variable
Compare the variable with the top element of the stack
If the variable is smaller, push the top element back to the stack and repeat the process
If the variable is larger, push it back to the stack and repeat the process
Repeat until the stack is sorted in ascending order
Q11. What is client server architecture
Client server architecture is a model where client devices request services from a central server.
Client devices initiate requests to a central server
Server processes the request and sends back the response
Examples include web applications, email clients, and online gaming
Allows for centralized management and control of resources
Q12. What is Object Class?
Object Class is a classification system used in object-oriented programming to categorize objects based on their properties and behaviors.
Object Class defines the blueprint for creating objects
It includes attributes (data) and methods (functions) that the objects can have
Objects are instances of a class, each with its own unique data values
Example: Class 'Car' may have attributes like 'color' and 'model' and methods like 'drive' and 'stop'
Q13. React in detail
React is a JavaScript library for building user interfaces.
React is used for creating interactive UI components.
It allows for efficient updating of the UI by only re-rendering the components that have changed.
React uses a virtual DOM to improve performance.
Components in React can be reusable and composed together.
React can be used with other libraries like Redux for state management.
Q14. What is Virtual Memory
Virtual memory is a memory management technique that allows a computer to compensate for physical memory shortages by temporarily transferring data from RAM to disk storage.
Virtual memory allows programs to use more memory than is physically available on the computer.
It helps in multitasking by allowing multiple programs to run simultaneously.
Virtual memory uses a combination of RAM and disk space to store data that is not currently in use by programs.
When a program needs dat...read more
Q15. What are web socket in website development
Web sockets are a communication protocol that allows for real-time, two-way communication between a client and a server over a single, long-lived connection.
Web sockets enable real-time updates on a website without the need for constant polling.
They are commonly used in chat applications, online gaming, and live streaming services.
Web sockets use the ws:// or wss:// protocol in URLs to establish a connection.
Q16. what is multithreading ?
Multithreading is the ability of a CPU to execute multiple threads concurrently, allowing for improved performance and responsiveness.
Multithreading allows multiple threads to run concurrently within the same process.
Each thread has its own stack and program counter, but shares the same memory space.
Multithreading can improve performance by utilizing multiple CPU cores efficiently.
Examples of multithreading include web servers handling multiple client requests simultaneously ...read more
Q17. Design Restaurant Management System
Design a Restaurant Management System with features for reservations, orders, menu items, and billing.
Implement a reservation system for customers to book tables in advance.
Include a feature for placing and managing orders for both dine-in and takeout.
Create a menu management system for adding, updating, and removing menu items.
Incorporate a billing system that calculates total costs and generates receipts.
Ensure scalability by designing the system to handle a large number of...read more
Q18. Explain Data modeling with Start Schema
Data modeling with Star Schema involves organizing data into a central fact table surrounded by dimension tables.
Central fact table contains numerical data that is being analyzed
Dimension tables provide context to the data in the fact table
Each dimension table is connected to the fact table through foreign keys
Star Schema is commonly used in data warehousing for efficient querying
Q19. KMP string matching algorithm
KMP algorithm is used for pattern matching in strings by avoiding unnecessary comparisons.
KMP stands for Knuth-Morris-Pratt algorithm
It uses a prefix function to avoid unnecessary comparisons
It has a time complexity of O(n+m) where n is the length of the text and m is the length of the pattern
Example: Searching for 'abc' in 'ababcabcab' using KMP algorithm
Q20. What are api in backend
APIs in backend are interfaces that allow different software applications to communicate with each other.
APIs (Application Programming Interfaces) define the methods and data formats that applications can use to request and exchange information.
They allow different software systems to communicate with each other, enabling seamless integration and interoperability.
Examples of backend APIs include RESTful APIs, SOAP APIs, and GraphQL APIs.
APIs in backend are commonly used for a...read more
Q21. Longest Palidrimic Substring
The task is to find the longest palindromic substring in a given string.
Use dynamic programming to solve the problem efficiently.
Iterate through the string and expand around the center to check for palindromes.
Keep track of the longest palindromic substring found so far.
Handle both odd and even length palindromes separately.
Return the longest palindromic substring found.
Q22. Compare 2 values using constructor
Comparing 2 values using constructor in JavaScript
Create a constructor function that takes in two values as parameters
Inside the constructor function, compare the two values using conditional statements
Return the result of the comparison
Q23. Explain OSI model in detail
The OSI model is a conceptual framework that standardizes the functions of a telecommunication or computing system into seven layers.
The OSI model stands for Open Systems Interconnection model.
It divides network communication into seven layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
Each layer has specific functions and interacts with adjacent layers for data transmission.
Example: The Physical layer deals with the physical connection b...read more
Q24. Design LRU cache
Design a data structure for LRU cache with get and put operations, evicting least recently used item when capacity is reached.
Implement a doubly linked list to keep track of the order of keys based on their usage
Use a hashmap to store key-value pairs for quick access
Update the order of keys in the linked list when get or put operations are performed
Evict the least recently used item when the cache reaches its capacity
Q25. Design multistep form
Designing a multistep form for user input
Break down the form into multiple steps for better user experience
Use progress indicators to show users their current step
Allow users to navigate back and forth between steps
Validate input at each step before proceeding to the next
Q26. Design pagination component
Design a pagination component for displaying large sets of data in a user-friendly manner.
Include options for users to navigate to different pages
Display total number of pages and current page number
Allow users to jump to a specific page
Consider adding options for changing the number of items per page
Q27. Explain framework
A testing framework is a set of guidelines, coding standards, and tools used for creating and executing automated tests.
Provides a structure for organizing test scripts and test data
Offers reusable functions and libraries for common testing tasks
Integrates with test management tools for reporting and tracking test results
Supports different types of testing such as unit, integration, and end-to-end testing
Examples include Selenium, JUnit, TestNG, and Robot Framework
Top HR Questions asked in Royal Engineered Stones
Interview Process at Royal Engineered Stones
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month