Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by UBS Team. If you also belong to the team, you can get access from here

UBS Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

UBS Software Engineer Interview Questions and Answers

Updated 17 Mar 2025

6 Interview questions

A Software Engineer was asked 3mo ago
Q. Given the head of a singly linked list, return the middle node of the linked list. If there are two middle nodes, return the second middle node.
Ans. 

To find the middle node of a linked list, use the two-pointer technique: one moves fast, the other slow.

  • Use two pointers: 'slow' and 'fast'.

  • Initialize both pointers at the head of the list.

  • Move 'slow' by one step and 'fast' by two steps in each iteration.

  • When 'fast' reaches the end, 'slow' will be at the middle.

  • Example: For the list 1 -> 2 -> 3 -> 4 -> 5, 'slow' will point to 3.

A Software Engineer was asked 9mo ago
Q. You are designing an e-commerce website. Which database will you choose, and what will you use for authentication, given that you can't use JWT or third-party authentication like Google Authentication?
Ans. 

I would choose a relational database like MySQL and implement a custom authentication system using session management.

  • Choose a relational database like MySQL for storing user data, product information, and orders.

  • Implement a custom authentication system using session management to securely authenticate users without JWT or third-party services.

  • Use encryption techniques to store and validate user passwords securely...

Software Engineer Interview Questions Asked at Other Companies

asked in Qualcomm
Q1. Four people need to cross a bridge at night with only one torch t ... read more
asked in Capgemini
Q2. In a dark room, there is a box of 18 white and 5 black gloves. Yo ... read more
Q3. Tell me something about yourself. Define encapsulation. What is i ... read more
asked in Paytm
Q4. Puzzle : 100 people are standing in a circle .each one is allowed ... read more
asked in TCS
Q5. Find the Duplicate Number Problem Statement Given an integer arra ... read more
A Software Engineer was asked 9mo ago
Q. What is dynamic memory allocation in Java?
Ans. 

Dynamic memory allocation in Java allows for allocating memory at runtime, enabling flexible data structures and efficient memory usage.

  • Java uses the heap for dynamic memory allocation, where objects are created using the 'new' keyword.

  • Example: String[] names = new String[5]; // Allocates memory for an array of 5 Strings.

  • Memory is automatically managed by the Garbage Collector, which frees up memory that is no lon...

A Software Engineer was asked 9mo ago
Q. Write code to determine if a string is a palindrome.
Ans. 

This code checks if a given string is a palindrome, meaning it reads the same forwards and backwards.

  • A palindrome is a word, phrase, or sequence that reads the same backward as forward. Example: 'madam'.

  • To check for a palindrome, compare the string to its reverse.

  • Consider ignoring spaces, punctuation, and case sensitivity for a more robust solution. Example: 'A man, a plan, a canal, Panama!'

  • In Python, you can reve...

A Software Engineer was asked
Q. How can you better test your code?
Ans. 

To better test your code, use a combination of unit tests, integration tests, regression tests, and automated testing.

  • Write unit tests to test individual components or functions in isolation.

  • Perform integration tests to test how different components work together.

  • Implement regression tests to ensure that new code changes do not break existing functionality.

  • Utilize automated testing tools to run tests quickly and e...

A Software Engineer was asked
Q. How do you define clean code?
Ans. 

Clean code is well-organized, easy to read, and maintainable code that follows best practices.

  • Clean code is easy to read and understand by other developers.

  • It follows consistent naming conventions for variables, functions, and classes.

  • Clean code is well-organized with proper indentation and spacing.

  • It avoids unnecessary complexity and duplication.

  • Clean code is modular and follows the single responsibility principl...

UBS Software Engineer Interview Experiences

6 interviews found

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Aug 2024. There were 2 interview rounds.

Round 1 - Coding Test 

1 coding question based on DP for 25 minutes and 30 MCQs on Java , OOPS and code snippet questions also some basic questions based on trees like number of leaf nodes in a complete binary tree with n nodes.

Round 2 - Technical 

(3 Questions)

  • Q1. Write code for finding palindrome of a string
  • Q2. What is dynamic memory allocation in Java
  • Q3. You are designing an e commerce website which database will you choose and what will you use for authentication given that you can't use JWT or even third party like Google authentication
  • Ans. 

    I would choose a relational database like MySQL and implement a custom authentication system using session management.

    • Choose a relational database like MySQL for storing user data, product information, and orders.

    • Implement a custom authentication system using session management to securely authenticate users without JWT or third-party services.

    • Use encryption techniques to store and validate user passwords securely.

    • Util...

  • Answered by AI

Skills evaluated in this interview

Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
6-8 weeks
Result
No response

