Skip to content
Gblog Must Do Coding Questions for Product Based Companies
As the placement season is back, GeeksforGeeks is here to help you crack the interview. We have selected some most commonly asked and MUST DO… Read More
Things to learn in this article: Importance of pointer in C/C++. Problems with normal pointer. Why smart pointers introduce. Types of smart pointer. Importance of… Read More
  We have discussed an introduction to Constructors in C++. In this post, the copy constructor is discussed.What is a copy constructor? A copy constructor is… Read More
I recently cleared the Amazon SDE position. Through out my preparation GeeksforGeeks played great role, this is the only site which i referred/followed more than… Read More
In C++, we can make operators to work for user defined classes. This means C++ has the ability to provide the operators with a special… Read More
A template is a simple and yet very powerful tool in C++. The simple idea is to pass data type as a parameter so that… Read More
1st there was a online assessment. Oracle finance and oracle server, both had almost the same paper..4 sections.. 1) eng 2) apti 3) basic technical… Read More
  Friend Class A friend class can access private and protected members of other class in which it is declared as friend. It is sometimes… Read More
You are given a function rand(a, b) which generates equiprobable random numbers between [a, b] inclusive. Generate 3 numbers x, y, z with probability P(x),… Read More
A nibble is a four-bit aggregation, or half an octet. There are two nibbles in a byte. Given a byte, swap the two nibbles in it.… Read More
Remain Careful from these two persons new friends and old enemies — Kabir What is static keyword in C++? static keyword can be applied to… Read More
Like member functions and member function arguments, the objects of a class can also be declared as const. an object declared as const cannot be… Read More
Written was mixture of technical and aptitude. Aptitude tests covers few questions on numbers, reasoning and probability. Technical part covers Operating System, Database and Data… Read More
A default argument is a value provided in a function declaration that is automatically assigned by the compiler if the caller of the function doesn’t… Read More
Round 1: (1 h) ============== Q1. Design a Garbage collector like java. How would you detect depended reference loop? Hist : Class design, Cycle detection… Read More
What is destructor? Destructor is a member function which destructs or deletes an object. Syntax: ~constructor-name(); Properties of Destructor: Destructor function is automatically invoked when the… Read More