Intel
Chropynska Interview Questions and Answers
Q1. Linked list vs array Union vs array Prime no Explain memory segment How code executes [29/06, 20:53] Storage class [29/06, 20:53] Segmentation fault Dynamic memory allocation [29/06, 20:53] Calculator [29/06, 2...
read moreQuestions related to data structures, memory management, programming languages, and computer architecture.
Linked list is a dynamic data structure while array is a static data structure.
Union is a data type that allows storing different data types in the same memory location as opposed to array which stores elements of the same data type.
Prime numbers are numbers that are only divisible by 1 and themselves.
Memory segment refers to a portion of the computer's memory that is all...read more
Q2. What is virtual function
Virtual function is a function in C++ that can be overridden in a derived class.
Virtual functions are declared in a base class and defined in a derived class.
They allow polymorphism, where a derived class object can be treated as a base class object.
The virtual keyword is used to declare a function as virtual.
Example: virtual void display() = 0; // pure virtual function
Example: virtual void display() { cout << 'Base class display' << endl; }
Example: void display() override { ...read more
Q3. What is constructor
A constructor is a special method that is used to initialize objects of a class.
Constructors have the same name as the class they belong to.
They are called automatically when an object of the class is created.
They can be used to set default values for object properties.
Constructors can be overloaded to accept different parameters.
Example: public class Car { public Car() { // constructor code here } }
Q4. What is friend class
Friend class is a class that has access to the private and protected members of another class.
Friend class is declared using the 'friend' keyword.
It allows the friend class to access the private and protected members of the class it is friends with.
Friendship is not mutual, meaning the friend class does not grant access to its own private and protected members.
Friend functions can also be declared to have access to private and protected members of a class.
Example: class A dec...read more
Q5. what is destructor
A destructor is a member function of a class that is responsible for destroying objects of that class.
Destructors have the same name as the class preceded by a tilde (~).
They are called automatically when an object is destroyed or goes out of scope.
They are used to release resources allocated by the object during its lifetime.
Example: ~MyClass() { delete[] myArray; }
Destructors cannot be overloaded or inherited.
Q6. Verilog code for dff
Verilog code for D flip-flop (DFF) is a fundamental building block in digital design.
Use always block to describe the behavior of DFF
Use non-blocking assignment to update the output based on the input
Include a clock signal to trigger the update of the output
Example: always @(posedge clk) begin q <= d; end
More about working at Intel
Interview Process at Chropynska
Top Graduate Trainee Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month