SarthiQ

SarthiQ

Interview Preparation Guide

Morgan Stanley
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
Morgan Stanley
Content Length
14 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 Morgan Stanley Interview Questions

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

Morgan Stanley Interview Questions

Practice with real Morgan Stanley interview questions

01
A Software Engineer was asked
SarthiQ Morgan Stanley
Medium
Asked in 2024
Q. Can you explain the GROUP BY clause in SQL with an example using aggregate functions?
Ans. The GROUP BY clause in SQL is used to arrange identical data into groups with the help of aggregate functions. It is commonly used with functions like COUNT, SUM, AVG, MAX, and MIN to produce summary reports. Example: Suppose we have a Sales table with the following columns: ProductID, Quantity, and Price.
sql
CREATE TABLE Sales (
    ProductID int,
    Quantity int,
    Price decimal(10, 2)
);

INSERT INTO Sales (ProductID, Quantity, Price) VALUES
(1, 10, 15.50),
(2, 5, 20.00),
(1, 3, 15.50),
(3, 7, 25.00);
To calculate the total quantity sold for each product, you can use the following query:
sql
SELECT ProductID, SUM(Quantity) as TotalQuantity
FROM Sales
GROUP BY ProductID;
Output: | ProductID | TotalQuantity | |-----------|---------------| | 1 | 13 | | 2 | 5 | | 3 | 7 | In this example, we group the results by ProductID and use the SUM function to calculate the total quantity sold for each product. The query effectively summarizes the data, making it easier to analyze sales performance across different products.
Software EngineerCore Concept
02
A Software Engineer was asked
SarthiQ Morgan Stanley
Medium
Asked in 2024
Q. Can you describe the data structures Stacks and Queues? Provide examples in JavaScript.
Ans. Stacks and queues are fundamental data structures in computer science. A stack follows the Last In First Out (LIFO) principle, where the last element added is the first one removed. Here’s a simple implementation in JavaScript:
javascript
class Stack {
    constructor() {
        this.items = [];
    }

    push(element) {
        this.items.push(element);
    }

    pop() {
        if (this.isEmpty()) return 'Stack is empty';
        return this.items.pop();
    }

    isEmpty() {
        return this.items.length === 0;
    }
}

const stack = new Stack();
stack.push(1);
stack.push(2);
console.log(stack.pop()); // Output: 2
A queue follows the First In First Out (FIFO) principle, where the first element added is the first one removed. Here’s a queue implementation:
javascript
class Queue {
    constructor() {
        this.items = [];
    }

    enqueue(element) {
        this.items.push(element);
    }

    dequeue() {
        if (this.isEmpty()) return 'Queue is empty';
        return this.items.shift();
    }

    isEmpty() {
        return this.items.length === 0;
    }
}

const queue = new Queue();
queue.enqueue(1);
queue.enqueue(2);
console.log(queue.dequeue()); // Output: 1
Both stacks and queues are used in various applications, such as function call management (stacks) and task scheduling (queues). Always test for edge cases like underflows on pop or dequeue operations.
Software EngineerCore Concept
03
Software Engineer
SarthiQ Morgan Stanley
Hard

Question:

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

04
Backend Developer
SarthiQ Morgan Stanley
Hard

Question:

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