HARMAN
PwC Interview Questions and Answers
Q1. What is copy constructor? Write Syntax? Why there's const and & in the syntax of copy constructor.
Copy constructor creates a new object by copying an existing object.
Copy constructor is used to create a new object by copying an existing object.
Syntax: ClassName(const ClassName& obj)
The const keyword ensures that the original object is not modified.
The & symbol is used to pass the object by reference, which is more efficient than passing by value.
Copy constructor is automatically called when a new object is created from an existing object.
Q2. A sequence of number is given, Find one of the given number by providing optimum solution? You need to ask the interviewer if the it is sorted or not and then discussion on different types of sorts.
Ask if the sequence is sorted and discuss different types of sorts to find the given number.
Ask if the sequence is sorted to determine the best approach.
Discuss different types of sorts like bubble sort, selection sort, insertion sort, merge sort, quick sort, etc.
Choose the most efficient sorting algorithm based on the size of the sequence and the given number.
Q3. What are the Design PAtterns wou have used with explanation ?
Design patterns are reusable solutions to common problems in software design. Some commonly used patterns include Singleton, Factory, Observer, and Strategy.
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Factory pattern creates objects without specifying the exact class of object that will be created.
Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents a...read more
Q4. What platform you worked on? Linux, Windows? System configuration?
I have worked on both Linux and Windows platforms with various system configurations.
Proficient in Linux command line interface and shell scripting
Experience in Windows Server administration and Active Directory management
Familiarity with virtualization technologies such as VMware and VirtualBox
Knowledge of system configuration management tools like Ansible and Puppet
Q5. Casting Operators in C++, dynamic_cast when it is used?
dynamic_cast is used in C++ to perform safe downcasting of polymorphic types.
dynamic_cast is used to convert a pointer/reference of a base class to a pointer/reference of a derived class.
It is used when we want to access a derived class member function or variable using a base class pointer/reference.
If the conversion is not possible, dynamic_cast returns a null pointer for pointers or throws a bad_cast exception for references.
Q6. Connect statement in Qt qnd it's parameters? MOC compiler in Qt?
Connect statement is used to connect signals and slots in Qt. MOC compiler generates meta-object code for Qt classes.
Connect statement connects a signal to a slot or a signal to another signal.
Parameters of connect statement include sender object, signal name, receiver object, slot name, and optional connection type.
MOC compiler generates meta-object code for Qt classes which enables features like signals and slots, introspection, and dynamic properties.
Q7. Major Pillar of OOPS, Abstraction vs Encapsulation
Abstraction and Encapsulation are two major pillars of OOPS.
Abstraction is the process of hiding complex implementation details and showing only the necessary information to the user.
Encapsulation is the process of wrapping data and methods into a single unit and restricting access to the data from outside the unit.
Abstraction is achieved through abstract classes and interfaces.
Encapsulation is achieved through access modifiers like public, private, and protected.
Abstraction ...read more
Q8. What is Q_Object Macro in Qt?
Q_Object Macro is a Qt macro used to declare a class as a QObject.
Q_Object Macro is used to enable signals and slots mechanism in a class.
It is used to declare a class as a QObject and to inherit from QObject.
It is used to enable the use of Qt's meta-object system in a class.
It is used to enable dynamic properties and object names in a class.
Q9. Discussion on previous technologies used ?
Discussed previous technologies used in product development including CAD software, simulation tools, and prototyping methods.
Utilized CAD software such as SolidWorks for 3D modeling and design
Employed simulation tools like ANSYS for analyzing structural integrity and performance
Utilized rapid prototyping methods such as 3D printing to create physical prototypes for testing
More about working at HARMAN
Interview Process at PwC
Reviews
Interviews
Salaries
Users/Month