Gave me 2 sheets where one sheet contains a big C++ program which OOPS concept and contains more than 10 print statements. Interviewer asked me to write all outputs. Then interviewer asked me explain the answers.
C Engineer Interview Questions
3,788 c engineer interview questions shared by candidates
class Program { static void Main(string[] args) { B obj = new B(); Console.ReadKey(); } } abstract class A { public A() { Console.WriteLine("This is the A class"); //calc(); } public abstract void calc(); } class B : A { public B() { Console.WriteLine("This is the B class"); } public override void calc() { Console.WriteLine("This is the abstract methode"); } } Questions: 1. What will be printed on the console? 2. what will be printed to the console if we remove this "//" before the calc() in the contractor of class A;
4 tasks in Codility. The first one was about C++ basics like dynamic_cast etc, 4-choice Second one classic parsing exercise in C++ using string, maps, arrays, however very badly specified so that correct solution was simply not feasible in given time, unless you neglect most possible inputs and "go straight to dumbest implementation" that might or might not pass Codility scoring test. Third question is about dynamic programming, in-depth search of cheapest route. Fourth was numerical exercise, relative calculation on angles maybe easy but certainly might be tricky.
Project details.
How to know the position of head note of circle Linked List ?
implement malloc and free such that free knows the size of the allocation
What does EDA stand for?
How can you Allocate memory dynamically in C++.
3 questions about a game: to complete a few functions missing in the code => ther is an .exe of the complete game. Done in Visual Studio and open Internet.
Inline vs macros Volatile Keyword in c/c++ Preprocessor Macros References vs pointers Static vs Global variable Multithreading vs Multiprocessing vs Multitasking How process or thread communicate Academic Project Overview in Detail Class size Static size in class Pass by reference and Value Virtual function Linux - GCC compiler , how to compile Multiple file compilation using GCC
Viewing 601 - 610 interview questions