i
Electronic Arts
Filter interviews by
I applied via LinkedIn
Using a copy constructor in C++ creates a new object by copying the values of another object.
Copy constructor is a special member function that creates a new object as a copy of an existing object.
It is invoked when a new object is created from an existing object.
Example: MyClass obj1; MyClass obj2 = obj1; // Copy constructor is called to create obj2 as a copy of obj1.
Pointers/references are used to pass memory addresses instead of values, for efficiency and to modify data directly.
Use pointers when you need to modify the original data passed to a function
Use references when you want to avoid copying large data structures
Pointers are commonly used in dynamic memory allocation
References are used in function parameters to avoid unnecessary copying
Example: int x = 10; int *ptr = &x; *p
Top trending discussions
Some basic aptitude and quants questions were asked with 2 coding questions.
I applied via campus placement at Lovely Professional University (LPU) and was interviewed in Nov 2024. There were 4 interview rounds.
Train,percentage,work
Array , string , basic
posted on 27 Aug 2024
I applied via Indeed and was interviewed in Jul 2024. There were 2 interview rounds.
Classes, oops, array, constructor
A copy constructor is a special type of constructor that creates a new object as a copy of an existing object.
Copy constructor should have a parameter of the same class type
It is used to create a new object by copying the values of an existing object
It is called when a new object is created from an existing object
A virtual function is a member function that is declared within a base class and is redefined by a derived class.
Declare a virtual function in the base class using the 'virtual' keyword.
Override the virtual function in the derived class using the 'override' keyword.
Use the base class pointer to call the virtual function, which will be resolved at runtime based on the actual object type.
posted on 15 Nov 2024
They ask you about basic oop questions
It was a panel interview
posted on 7 Mar 2024
I applied via campus placement at Atharva College of Engineering, Mumbai and was interviewed in Feb 2024. There were 2 interview rounds.
One hour aptitude test based on the mathematics ,logical reasoning.
Required to write codes in python
Required to write codes in python
posted on 3 Jun 2024
I applied via Company Website and was interviewed in May 2024. There was 1 interview round.
Find the longest consecutive numbers in an array whose sum is less than or equal to a target.
Iterate through the array and keep track of the current sum and length of consecutive numbers.
Update the longest length whenever the current sum is less than or equal to the target.
Reset the current sum and length when the sum exceeds the target.
I applied via Naukri.com and was interviewed in Mar 2024. There were 2 interview rounds.
Use Python's built-in 'functools' module to check cache for function results.
Import 'functools' module
Use 'lru_cache' decorator to cache function results
Specify 'maxsize' parameter to limit cache size
Use 'cache_info()' method to get cache statistics
based on 1 interview
Interview experience
QA Tester
117
salaries
| ₹2.8 L/yr - ₹7.2 L/yr |
Senior QA Tester
94
salaries
| ₹5 L/yr - ₹9.1 L/yr |
QA Tester II
72
salaries
| ₹4 L/yr - ₹6.3 L/yr |
Quality Analyst
56
salaries
| ₹4.5 L/yr - ₹9.5 L/yr |
Quality Assurance Tester 2
51
salaries
| ₹4 L/yr - ₹6.8 L/yr |
Ubisoft Entertainment
Nintendo
Microsoft Corporation
Tencent