Ubisoft Interview Experience | On-Campus 2021
- On-Campus Interview
- Role: R&D Intern + PPO
- Total Number of Round: 4 Rounds
- Difficulty Level: Medium
Round 1(Coding Round – 60 min): The first round consisted of 2 Coding Questions on the https://www.codility.com/ platform.
- The 1st Problem is for Coding and the 2nd question is to find errors and correct them.
- The first question was easy but the 2nd question was a bit tricky (we get a limited number of lines we can change in order to correct code. In my case I can only change 3 lines in the code).
Tips: Solve the questions with a calm mind. Don’t stress yourself during the test because you have to do 2 questions in 60 minutes. There is ample time to solve questions.
Round 2(Technical Round 1 – 60 min): The interviewer started with an Introduction from both sides and then immediately moved to the project I mentioned in my resume.
- Project based on Decentralization of library system (MERN stack). We discussed the project for around 15 min.
- Then he moved to CPP and OOP.
- Explain Basic Concepts of OOP.
- What are Polymorphism and its types?
- Write code for dynamic polymorphism with real-life examples.
- What is a copy constructor? And its syntax?
- Why do we write “const” and pass an object as a reference in the copy constructor? (https://www.w3wiki.net/copy-constructor-in-cpp/)
- What is shallow copy and deep copy? Which copy constructor does what type of copy and in which condition? (prefer above link for answer)
- what will happen in code?
C++
#include <iostream>
using
namespace
std;
class
Demo {
public
:
Demo() {}
Demo(
const
Demo& t)
{
cout <<
"Copy constructor called "
<< endl;
}
Demo& operator=(
const
Demo& t)
{
cout <<
"Assignment operator called "
<< endl;
return
*
this
;
}
};
int
main()
{
Demo t1, t2;
t2 = t1;
Demo t3 = t1;
}
OutputAssignment operator called Copy constructor called
- Then Asked me to write a code for 1 simple program: Given a string as Input. output number of continuous similar characters.
Input: “abccchddgdddhccaaa” Output: c: 3 d: 2 d: 3 c: 2 a: 3
- Asked me, do you have any questions?
Round 3(Technical Round 2 – 45 min): Again Start with an introduction and discussion on 2-3 projects.
- What are constant variables?
- Can we initialize const variables in the constructor? Why?
- If we want a constructor to initialize const variables how can we do that? explain. (Ans – Initialization list)
- What is Singleton class? Write 1 example of a singleton class?
- What is an empty class? What is the size of an empty class?
- What is call by value, call by reference, call by address?
- Where can we use these calls? (continue with earlier question)
- What are pointers? What is the size of char pointer, integer pointer, class pointer?
- Asked me to write a program. https://leetcode.com/problems/max-consecutive-ones/
- Asked me, do you have any questions?
Round 4(HR Round – 20 min):
- Tell me something about yourself.
- Why do you want to join Ubisoft?
- Do you have any plans for higher studies?
- Do you have any Location constraints?
- Any questions?
After 2 days we got the result and I was shortlisted.
Contact Us