SarthiQ

SarthiQ

Interview Preparation Guide

Ola
Questions & Answers

A comprehensive, expert-curated list of real interview questions to help you prepare effectively and land your dream job.

Document Details

Topic / Subject
Ola
Content Length
16 Curated Q&A
Generated On
October 4, 2026
Provided By
SarthiQ.com
Want to explore more questions & mock interviews? Click on 👉www.sarthiq.com
© 2026 SarthiQ Platform. All rights reserved.
www.sarthiq.com
Resume Upload Get Job in 90 Days Resume Builder AI Interview Coach Interview Questions Placement Committee Self Assessment Get Internship

Need Help?

[email protected]

Top Ola Interview Questions

NETFLIX
ORACLE
Adobe
NVIDIA
meta
IBM
wipro
TCS
cisco
intel
SAP
Uber

Ola Interview Questions

Practice with real Ola interview questions

01
A Software Engineer was asked
SarthiQ Ola
Medium
Asked in 2024
Q. What are primary keys and foreign keys in a relational database? Provide SQL examples to illustrate these concepts.
Ans. In a relational database, a primary key is a unique identifier for a record in a table, while a foreign key is a field in one table that uniquely identifies a row in another table. Here’s a simple illustration:
sql
CREATE TABLE Users (
    user_id INT PRIMARY KEY,
    username VARCHAR(50) NOT NULL
);

CREATE TABLE Orders (
    order_id INT PRIMARY KEY,
    user_id INT,
    order_date DATE,
    FOREIGN KEY (user_id) REFERENCES Users(user_id)
);
In this example, the user_id in the Users table is defined as the primary key. In the Orders table, user_id serves as a foreign key referencing Users. This ensures that every order is linked to a valid user. If you attempt to insert an order with a user_id that doesn't exist in the Users table, the database will throw an error, maintaining referential integrity.
Software EngineerCore Concept
02
A Frontend Developer was asked
SarthiQ Ola
Medium
Asked in 2024
Q. How to build an accessible star rating component in React JS?
Ans. Creating an accessible star rating component in React involves using semantic HTML elements and ARIA attributes for better screen reader support. Here’s a simple implementation:
javascript
import React, { useState } from 'react';

const StarRating = ({ totalStars = 5 }) => {
    const [rating, setRating] = useState(0);

    const handleRating = (rate) => {
        setRating(rate);
    };

    return (
        <div role="radiogroup" aria-labelledby="rating-label">
            <h2 id="rating-label">Rate this product:</h2>
            {[...Array(totalStars)].map((_, index) => {
                const starValue = index + 1;
                return (
                    <span
                        key={starValue}
                        role="radio"
                        aria-checked={rating >= starValue}
                        tabIndex={0}
                        onClick={() => handleRating(starValue)}
                        onKeyDown={(e) => e.key === 'Enter' && handleRating(starValue)}
                        style={{ cursor: 'pointer', fontSize: '24px', color: rating >= starValue ? 'gold' : 'gray' }}
                    >
                        ★
                    </span>
                );
            })}
            <p>Your rating is: {rating}</p>
        </div>
    );
};

export default StarRating;
This component allows users to click on stars to set their rating and provides keyboard accessibility. The stars change color based on the current rating. It’s important to ensure that your components are usable by all users, including those with disabilities.
Frontend DeveloperCore Concept
03
Software Engineer
SarthiQ Ola
Hard

Question:

How would you design a scalable system for XYZ...

04
Software Engineer
SarthiQ Ola
Hard

Question:

How would you design a scalable system for XYZ...