I applied via Company Website and was interviewed in Feb 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. How do you define clean code?
  • Ans. 

    Clean code is well-organized, easy to read, and maintainable code that follows best practices.

    • Clean code is easy to read and understand by other developers.

    • It follows consistent naming conventions for variables, functions, and classes.

    • Clean code is well-organized with proper indentation and spacing.

    • It avoids unnecessary complexity and duplication.

    • Clean code is modular and follows the single responsibility principle.

    • Exa...

  • Answered by AI
  • Q2. How to better test your code?
  • Ans. 

    To better test your code, use a combination of unit tests, integration tests, regression tests, and automated testing.

    • Write unit tests to test individual components or functions in isolation.

    • Perform integration tests to test how different components work together.

    • Implement regression tests to ensure that new code changes do not break existing functionality.

    • Utilize automated testing tools to run tests quickly and effici...

  • Answered by AI

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
-
Result
Not Selected
Round 1 - Aptitude Test 

Easy test

Pattern
15-20 MCQ
1 coding question

Mcqs were on harder side
Coding were on easier side

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I appeared for an interview before Mar 2024, where I was asked the following questions.

  • Q1. Find the middle node of a linked list?
  • Ans. 

    To find the middle node of a linked list, use the two-pointer technique: one moves fast, the other slow.

    • Use two pointers: 'slow' and 'fast'.

    • Initialize both pointers at the head of the list.

    • Move 'slow' by one step and 'fast' by two steps in each iteration.

    • When 'fast' reaches the end, 'slow' will be at the middle.

    • Example: For the list 1 -> 2 -> 3 -> 4 -> 5, 'slow' will point to 3.

  • Answered by AI
  • Q2. Height of the binary tree
  • Ans. 

    The height of a binary tree is the length of the longest path from the root to a leaf node.

    • Height is defined as the number of edges in the longest path from the root to a leaf.

    • For a tree with only one node (the root), the height is 0.

    • Example: In a tree with root and two children, the height is 1.

    • A complete binary tree of height h has 2^(h+1) - 1 nodes.

    • The height can be calculated recursively: height(node) = 1 + max(hei...

  • Answered by AI

I applied via Campus Placement and was interviewed in Aug 2022. There were 5 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Coding Test 

Apt and coding. Stack based dsa question

Round 3 - Coding Test 

Same as r1. Dsa and core subs and projects

Round 4 - One-on-one 

(1 Question)

  • Q1. Tech and project discussion
Round 5 - HR 

(1 Question)

  • Q1. Strengths and weaknesses

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare well and be confident. Dsa should be done nicely. Have complete idea about project
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Campus Placement and was interviewed before Mar 2023. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. A lot about my resume and tech stacks I have worked on and also a easy level leetcode DSA questions.

Top trending discussions

View All
Interview Tips & Stories
2w
toobluntforu
·
works at
Cvent
Can speak English, can’t deliver in interviews
I feel like I can't speak fluently during interviews. I do know english well and use it daily to communicate, but the moment I'm in an interview, I just get stuck. since it's not my first language, I struggle to express what I actually feel. I know the answer in my head, but I just can’t deliver it properly at that moment. Please guide me
Got a question about UBS?
Ask anonymously on communities.

Interview questions from similar companies

Interview Questionnaire 

1 Question

  • Q1. Asked many Dbsa questions. You need to be thorough about the joins in the databases.

Interview Preparation Tips

Round: Test
Experience: Practice questions on Indiabix.

Round: Technical Interview
Experience: Operating Systems basics, Dbsa basics

General Tips: 1: Be Confident.
2: Keep Smiling.
3: Do not be Panic.
4: Remember they are here to hire you but not reject you.
5: Do not loose hope.
6: Believe at yourself.
7: Start preparing early.
8: Do demo interviews with your friend.
Skill Tips: Make sure you do a course on object oriented programming
Skills: C, Sql, Java
College Name: BITS PILANI
Motivation: Every body joins a comapny for making a software or earning money. But I was always motivated to MAKE MONEY. I have taken this job because they have very extensive work in Share Market and they have lots of MBA from IIM's, Lots of CAs, CS. Thats why i have choosen Edelweiss. I have rejected epic System USA for this profile.
Are these interview questions helpful?

Interview Preparation Tips

Round: Test
Experience: The written test was quite similar to the typical CAT pattern. It contained sections on Reading Comprehension, Data Interpretation and Mathematics.

Round: Technical + HR Interview
Experience: There were 2 interviewers in the first interview, one was a technical guy and the other was from HR. They asked me a few very simple puzzles, a few basic programming questions (swapping the value of two variables etc.), questions related to the development cycle of software products. The HR guy asked stuff like what do you want to achieve in life? Strengths, weaknesses etc.

Round: Case Study Interview
Experience: The third interview was the most important one (and I guess that was the deciding interview). The interviewer started with questions like why finance? Which companies are you sitting for? Then he gave me a case study:

Interview Questionnaire 

2 Questions

  • Q1. Oops, os, dbms, project
  • Q2. Why hsbc, why should I hire you.
  • Ans. 

    I have a strong background in software engineering and a passion for innovation, making me a valuable asset to HSBC.

    • I have a proven track record of successfully delivering high-quality software solutions in previous roles.

    • I am highly skilled in various programming languages and technologies, including Java, Python, and SQL.

    • I have experience working in agile development environments, allowing me to adapt quickly to chan...

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: 4 sections, 15 questions each. Sections on apti, english, programming, technical.
Tips: Time management, complete english and technical first
Duration: 1 hour
Total Questions: 60

Round: Group Discussion
Experience: We were asked which super hero would you like to be. Shared the information. Always present the positives and negatives and emphasize that despite of being negatives
Tips: Think everything through before speaking
Duration: 40 minutes

Round: Technical Interview
Experience: Prepare well, anything can be asked on the things written on your resume

Round: HR Interview
Experience: Sell yourself. Tell them why you would be the best candidate.
Tips: Tell your advantages of being a fresher that you would be comfortable in any technology

College Name: Acropolis institute of technology and research

Interview Questionnaire 

8 Questions

  • Q1. Find a number which occurs odd number of times and all number occurs even number of times
  • Q2. Some discussion about my minor project
  • Q3. Spiral order of binary tree and mattrix, print it
  • Q4. Some question about os,dbms
  • Q5. Find pair which have a given sum in a given array
  • Q6. Find total number of k element which have a given avg in a given array in minimum time complexity
  • Q7. Print all elements which in not boundary element in a given binary tree
  • Q8. Then some question about process synchronisation,error vs exception,and then 2-3 hr question

Interview Preparation Tips

Round: Test
Experience: practice codes on paper
Tips:

Round: Technical Interview
Experience: very good
Tips: please try to explain each and every question in detail

Round: Technical Interview
Experience: my hr round is not taken by them,and some of face 3rd round ,which is HR
Tips: please prepare all types of problem from geeksforgeeks

Skill Tips: please try to understand every problem from geeksforgeeks
Skills: ds
College Name: NIT Bhopal
Motivation: best work culture,and a lots of learning opportunity in this company,and in every 6 month there is a appraisal

Skills evaluated in this interview

UBS Interview FAQs

How many rounds are there in UBS Software Engineer interview?
UBS interview process usually has 2 rounds. The most common rounds in the UBS interview process are Coding Test, Technical and Resume Shortlist.
How to prepare for UBS Software Engineer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at UBS. The most common topics and skills that interviewers at UBS expect are Python, Java, SDLC, SQL and Agile Coaching.
What are the top questions asked in UBS Software Engineer interview?

Some of the top questions asked at the UBS Software Engineer interview -

  1. You are designing an e commerce website which database will you choose and what...read more
  2. What is dynamic memory allocation in J...read more
  3. Write code for finding palindrome of a str...read more

Tell us how to improve this page.

Overall Interview Experience Rating

3.2/5

based on 5 interview experiences

Difficulty level

Easy 40%
Moderate 60%

Duration

Less than 2 weeks 75%
6-8 weeks 25%
View more
UBS Software Engineer Salary
based on 386 salaries
₹13.9 L/yr - ₹25 L/yr
112% more than the average Software Engineer Salary in India
View more details

UBS Software Engineer Reviews and Ratings

based on 62 reviews

3.9/5

Rating in categories

3.8

Skill development

4.3

Work-life balance

3.6

Salary

4.0

Job security

4.1

Company culture

3.2

Promotions

3.5

Work satisfaction

Explore 62 Reviews and Ratings
Associate Director
3.8k salaries
unlock blur

₹27 L/yr - ₹48 L/yr

Assistant Vice President
2.3k salaries
unlock blur

₹24.8 L/yr - ₹44.4 L/yr

Authorized Officer
2k salaries
unlock blur

₹14.6 L/yr - ₹26.2 L/yr

Exempt NON Officer
1.5k salaries
unlock blur

₹13.2 L/yr - ₹23.5 L/yr

ENO
1.3k salaries
unlock blur

₹11.1 L/yr - ₹20 L/yr

Explore more salaries
Compare UBS with

Wells Fargo

3.8
Compare

JPMorgan Chase & Co.

3.9
Compare

HSBC Group

3.9
Compare

Cholamandalam Investment & Finance

3.9
Compare
write
Share an Interview