Skip to content
All Easy Articles
Predict the output of following C++ programs. Question 1 #include <iostream> using namespace std;    class A { public:     void print() { cout << "A::print()";… Read More
Predict the output of following C++ program. Difficulty Level: Rookie Question 1 #include <iostream> using namespace std;    class A {     int id; public:     A… Read More
Given an array of integers, find all combination of four elements in the array whose sum is equal to a given value X. For example,… Read More
Please find the details of my Microsoft Interview below. Date Of Interview: 3rd August,2012 No. of Rounds: 2 online exams + 4 rounds of PI… Read More
You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. A pair (c, d) can… Read More
Predict the output of following C program. Question 1 #include <stdio.h>    int main() {     char a = 30;     char b = 40;     char c… Read More
Given a singly linked list, rotate the linked list counter-clockwise by k nodes. Where k is a given positive integer. For example, if the given… Read More
Predict the output of following C++ programs. Question 1 #include<iostream> using namespace std;    class Point { private:     int x;     int y; public:     Point(const Point&p)… Read More
Given three linked lists, say a, b and c, find one node from each list such that the sum of the values of the nodes… Read More
Predict the output of the below code snippet. #include <iostream> using namespace std;    int i;    class A { public:     ~A()     {         i=10;     }… Read More
  Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number.  Example: … Read More
Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number. For example,… Read More
Given an unsorted array and a number n, find if there exists a pair of elements in the array whose difference is n. Examples: Input:… Read More
Given three corner points of a triangle, and one more point P. Write a function to check whether P lies within the triangle or not.… Read More
Predict the output of following C++ programs. Question 1 #include<iostream> #include<string.h> using namespace std;    class String {     char *p;     int len; public:     String(const char… Read More
In this article, we will discuss how to write a multi-line macro. We can write multi-line macro same like function, but each statement ends with… Read More
Given Inorder Traversal of a Special Binary Tree in which key of every node is greater than keys in left and right children, construct the… Read More
Following questions have been asked in GATE CS 2011 exam. 1) The lexical analysis for a modern language such as Java needs the power of… Read More
Following questions have been asked in GATE CS 2007 exam. 1) Which one of the following uses UDP as the transport protocol? (A) HTTP (B)… Read More
Following questions have been asked in GATE CS 2005 exam. 1) Packets of the same session may be routed through different paths in: (a) TCP,… Read More