i
UBS
Filter interviews by
Clear (1)
A NULL pointer is a pointer that does not point to any memory location.
It is represented by the value 0 or NULL.
Dereferencing a NULL pointer results in a segmentation fault.
It is commonly used to indicate the end of a linked list or array.
A dangling pointer is a pointer that points to a memory location that has been deallocated or freed. Dereferencing it can cause a program to crash.
Dangling pointers occur when memory is freed or deallocated, but the pointer still points to that memory location.
Dereferencing a dangling pointer can cause a segmentation fault or access violation.
Dangling pointers can be avoided by setting the pointer to NULL after freeing
A V-table is a virtual table used in programming languages to implement polymorphism.
It is used in object-oriented programming languages like C++ and Java.
It contains pointers to functions that can be overridden by derived classes.
It allows objects of different classes to be treated as if they are of the same class.
It is used to implement dynamic binding or late binding.
It is also known as a virtual function table or d
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
It is achieved through method overriding and method overloading.
Examples include method overriding in inheritance and implementing interfaces in Java.
Polymorphism helps in achieving loose coupling and flexibility in code design.
Templates are pre-designed documents or files that serve as a starting point for creating new documents or files.
Templates can be used for various purposes such as creating resumes, business cards, invoices, and presentations.
They save time and effort by providing a pre-designed layout and structure.
Templates can be customized to fit specific needs and preferences.
They are commonly used in software applications like Mi...
A virtual function is a function in a base class that is overridden in a derived class.
Virtual functions allow polymorphism in C++
They are declared using the virtual keyword
The function is resolved at runtime based on the object type
Virtual functions can be pure virtual, meaning they have no implementation in the base class
Example: virtual void print() = 0; // pure virtual function
Runtime polymorphism is implemented through virtual functions and dynamic binding.
Virtual functions are declared in base class and overridden in derived class
Dynamic binding is used to determine which function to call at runtime
Compiler uses virtual function table to understand runtime polymorphism
Function overloading is having multiple functions with the same name but different parameters. Function overriding is having a derived class implement a method with the same name and parameters as a method in the base class.
Function overloading is a compile-time polymorphism concept.
Function overriding is a run-time polymorphism concept.
Function overloading is used to provide different ways of calling the same function...
Function overloading allows multiple functions with the same name but different parameters.
Functions with the same name but different parameters can be defined in the same scope
The compiler determines which function to call based on the number and types of arguments passed
Overloading can improve code readability and reduce the need for multiple function names
Example: void print(int x), void print(float x), void print(c...
I am a Business Technology Analyst with experience in analyzing data and developing solutions to improve business processes.
Experienced in data analysis and solution development
Skilled in identifying business process improvements
Proficient in using technology to drive business growth
Equity refers to ownership in a company, while derivatives are financial contracts based on the value of an underlying asset.
Equity represents ownership in a company and can be in the form of stocks or shares.
Derivatives are financial contracts that derive their value from an underlying asset such as stocks, bonds, or commodities.
Examples of derivatives include futures, options, and swaps.
Derivatives are often used for...
I am a highly analytical and tech-savvy individual with a passion for problem-solving and a track record of delivering results.
I have a strong background in technology and business analysis, which allows me to bridge the gap between IT and business stakeholders.
I am a quick learner and can adapt to new technologies and processes easily.
I am a team player and can work collaboratively with cross-functional teams to achie...
The desire to learn and grow every day.
I am driven by the opportunity to learn new things and expand my knowledge.
I am motivated by the chance to make a positive impact on the world through my work.
I am inspired by the people around me who are passionate about what they do.
I am energized by the challenge of solving complex problems and finding innovative solutions.
I am excited by the prospect of personal and profession...
My favourite book is 'The Alchemist' by Paulo Coelho.
I love the book's message about following your dreams and finding your purpose in life.
The story is beautifully written and has a lot of depth and meaning.
It's a book that I can read over and over again and still find something new to take away from it.
The characters are relatable and the plot is engaging.
The book has inspired me to pursue my own passions and take ri
Managers may face various scenarios in their work. Here are some pointers to handle them.
Identify the problem and its root cause
Develop a plan of action
Communicate effectively with team members
Delegate tasks appropriately
Monitor progress and adjust plan as needed
Provide feedback and recognition
Handle conflicts and difficult conversations
Stay organized and prioritize tasks
In conflicting scenarios where a manager does not listen or subordinates disagree, I have experience in finding common ground and communicating effectively.
I have experience in active listening and finding common ground to resolve conflicts
I am skilled in effective communication and can articulate my perspective clearly
I am open to feedback and willing to consider alternative viewpoints
I have successfully navigated sim...
I would prefer a job that challenges me and allows me to learn new skills.
I value opportunities for growth and development
I am open to new experiences and challenges
I want to work in an environment that encourages learning
Examples: a job that involves working with new technologies or a job that requires problem-solving skills
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This was a technical round with questions based on OOPS Concepts.
Types of polymorphism in OOP include compile-time polymorphism (method overloading) and runtime polymorphism (method overriding).
Compile-time polymorphism: achieved through method overloading, where multiple methods have the same name but different parameters.
Runtime polymorphism: achieved through method overriding, where a subclass provides a specific implementation of a method defined in its superclass.
Example: Compi...
Function overloading is when multiple functions have the same name but different parameters or return types.
Function overloading allows multiple functions with the same name to be defined in a class or namespace.
The functions must have different parameters or return types to be considered overloaded.
Example: void print(int num) and void print(string text) are overloaded functions with the same name 'print'.
A virtual function is a function in a base class that is declared using the keyword 'virtual' and can be overridden by a function in a derived class.
Virtual functions allow for dynamic polymorphism in object-oriented programming.
They are used to achieve runtime binding and enable the implementation of the concept of function overriding.
Virtual functions are typically used in inheritance hierarchies to provide a common ...
Templates in C++ are a feature that allows for generic programming by creating reusable code.
Templates allow for writing generic functions or classes that can work with any data type.
Templates are defined using the 'template' keyword followed by the template parameter list.
Example: template <class T> T add(T a, T b) { return a + b; }
A null pointer is a pointer that does not point to any memory location.
A null pointer is typically used to indicate that the pointer does not have a valid target.
Dereferencing a null pointer can lead to a segmentation fault or program crash.
In C/C++, a null pointer is represented by the value 0 or nullptr.
Null pointers are commonly used in programming to represent the absence of a valid pointer.
Round duration - 60 minutes
Round difficulty - Easy
Technical round with OOPS based questions mainly.
A dangling pointer in C is a pointer that points to a memory location that has been deallocated, leading to potential crashes or undefined behavior.
Dangling pointers occur when memory is deallocated but the pointer is not updated or set to NULL.
Accessing a dangling pointer can result in reading or writing to invalid memory locations.
Example: int *ptr = malloc(sizeof(int)); free(ptr); *ptr = 10; // Accessing a dangling
A V-table is a data structure used in object-oriented programming to store virtual functions for dynamic binding.
V-table stands for virtual table.
It is used in object-oriented programming languages like C++ to implement polymorphism.
Each class with virtual functions has its own V-table.
V-table contains pointers to the virtual functions of the class.
Given an array representation of a min-heap of size 'n', your task is to convert this array into a max-heap.
The first line of input contains an int...
Convert a given min-heap array into a max-heap array.
Iterate through the given min-heap array and build a max-heap array by swapping elements.
Start from the last non-leaf node and heapify down to maintain the max-heap property.
Ensure that the output array satisfies the max-heap property.
Example: For min-heap [1,2,3,6,7,8], the max-heap would be [8,7,3,6,2,1].
Round duration - 30 minutes
Round difficulty - Easy
This was management interview round. Make sure you know everything on your resume. Most questions are based on your resume.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
Top trending discussions
I applied via Campus Placement
I was interviewed in Nov 2020.
Round duration - 90 Minutes
Round difficulty - Hard
The Test Was Conducted On HackerEarth. It Had 2 Sections. Section-A Had 30 Multiple Choice Questions & Section-B Had 2 Programming Questions.
The MCQs Were On Java, Python, MongoDB, MySQL, JSON, Cloud Computing, JavaScript & C++ With the Majority Of Them On Java.
Half Of The Questions Were Theory-Based And The Other Half Were Output Based On JAVA & C++. I Would Highly Recommend Having An Excellent Knowledge Of Both JAVA & C++ To Ace Up The Online Round.
The 2 Programming Questions In Section-B Were Of 20 & 50 Marks Respectively. The 1st Question Was Easy And I Was Able To Solve It Easily. It Was Based On Number Theory. The 2nd Question Was Really Hard And Was A String Pattern Matching Question Quite Similar To The Z-Algorithm. Solving The 2nd Question Is Like A Bonus Because This Question Carries The Highest Marks. I Was Able To Solve Both The Questions.
You are provided with a string S
of length N
and a string P
of length M
. Your objective is to determine the number of times P
appears in S
in linear time.
...
Implement a function to count the number of occurrences of a given string within another string in linear time.
Use the Z algorithm to preprocess the pattern string and the concatenated string to efficiently count occurrences.
Iterate through the Z array to find matches of the pattern within the concatenated string.
Return the count of matches found.
Example: For S = 'ababa' and P = 'ab', the output should be 2.
Round duration - 30 Minutes
Round difficulty - Medium
The Interview Round Was Conducted On 18th November 2020. It Was Both A Managerial Round & HR Round And Was Conducted On Webex. Every Candidate Was Assigned A Time Slot And An Interviewer. My Interviewer Was Very Friendly.
Tip 1 : Have A Strong Knowledge Of JAVA Since It’s A Bank And They Prefer JAVA Candidates.
Tip 2 : Have Good Projects On Any One Of Major Technologies Like AI, Block-Chain Since The Students Who Were Finally Selected Had Really Good Projects On These Technologies.
Tip 3 : Have A Strong Knowledge Of OOPS And Databases(Both SQL & NoSQL).
Tip 4 : Having Basic Knowledge Of JavaScript Is Also Recommended.
Tip 1 : Be Thorough With Your Resume & Only Mention Those Points & Projects In Your Resume With Which You Are Most Confident To Be Questioned On.
Tip 2 : Have Good Projects On Any One Of Major Technologies Like AI, Block-Chain Since The Students Who Were Finally Selected Had Really Good Projects On These Technologies.
I applied via Campus Placement and was interviewed in Dec 2016. There were 5 interview rounds.
Morgan Stanley is a top-tier investment bank with a strong reputation for innovation and excellence.
Morgan Stanley has a long history of success in the financial industry
The company is known for its innovative approach to investment banking
Morgan Stanley has a strong reputation for excellence in research and analysis
The firm offers a wide range of services to clients, including wealth management and investment banking
M...
Tower and Morgan Stanley are both financial services companies.
Tower is a global investment management firm with over $1 trillion in assets under management.
Morgan Stanley is a multinational investment bank and financial services company.
Both companies offer a range of financial services including wealth management, investment banking, and asset management.
Tower is known for its focus on sustainable investing, while Mo...
The job profile offered is for an analyst position. A PhD is not required for this role.
The job involves analyzing data and providing insights to clients
A PhD is not necessary as the role focuses more on practical application of analytical skills
The job may require a bachelor's or master's degree in a related field
Examples of job responsibilities may include data collection, statistical analysis, and report writing
Innovations to minimize cost of pen
Use recycled materials for pen body and ink
Simplify design to reduce production costs
Implement refillable ink cartridges to reduce waste and cost
Partner with companies for bulk purchasing of materials
Automate production process to reduce labor costs
Prove N>=N^.5+N^(1/3)+N^(1/4) for N>=a
Use AM-GM inequality
Substitute N with a and prove the inequality holds
Use calculus to find the minimum value of the expression
Finding the probability distribution for the minimum of two random variables with given distributions.
Use the formula P(min(x,y)>z) = P(x>z)P(y>z)
Integrate over the range of z to get the distribution of min(x,y)
Final distribution is 2ke^(-kx)ue^(-ux)exp(-uz)
Given prob. p of dying out and prob. (1-p) of spawning into 2, find prob. of dying out starting from 1 organism.
Use probability tree to visualize outcomes
Probability of dying out starting from 1 is p + (1-p) * (probability of dying out starting from 2)^2
Solve recursively to get final answer
Probability of a rectangle being inside a unit circle with p chosen uniformly on the circle and q inside the circle.
The probability can be found by calculating the ratio of the area of the rectangle to the area of the circle.
The area of the circle is pi and the area of the rectangle can be found using the distance between p and q.
The probability is 1/4.
Example: If the distance between p and q is 0.5, then the area of t...
Find local minima of an array in o(log n) in functional programming.
Use binary search to find the local minima.
Check if the mid element is a local minima, if not, move towards the lower side.
If the mid element is greater than its left element, move towards the left side, else move towards the right side.
Repeat until a local minima is found.
Example: [5, 3, 2, 4, 6, 8, 9] -> local minima is 2.
Code to sort a list without pipes
Use a sorting algorithm like bubble sort, insertion sort, or selection sort
Implement the algorithm in the programming language of your choice
Test the code with different input sizes and types
To find an even length palindrome in a string in O(n), we can use the two-pointer approach.
Initialize two pointers at the center of the string.
Expand the pointers outwards while checking if the characters at both pointers are equal.
If they are not equal, return the previous substring as the even length palindrome.
If the pointers reach the end of the string, return the entire string as the even length palindrome.
Possible values of determinant of matrix A given Avi=Vj for n linear vectors
The possible values of |A| are non-zero as the given vectors are linearly independent
The value of |A| can be calculated using the formula |A| = (-1)^n * det(A)
If the given vectors are orthogonal, then |A| is the product of the magnitudes of the vectors
A and B play a game with unfair coin. A wins if # of heads > #tails +1 at any point. Find prob. of A winning.
The game is played with an unfair coin with P[Heads]=p
A wins if # of heads > #tails +1 at any point
Find the probability of A winning
Find two elements in a sorted array that add up to a given sum in linear time.
Use two pointers, one at the beginning and one at the end of the array.
If the sum of the two pointers is greater than the target, move the right pointer to the left.
If the sum of the two pointers is less than the target, move the left pointer to the right.
Repeat until the sum is found or the pointers meet.
Example: Given [1, 2, 3, 4, 5] and ta
The probability of element at 20th position landing up at 31st position after the first iteration.
The probability depends on the size of the dataset and the algorithm used for iteration.
If the algorithm involves swapping adjacent elements, the probability is higher.
If the dataset is sorted in a way that the element at 20th position is adjacent to the element at 31st position, the probability is 1.
The probability can be...
Expected number of collisions between randomly moving ants on a rod after 30 seconds.
Calculate the probability of two ants colliding at any given time.
Use the formula for expected value to find the expected number of collisions.
Assume that the ants are point masses and collisions are perfectly elastic.
Consider the possibility of multiple ants colliding at the same time.
Simulation can also be used to estimate the expect
Counting permutations where numbers between u and i+1 are less than i for all i in the permutation.
The first number in the permutation must be 1.
For each i in the permutation, all numbers between u and i+1 must be less than i.
Use dynamic programming to count the number of valid permutations.
The answer is (n-1)th Catalan number.
Example: for n=4, the answer is 5.
Finding f(n) for a normal standard distribution with a given constant k.
Calculate the product of probability density function and cumulative distribution function.
Integrate the product of f(x) and F(kx) from -inf to +inf.
The value of k is a constant greater than 0.
Number of inversions in an array in O(nlogn) time.
Use merge sort algorithm to count inversions
Divide the array into two halves and recursively count inversions
Merge the two halves and count split inversions
Time complexity is O(nlogn)
I applied via Referral
I was interviewed in Dec 2016.
Debugging steps for a slow web portal
Check server load and resource usage
Analyze network traffic and latency
Review code for inefficiencies and optimize
Use profiling tools to identify bottlenecks
Consider caching and content delivery networks
Test and monitor performance after changes
Denormalization, indexing, caching, and partitioning can improve query performance.
Denormalize the data to reduce the number of joins required for queries.
Create indexes on frequently queried columns to speed up search.
Cache frequently accessed data in memory to avoid disk reads.
Partition large tables into smaller ones to reduce the amount of data that needs to be scanned.
Use query optimization techniques like query re...
Sorting algorithm organizes data in a specific order.
Choose a sorting algorithm based on the data size and type.
Common sorting algorithms include bubble sort, insertion sort, and quicksort.
Implement the chosen algorithm in code.
Test the algorithm with sample data to ensure it sorts correctly.
My parents inspire me the most.
Their hard work and dedication to providing for our family motivates me to work hard.
Their unwavering support and encouragement has helped me overcome challenges.
Their values and principles have shaped me into the person I am today.
Seeing their sacrifices and selflessness inspires me to be a better person.
A leader should possess qualities like vision, communication, empathy, integrity, and adaptability.
Vision: Ability to see the big picture and set goals accordingly
Communication: Ability to convey ideas clearly and listen actively
Empathy: Ability to understand and relate to others' emotions and perspectives
Integrity: Consistency in values, actions, and decisions
Adaptability: Ability to adjust to changing circumstances a
Morgan Stanley is a top-tier investment bank with a strong reputation for excellence and innovation.
Morgan Stanley has a long history of success in the financial industry
The company is known for its innovative approach to investment banking
Morgan Stanley has a global presence and offers a wide range of services to clients
The firm has a strong commitment to diversity and inclusion
Morgan Stanley is a great place to work
Some of the top questions asked at the UBS Business Technology Analyst interview -
Associate Director
3.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant Vice President
2.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Authorized Officer
1.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Exempt NON Officer
1.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
ENO
1.4k
salaries
| ₹0 L/yr - ₹0 L/yr |
Morgan Stanley
Goldman Sachs
JPMorgan Chase & Co.
Deutsche Bank