NEW
New Website Launch
Experience the best way to solve previous year questions with mock tests (very detailed analysis), bookmark your favourite questions, practice etc...
VISIT NOW

GATE CSE

Basic of Programming Language

Programming Languages

Previous Years Questions

Marks 1

More
What is printed by the following ANSI C program? #include <stdio.h> int main(int argc, char *argv[]) { cha...
GATE CSE 2022
Consider the following ANSI C program: int main() { Integer x; return 0; } Which one of the following phases in a s...
GATE CSE 2021 Set 2
Consider the following C function. int fun ( int n ) {    int x = 1, k ;    if ( n == 1) return x ; ...
GATE CSE 2015 Set 2
Let A be a square matrix size $$n \times n$$. Consider the following pseudocode. What is the expected output? C = 100; ...
GATE CSE 2014 Set 3
Which of the following statements are CORRECT? 1) Static allocation of all data areas by a compiler makes it impossible ...
GATE CSE 2014 Set 3
Which one of the following is NOT performed during compilation?
GATE CSE 2014 Set 2
Suppose n and p are unsigned int variables in a C program. We wish to set p to $${}^n{C_3}$$. If n is large, which one o...
GATE CSE 2014 Set 2
Consider the function func shown below: int func(int num) {          int ...
GATE CSE 2014 Set 2
Consider the following program in C language: #include < stdio.h > main() { int i; int *pi = &i; scanf("%d", p...
GATE CSE 2014 Set 1
Which languages necessarily need heap allocation in the runtime environment?
GATE CSE 2010
A common property of logic programming languages and functional languages is:
GATE CSE 2005
Choose the best matching between the programming style in Group 1 and their characteristics in Group 2 Group 1 P. Functi...
GATE CSE 2004
The goal of structured programming is to
GATE CSE 2004
Which of the following statements is FALSE?
GATE CSE 2003
The results returned by function under value-result and reference parameter passing conventions
GATE CSE 2002
Heap allocation is required for languages.
GATE CSE 1997
What are x and y in the following macro definition? macro Add x,y Load y Mul x Store y end macro...
GATE CSE 1995
An unrestricted use of the "goto" statement is harmful because
GATE CSE 1994
Indicate the following statement true or false: A programming language not supporting either recursion or pointer type d...
GATE CSE 1991
Indicate the following statement true or false: Although C does not support call by name parameter passing, the effect c...
GATE CSE 1991

Marks 2

More
Consider the following pseudo code, where x and y are positive integers. begin q := 0 r := x while r ≥ y d...
GATE CSE 2015 Set 1
Consider the following function double f (double x) { if ( abs (x * x – 3) < 0. 01) return x; else return f (...
GATE CSE 2014 Set 2
Consider the C function given below. int f(int j) { static int i = 50; int k; if (i == j) { prin...
GATE CSE 2014 Set 2
What is the return value of f (p, p), if the value of p is initialized to 5 before the call? Note that the first paramet...
GATE CSE 2013
Which of the following are true? I. A programming language which does not permit global variables of any kind and has no...
GATE CSE 2008
The following program fragment is written in a programming language that allows global variables and does not allow nest...
GATE CSE 2003
The following program fragment is written in a programming language that allows global variables and does not allow nest...
GATE CSE 2003
Consider the following program Program P2 var n:int; procedure W(var x:int) begin x=x+1; ...
GATE CSE 2001
What is printed by the print statements in the program P1 assuming call by reference parameter passing? Program P1() { ...
GATE CSE 2001
A certain processor supports only the immediate and the direct addressing modes. Which of the following programming lang...
GATE CSE 1999
Consider the following program in a language that has dynamic scooping: var x: real; procedure show; begin prin...
GATE CSE 1999
Given the programming constructs: (i) assignment (ii) for loops where the loop parameter cannot be changed within the lo...
GATE CSE 1999
Faster access to non-local variables is achieved using an array of pointers to activation records called a
GATE CSE 1998
Given the following Pascal like program segment: Procedure A;      x,y:intger;   &nb...
GATE CSE 1997
The correct matching for the following pairs is List - I (A) Activation record (B) Location counter (C) Reference counts...
GATE CSE 1996
In which one of the following cases is it possible to obtain different results for call-by-reference and call-by-name pa...
GATE CSE 1994
Match the pairs in the following: List - I (A) Small talk (B) LISP (C) Prolog (D) VAL List - II (p) Logic programming (q...
GATE CSE 1990
Match the pairs in the following: List - I (A) Pointer data type (B) Activation record (C) Repeat-until (D) Coercion Lis...
GATE CSE 1990
An unrestricted use of the "goto" statement is harmful because of which of the following reason(s):
GATE CSE 1989
In which of the following cases it is possible to obtain different results for call-by-reference and call-by-name parame...
GATE CSE 1989

Joint Entrance Examination

JEE Main JEE Advanced WB JEE

Graduate Aptitude Test in Engineering

GATE CSE GATE ECE GATE EE GATE ME GATE CE GATE PI GATE IN

Medical

NEET

CBSE

Class 12