All Easy Articles

## C Language | Set 3 2.8

Following questions have been asked in GATE CS exam. 1.Assume the following C variable declaration int *A , B; Of the following expressions I A… Read More »

## Data Structures and Algorithms | Set 4 2.5

Following questions have been asked in GATE CS exam. 1. Consider the following C program segment filter_none edit close play_arrow link brightness_4 code struct CellNode… Read More »

## Compute modulus division by a power-of-2-number 2.7

Compute n modulo d without division(/) and modulo(%) operators, where d is a power of 2 number. Let ith bit from right is set in… Read More »

## Data Structures and Algorithms | Set 3 2

Following questions have asked in GATE CS exam. 1. Suppose you are given an array s[1…n] and a procedure reverse (s,i,j) which reverses the order… Read More »

## Reversal algorithm for array rotation 2.3

Write a function rotate(arr[], d, n) that rotates arr[] of size n by d elements. Example : Input : arr[] = [1, 2, 3, 4,… Read More »

## Java Program for Reversal algorithm for array rotation 2

Write a function rotate(arr[], d, n) that rotates arr[] of size n by d elements. Example : Input : arr[] = [1, 2, 3, 4,… Read More »

## Program for array rotation 2.5

Write a function rotate(ar[], d, n) that rotates arr[] of size n by d elements. Rotation of the above array by 2 will make array… Read More »

## Python Program for array rotation 2.3

Write a function rotate(ar[], d, n) that rotates arr[] of size n by d elements. Rotation of the above array by 2 will make array… Read More »

## Level Order Tree Traversal 2.3

Level order traversal of a tree is breadth first traversal for the tree. Level order traversal of the above tree is 1 2 3 4… Read More »

## Rotate bits of a number 2.5

Bit Rotation: A rotation (or circular shift) is an operation similar to shift except that the bits that fall off at one end are put… Read More »

## Write a function to get the intersection point of two Linked Lists 2.5

There are two singly linked lists in a system. By some programming error, the end node of one of the linked list got linked to… Read More »

## Compiler Theory | Set 1 2.4

Following questions have been asked in GATE CS exam. 1. Which of the following derivations does a top-down parser use while parsing an input string?… Read More »

## C Language | Set 1 2

Following questions have been asked in GATE CS exam. 1. Consider the following three C functions : filter_none edit close play_arrow link brightness_4 code [PI]… Read More »

## Operating Systems | Set 3 2.6

Following questions have been asked in GATE CS exam. 1. Suppose the time to service a page fault is on the average 10 milliseconds, while… Read More »

## Operating Systems | Set 2 2

Following questions have been asked in GATE CS exam. 1. Consider a machine with 64 MB physical memory and a 32-bit virtual address space. If… Read More »

## Given a string, find its first non-repeating character 2.2

Given a string, find the first non-repeating character in it. For example, if the input string is “GeeksforGeeks”, then output should be ‘f’ and if… Read More »

## Output of C Programs | Set 7 2.1

Predict the output of below programs Question 1 filter_none edit close play_arrow link brightness_4 code int main() {     int i = 0;     while (i <=… Read More »

## Automata Theory | Set 1 2.6

Following questions have been asked in GATE CS exam. 1. Let S and T be language over ={a,b} represented by the regular expressions (a+b*)* and… Read More »

## Operating Systems | Set 1 2.2

Following questions have been asked in GATE CS exam. 1. Which of the following is NOT a valid deadlock prevention scheme? (GATE CS 2000) (a)… Read More »

## Merge an array of size n into another array of size m+n 2.5

There are two sorted arrays. First one is of size m+n containing only m elements. Another one is of size n and contains n elements.… Read More »