Basic of Programming Language · Programming Languages · GATE CSE

Start Practice

Marks 1

GATE CSE 2024 Set 1
Consider the following C program: #include <stdio.h> int main() { int a = 6; int b = 0; while(a Which one of the following state...
GATE CSE 2015 Set 2
Consider the following C function. int fun ( int n ) {    int x = 1, k ;    if ( n == 1) return x ;    for( k = 1 ;...
GATE CSE 2014 Set 2
Consider the function func shown below: int func(int num) {          int count = 0;    &...
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 of the following statements is ...
GATE CSE 2014 Set 2
Which one of the following is NOT performed during compilation?
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 to implement recursion. 2) Aut...
GATE CSE 2014 Set 3
Let A be a square matrix size $$n \times n$$. Consider the following pseudocode. What is the expected output? C = 100; for i = 0 to n do for j = 1 t...
GATE CSE 2014 Set 1
Consider the following program in C language: #include < stdio.h > main() { int i; int *pi = &i; scanf("%d", pi); printf("%d\n", i + 5); } W...
GATE CSE 2010
Which languages necessarily need heap allocation in the runtime environment?
GATE CSE 2005
A common property of logic programming languages and functional languages is:
GATE CSE 2004
The goal of structured programming is to
GATE CSE 2004
Choose the best matching between the programming style in Group 1 and their characteristics in Group 2 Group 1 P. Functional Q. Logic R. Object-orient...
GATE CSE 2003
Which of the following statements is FALSE?
GATE CSE 2002
The results returned by function under value-result and reference parameter passing conventions
GATE CSE 1997
Heap allocation is required for languages.
GATE CSE 1995
What are x and y in the following macro definition? macro Add x,y Load y Mul x Store y end macro
GATE CSE 1994
An unrestricted use of the "goto" statement is harmful because
GATE CSE 1991
Indicate the following statement true or false: Although C does not support call by name parameter passing, the effect can be correctly simulated in C...
GATE CSE 1991
Indicate the following statement true or false : A programming language not supporting either recursion or pointer type does not need the support of d...

Marks 2

GATE CSE 2024 Set 2
Consider an array X that contains n positive integers. A subarray of X is defined to be a sequence of array locations with consecutive indices. The C ...
GATE CSE 2023
Consider the following program: .tg {border-collapse:collapse;border-spacing:0;} .tg td{border-color:black;border-style:solid;border-width:1px;font-...
GATE CSE 2022
What is printed by the following ANSI C program? #include <stdio.h> int main(int argc, char *argv[]) { char a = 'P'; char b = 'x'; ...
GATE CSE 2019
Consider the following C program : #include <stdio.h> int main(){ float sum = 0.0, j = 1.0, i = 2.0; while (i/j > 0.0625){ ...
GATE CSE 2015 Set 1
Consider the following pseudo code, where x and y are positive integers. begin q := 0 r := x while r ≥ y do begin r := r -...
GATE CSE 2014 Set 2
Consider the C function given below. int f(int j) { static int i = 50; int k; if (i == j) { printf("something"); k = f...
GATE CSE 2014 Set 2
Consider the following function double f (double x) { if ( abs (x * x – 3) < 0. 01) return x; else return f (x / 2 + 1.5/x); } Give a value...
GATE CSE 2013
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 parameter is passed by reference, whe...
GATE CSE 2008
Which of the following are true? I. A programming language which does not permit global variables of any kind and has no nesting of procedures/functio...
GATE CSE 2003
The following program fragment is written in a programming language that allows global variables and does not allow nested declarations of functions. ...
GATE CSE 2003
The following program fragment is written in a programming language that allows global variables and does not allow nested declarations of functions. ...
GATE CSE 2001
What is printed by the print statements in the program P1 assuming call by reference parameter passing? Program P1() { x=10; y=3; func1...
GATE CSE 2001
Consider the following program Program P2 var n:int; procedure W(var x:int) begin x=x+1; print x; end ...
GATE CSE 1999
Given the programming constructs: (i) assignment (ii) for loops where the loop parameter cannot be changed within the loop (iii) if-then-else (iv) for...
GATE CSE 1999
Consider the following program in a language that has dynamic scooping: var x: real; procedure show; begin print(x); end; procedure small; ...
GATE CSE 1999
A certain processor supports only the immediate and the direct addressing modes. Which of the following programming language features cannot be implem...
GATE CSE 1998
Faster access to non-local variables is achieved using an array of pointers to activation records called a
GATE CSE 1997
Given the following Pascal like program segment: Procedure A;      x,y:intger;      Procedure B; &n...
GATE CSE 1996
The correct matching for the following pairs is List - I (A) Activation record (B) Location counter (C) Reference counts (D) Address relocation List ...
GATE CSE 1994
In which one of the following cases is it possible to obtain different results for call-by-reference and call-by-name parameter passing methods?
GATE CSE 1990
Match the pairs in the following: List - I (A) Small talk (B) LISP (C) Prolog (D) VAL List - II (p) Logic programming (q) Data flow programming (r) Fu...
GATE CSE 1990
Match the pairs in the following: List - I (A) Pointer data type (B) Activation record (C) Repeat-until (D) Coercion List - II (p) Type conversion (q)...
GATE CSE 1989
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 parameter passing?
EXAM MAP
Medical
NEETAIIMS
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
Staff Selection Commission
SSC CGL Tier I
CBSE
Class 12