Zoho
10+ Eminence Business Media Interview Questions and Answers
Q1. What is a class in js means? And explain its use case
A class in JavaScript is a blueprint for creating objects with similar properties and methods.
Classes are used to create multiple objects with the same structure and behavior.
They provide a way to organize and encapsulate related data and functions.
Classes can have properties (variables) and methods (functions) that define their behavior.
Instances of a class can be created using the 'new' keyword.
Classes can also have constructors, which are special methods called when an obj...read more
Q2. Whenever a row in table is modified, how can you make changes to reflect in another related table?
Use triggers to update related table on row modification.
Create a trigger on the main table to update the related table
Use the UPDATE statement in the trigger to modify the related table
Ensure that the trigger is efficient and does not cause performance issues
Test the trigger thoroughly to ensure that it works as expected
Q3. What is a critical rendering path?
The sequence of steps a browser takes to convert HTML, CSS, and JavaScript into a rendered page.
Includes parsing HTML, constructing the DOM tree, calculating styles, and executing JavaScript.
Optimizing the critical rendering path can improve page load times and user experience.
Examples of optimization techniques include minimizing render-blocking resources and using lazy loading.
The critical rendering path can vary depending on the browser and device being used.
Q4. What is the difference between instance and a class in real time ?
An instance is a specific object created from a class, while a class is a blueprint or template for creating objects.
An instance is created from a class using the 'new' keyword.
Classes define the properties and behaviors of objects, while instances represent specific objects with their own unique data.
Multiple instances can be created from the same class.
Classes can be thought of as a cookie cutter, while instances are the cookies cut out from the dough.
Example: Class 'Car' d...read more
Q5. What is a asynchronous in js means
Asynchronous in JS means executing code without blocking the main thread.
Asynchronous code allows other code to run while waiting for a task to complete.
It is commonly used for network requests, file I/O, and other time-consuming operations.
Callbacks, Promises, and Async/Await are common ways to handle asynchronous code in JS.
Q6. Finding whether the brackets are valid by looking at the string using an efficient data structure
Use stack data structure to efficiently check validity of brackets in a string.
Create an empty stack
Traverse the string character by character
If the character is an opening bracket, push it onto the stack
If the character is a closing bracket, check if it matches the top of the stack
If it matches, pop the top element from the stack
If it doesn't match or the stack is empty, return false
After traversing the entire string, if the stack is empty, return true
Otherwise, return false
Q7. What is a mobile first design
Mobile first design is an approach where the design and development of a website or application starts with the mobile version.
Designing for smaller screens first
Prioritizing content and functionality for mobile users
Adapting the design for larger screens
Focusing on speed and performance
Examples: Instagram, Twitter, and Facebook
Q8. How find second largest element in o(log n).
Use binary search to find the second largest element in O(log n) time complexity.
Sort the array in descending order.
Return the second element in the sorted array.
Example: Input [5, 2, 8, 10, 3], Output: 8
Q9. Rotate an array with the given number of times.
Rotate an array with given number of times.
Use a temporary array to store elements to be rotated
Loop through the original array and copy elements to the temporary array
Copy the rotated elements from the temporary array back to the original array
Q10. class diagram and system design for any fintech app
A fintech app class diagram and system design involves modeling classes, relationships, and interactions for financial services.
Identify key classes such as User, Account, Transaction, and Payment
Define relationships between classes (e.g. User has many Accounts, Account has many Transactions)
Consider security measures for sensitive financial data
Include features like authentication, authorization, and encryption
Design a scalable and efficient system architecture to handle hig...read more
Q11. building an application similar to Swiggy using Tomcat
Building a Swiggy-like application using Tomcat
Utilize Tomcat as the web server to handle HTTP requests
Implement a database to store user information, restaurant details, and orders
Develop a user-friendly interface for customers to browse restaurants and place orders
Integrate payment gateway for secure transactions
Implement features like order tracking, reviews, and ratings for restaurants
Ensure scalability and performance by optimizing code and server configurations
Q12. Define class in a real time scenario
A class in a real time scenario is like a blueprint for creating objects with similar properties and behaviors.
Classes are used to define the structure and behavior of objects in object-oriented programming.
They encapsulate data and methods that operate on that data.
For example, in a banking system, a 'Customer' class can have properties like name, account number, and methods like deposit, withdraw.
Classes help in organizing code, promoting reusability, and maintaining code c...read more
Q13. Coding in machine with complex problemns
Coding in machine with complex problems requires strong problem-solving skills and knowledge of algorithms.
Understand the problem thoroughly before starting to code
Break down the problem into smaller subproblems
Use appropriate data structures and algorithms to solve the problem efficiently
Test your code thoroughly to ensure it works correctly
Optimize your code for performance if necessary
Q14. How merge sort works.
Merge sort is a divide and conquer algorithm that divides the input array into two halves, sorts each half, and then merges them back together.
Divide the input array into two halves
Recursively sort each half
Merge the sorted halves back together
Q15. db modelling for accounting app
Database modeling for an accounting application
Identify entities such as customers, invoices, transactions, and accounts
Establish relationships between entities (e.g. one-to-many, many-to-many)
Consider normalization to reduce redundancy and improve data integrity
Use primary keys and foreign keys to maintain data consistency
Implement constraints to enforce business rules (e.g. unique constraints, check constraints)
Q16. Status code and meaning
Status codes are numerical codes used to indicate the status of an HTTP request.
200 - OK: Request was successful
404 - Not Found: Resource not found
500 - Internal Server Error: Server encountered an error
More about working at Zoho
Interview Process at Eminence Business Media
Top Member Technical Staff Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month