Skip to content
All Easy Articles
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.For… 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 2009 exam. 1) Let G(x) be the generator polynomial used for CRC checking. What is the condition… 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
Following Questions have been asked in GATE 2010 CS exam. 1) One of the header fields in an IP datagram is the Time to Live… Read More
Following Questions have been asked in GATE 2012 CS exam. 1) Consider a source computer (S) transmitting a file of size 106 bits to a… Read More
Following Questions have been asked in GATE 2012 exam. 1) Consider the following transactions with data items P and Q initialized to zero: T1: read… Read More
Following Questions have been asked in GATE 2012 exam. 1) Which of the following statements are TRUE about an SQL query? P: An SQL query… Read More
Following questions have been asked in GATE CS 2006 exam. 1) Consider three CPU-intensive processes, which require 10, 20 and 30 time units and arrive… Read More
Following questions have been asked in GATE CS 2007 exam. 1) A virtual memory system uses First In First Out (FIFO) page replacement policy and… Read More
Following questions have been asked in GATE CS 2007 exam. 1) Consider a disk pack with 16 surfaces, 128 tracks per surface and 256 sectors… Read More
Following questions have been asked in GATE 2008 CS exam. 1) The data blocks of a very large file in the Unix file system are… Read More