Skip to main content

Interview Questions

Review this list of 4,415 interview questions and answers verified by hiring managers and candidates.
  • "Abstract class A class that can have Abstract methods - without implementations and Concerete Methods i.e with implementation. Can have private, protected and public access modifiers. Supports Single inheritance i.e a class can extend only 1 abstract class Can have constructors Mainly used when sharing common behaviors Interface Class A collection of abstract methods ( can have static and default methods also - onwards of java 8) Public, static, final are the access"

    Sue G. - "Abstract class A class that can have Abstract methods - without implementations and Concerete Methods i.e with implementation. Can have private, protected and public access modifiers. Supports Single inheritance i.e a class can extend only 1 abstract class Can have constructors Mainly used when sharing common behaviors Interface Class A collection of abstract methods ( can have static and default methods also - onwards of java 8) Public, static, final are the access"See full answer

    Software Engineer
    Coding
    +2 more
  • Google logoAsked at Google 
    +2

    "WITH RECURSIVE fibonacci_series AS ( SELECT 1 AS n, 0 AS fib1, 1 AS fib2 UNION ALL SELECT n + 1 AS n, fib2 AS fib1, fib1 + fib2 AS fib2 FROM fibonacci_series WHERE n < 20 -- Limit the series to 20 numbers ) SELECT n, fib1 AS fib FROM fibonacci_series ORDER BY n; `"

    Yashasvi V. - "WITH RECURSIVE fibonacci_series AS ( SELECT 1 AS n, 0 AS fib1, 1 AS fib2 UNION ALL SELECT n + 1 AS n, fib2 AS fib1, fib1 + fib2 AS fib2 FROM fibonacci_series WHERE n < 20 -- Limit the series to 20 numbers ) SELECT n, fib1 AS fib FROM fibonacci_series ORDER BY n; `"See full answer

    Data Analyst
    Coding
    +4 more
  • "Goal: Maps should reflect reality of places especially with places like hospitals Ecosystem : Maps User Usecases: Daily Commute Explore places Critical situations like emergency - hospital visits, work emergencies, family Businesses using Google Business Profile: Medical & Health Hospitals Clinics Gyms Restaurants Salons Mom & Pop stores, SMB - Retail Enterprises These can be online, physical or both Local guides Downstream usecases for other google products: Google Search Google Gemini "

    Pooja G. - "Goal: Maps should reflect reality of places especially with places like hospitals Ecosystem : Maps User Usecases: Daily Commute Explore places Critical situations like emergency - hospital visits, work emergencies, family Businesses using Google Business Profile: Medical & Health Hospitals Clinics Gyms Restaurants Salons Mom & Pop stores, SMB - Retail Enterprises These can be online, physical or both Local guides Downstream usecases for other google products: Google Search Google Gemini "See full answer

    Product Manager
    Product Strategy
  • "1 Billion Matches per day is it over sized ?"

    Anup S. - "1 Billion Matches per day is it over sized ?"See full answer

    System Design
  • +5

    "Clarifying questions: US-based? And All year including holidays? First, what is the goal? Grow user base of Prime? Add revenue? I'd imagine it's to grow Prime base, as it's sticky and I imagine the Lifetime Value is higher as people will shop more if they have Prime. Then, I would look at the users. What are they trying to do? They're purchasing gifts, and looking to gift wrap. Take a look at the number of gift purchases total with gift receipt and no gift wrap. Call this X. Break thi"

    Manish E. - "Clarifying questions: US-based? And All year including holidays? First, what is the goal? Grow user base of Prime? Add revenue? I'd imagine it's to grow Prime base, as it's sticky and I imagine the Lifetime Value is higher as people will shop more if they have Prime. Then, I would look at the users. What are they trying to do? They're purchasing gifts, and looking to gift wrap. Take a look at the number of gift purchases total with gift receipt and no gift wrap. Call this X. Break thi"See full answer

    Analytical
    Product Strategy
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Product Design
  • Microsoft logoAsked at Microsoft 

    "int reverse(int x) { int rev = 0; bool isNegative = false; if(x 0){ int r = x % 10; rev = rev * 10 + r; x = x / 10; } if(isNegative){ return -rev; } return rev; } `"

    Nilay B. - "int reverse(int x) { int rev = 0; bool isNegative = false; if(x 0){ int r = x % 10; rev = rev * 10 + r; x = x / 10; } if(isNegative){ return -rev; } return rev; } `"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Google logoAsked at Google 
    +1

    "I will look at the % of overspend. If we are within 10%, I would not worry about it too much as most budgets factor in 10% contingency. If Budget has exceeded 10% Threshold, I will use the following approach: Deep dive on current status: Understand % work completed/accepted Analyse Schedule/Time progress Understand Project Priority: P1/P2/P3 Resourcing: Internal/External Complexity: Technical design (Number of Applications involved/ Number of Interfaces to be build e"

    Saket S. - "I will look at the % of overspend. If we are within 10%, I would not worry about it too much as most budgets factor in 10% contingency. If Budget has exceeded 10% Threshold, I will use the following approach: Deep dive on current status: Understand % work completed/accepted Analyse Schedule/Time progress Understand Project Priority: P1/P2/P3 Resourcing: Internal/External Complexity: Technical design (Number of Applications involved/ Number of Interfaces to be build e"See full answer

    Analytical
    Execution
    +1 more
  • +6

    "I would first call out the two types of Google Doodles that are published. First would be the static doodle which just shows a picture, and users can get more information on it by hovering on it or clicking on it. Second would be the dynamic google doodles which are either short videos or games through which users engage a bit more. My top 3 metrics that covers both would be: Click-through rate and post-click CTR - Although different metrics, I clubbed them since they fall under similar"

    Rahul R. - "I would first call out the two types of Google Doodles that are published. First would be the static doodle which just shows a picture, and users can get more information on it by hovering on it or clicking on it. Second would be the dynamic google doodles which are either short videos or games through which users engage a bit more. My top 3 metrics that covers both would be: Click-through rate and post-click CTR - Although different metrics, I clubbed them since they fall under similar"See full answer

    Software Engineer
    Analytical
    +1 more
  • Product Manager
    Product Design
  • Meta logoAsked at Meta 
    +3

    "Clarifying/Requirements House hunting is something I'm familiar with as someone who has rented, owned, and invested in the past. When I was looking for a place to live, the stage of where my life plays an important factor in determining how I look for a place. Before I start, I would like to ask some clarifying questions for better context and understanding. Did FB release any app related to house hunting - No, this would be a completely new feature. Will this be a stand-alone or"

    Christopher K. - "Clarifying/Requirements House hunting is something I'm familiar with as someone who has rented, owned, and invested in the past. When I was looking for a place to live, the stage of where my life plays an important factor in determining how I look for a place. Before I start, I would like to ask some clarifying questions for better context and understanding. Did FB release any app related to house hunting - No, this would be a completely new feature. Will this be a stand-alone or"See full answer

    Product Design
  • "create models -> truck, driver, trip,status. trip will have foreign key relationships with truck,driver and status. Create CRUD endpoints for all the models. Create a read by truck id endpoint that filters the data by id (can also filter the data from the previous mentioned endpoint). update trip data can also update the driver status of the truck."

    Vaishnavi I. - "create models -> truck, driver, trip,status. trip will have foreign key relationships with truck,driver and status. Create CRUD endpoints for all the models. Create a read by truck id endpoint that filters the data by id (can also filter the data from the previous mentioned endpoint). update trip data can also update the driver status of the truck."See full answer

    Software Engineer
    System Design
  • +1

    "what is a task rabbit? marketplace connecting users with freelance labor with local demand, allowing consumers to find help with everyday tasks, including furniture assembly, moving, delivery, and handy person work Explain the User Flow in short: User logs in, searches for the services, sorts, picks and books the service the gig worker gets 24 hours to pick the request, accepted or declined In case it is accepted then it is considered a "BOOKed"gig what is the post booking experience? -"

    Anu S. - "what is a task rabbit? marketplace connecting users with freelance labor with local demand, allowing consumers to find help with everyday tasks, including furniture assembly, moving, delivery, and handy person work Explain the User Flow in short: User logs in, searches for the services, sorts, picks and books the service the gig worker gets 24 hours to pick the request, accepted or declined In case it is accepted then it is considered a "BOOKed"gig what is the post booking experience? -"See full answer

    Product Manager
    Analytical
    +2 more
  • "Missing Item - User ordered multiple items, few items are missing Wrong Item - Entire order is wrong / there are items in the order that were never ordered How is this measured ? CSAT Missing Items Wrong Items Step 1 : Collect data on orders that reported missing / wrong items. Dive deep to understand if the problem is isolated to a specific metro/zip code/restaurant type (say fast food vs fine dine), time of day (lunch vs dinner), tenure of the courier on th"

    Saurabh K. - "Missing Item - User ordered multiple items, few items are missing Wrong Item - Entire order is wrong / there are items in the order that were never ordered How is this measured ? CSAT Missing Items Wrong Items Step 1 : Collect data on orders that reported missing / wrong items. Dive deep to understand if the problem is isolated to a specific metro/zip code/restaurant type (say fast food vs fine dine), time of day (lunch vs dinner), tenure of the courier on th"See full answer

    Data Engineer
    Statistics & Experimentation
  • Product Manager
    Behavioral
  • TikTok logoAsked at TikTok 
    Machine Learning Engineer
    Machine Learning
    +1 more
  • Google logoAsked at Google 

    "Clarifying question: Why would google want to sunset Youtube? What would the business objective be? Based on how the interviewer responds this could go down multiple paths: If they said just because, then I would address the current state data for the YouTube business. Material benefits: XX Million active users $$ in Annual revenue $$ in subscription revenue $$ monetization through influencers Non-material benefits that align to google core values: Democracy on the web works"

    Aditi N. - "Clarifying question: Why would google want to sunset Youtube? What would the business objective be? Based on how the interviewer responds this could go down multiple paths: If they said just because, then I would address the current state data for the YouTube business. Material benefits: XX Million active users $$ in Annual revenue $$ in subscription revenue $$ monetization through influencers Non-material benefits that align to google core values: Democracy on the web works"See full answer

    Product Manager
    Product Strategy
  • Uber logoAsked at Uber 

    "I would structure my answer to this question by considering: Clarifying Questions Landscape Options for Growth Prioritization Risks & Considerations Clarifying Questions Are we talking about Uber’s ride sharing service, Uber Eats, or both? -- assume Uber rides Do we care about total users who have ever used the platform, or total users per day/time period? -- assume ever How many resources do we have to acquire resources? -- assume have a budget larger than the curre"

    Maggie S. - "I would structure my answer to this question by considering: Clarifying Questions Landscape Options for Growth Prioritization Risks & Considerations Clarifying Questions Are we talking about Uber’s ride sharing service, Uber Eats, or both? -- assume Uber rides Do we care about total users who have ever used the platform, or total users per day/time period? -- assume ever How many resources do we have to acquire resources? -- assume have a budget larger than the curre"See full answer

    Product Manager
    Product Strategy
  • Google logoAsked at Google 
    +1

    "Clarification: With kids or without kids? Assuming without With the fuel filled ? Empty Formulae: Outer frame of the school + seats + cushion + inside rods + windows + Engine + motor + other automotive parts + tires Outer frame: Closest proxy : a compact car * 4 = length of the bus Assuming reinforced steel for a car = 2 doors * 200 = 400 pounds One side of the bus = 400* *x 4 x 2 = 3200 pounds two sides = 3200 x 2 = 6400 pounds front and back width = Estimation: 4 people sit in a"

    Pm P. - "Clarification: With kids or without kids? Assuming without With the fuel filled ? Empty Formulae: Outer frame of the school + seats + cushion + inside rods + windows + Engine + motor + other automotive parts + tires Outer frame: Closest proxy : a compact car * 4 = length of the bus Assuming reinforced steel for a car = 2 doors * 200 = 400 pounds One side of the bus = 400* *x 4 x 2 = 3200 pounds two sides = 3200 x 2 = 6400 pounds front and back width = Estimation: 4 people sit in a"See full answer

    Estimation
  • Google logoAsked at Google 
    +1

    "You can ask some clarifying questions like 1) Ask if the list is already sorted or not 2) is zero included in the list ? 3) Natural numbers are usually positive numbers ( clarify they are non negatives) Solution : 1) If sorted use two pointers and sort them in O(N) 2) if not sorted , -ve / only +ve numbers in the list doesn't matter - the easiest solution is Use a priority queue and push the number and its square in each iteration Finally return the list returned by the priority Queue. N"

    Bless M. - "You can ask some clarifying questions like 1) Ask if the list is already sorted or not 2) is zero included in the list ? 3) Natural numbers are usually positive numbers ( clarify they are non negatives) Solution : 1) If sorted use two pointers and sort them in O(N) 2) if not sorted , -ve / only +ve numbers in the list doesn't matter - the easiest solution is Use a priority queue and push the number and its square in each iteration Finally return the list returned by the priority Queue. N"See full answer

    Machine Learning Engineer
    Data Structures & Algorithms
    +1 more
Showing 901-920 of 4415