Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Programming:
Recent questions tagged programming
6.9k
views
2
answers
15
votes
GATE CSE 2006 | Question: 56, ISRO2009-58
Consider the following code written in a pass-by-reference language like FORTRAN and these statements about the code. subroutine swap(ix,iy) it = ix L1 : ix = iy L2 : iy ...
Rucha Shelke
6.9k
views
Rucha Shelke
asked
Sep 26, 2014
Programming in C
gatecse-2006
programming
parameter-passing
normal
out-of-syllabus-now
isro2009
+
–
17.8k
views
5
answers
62
votes
GATE CSE 2014 Set 1 | Question: 10
Consider the following program in C language:#include <stdio.h main() { int i; int*pi = &i; scanf("%d",pi); printf("%d\n", i+5); }Which one of the following statements is...
go_editor
17.8k
views
go_editor
asked
Sep 26, 2014
Programming in C
gatecse-2014-set1
programming
programming-in-c
easy
pointers
+
–
9.0k
views
1
answers
28
votes
GATE CSE 1998 | Question: 2.15
Faster access to non-local variables is achieved using an array of pointers to activation records called a stackheapdisplayactivation tree
Kathleen
9.0k
views
Kathleen
asked
Sep 25, 2014
Compiler Design
gate1998
programming
compiler-design
normal
runtime-environment
+
–
7.3k
views
3
answers
25
votes
GATE CSE 1998 | Question: 2.13
What is the result of the following program?program side-effect (input, output); var x, result: integer; function f (var x:integer):integer; begin x:x+1;f:=x; end begin x...
Kathleen
7.3k
views
Kathleen
asked
Sep 25, 2014
Programming in C
gate1998
programming
normal
identify-function
+
–
5.9k
views
2
answers
6
votes
GATE CSE 1999 | Question: 2.13
Consider the following program in a language that has dynamic scooping:var x: real; procedure show: begin print(x);end; procedure small; var x: real; begin x: = 0.125; sh...
Kathleen
5.9k
views
Kathleen
asked
Sep 23, 2014
Programming in C
gate1999
programming
variable-binding
normal
out-of-syllabus-now
+
–
12.8k
views
5
answers
31
votes
GATE CSE 1999 | Question: 2.5
Given the programming constructsassignmentfor loops where the loop parameter cannot be changed within the loopif-then-elseforward go toarbitrary go tonon-recursive proced...
Kathleen
12.8k
views
Kathleen
asked
Sep 23, 2014
Programming in C
gate1999
programming
normal
programming-constructs
+
–
16.7k
views
8
answers
51
votes
GATE CSE 2005 | Question: 32
Consider the following C program:double foo (double); /* Line 1 */ int main() { double da, db; //input da db = foo(da); } double foo (double a) { return a; }The above cod...
Kathleen
16.7k
views
Kathleen
asked
Sep 22, 2014
Programming in C
gatecse-2005
programming
programming-in-c
compiler-design
easy
+
–
6.0k
views
4
answers
11
votes
GATE CSE 2005 | Question: 4
Which one of the following are essential features of an object-oriented programming language?Abstraction and encapsulationStrictly-typednessType-safe property coupled wit...
Kathleen
6.0k
views
Kathleen
asked
Sep 22, 2014
Object Oriented Programming
gatecse-2005
programming
normal
object-oriented-programming
non-gate
+
–
12.5k
views
3
answers
13
votes
GATE CSE 2005 | Question: 3, UGCNET-June2012-III: 15
A common property of logic programming languages and functional languages is:both are procedural languages both are based on $\lambda$-calculusboth are declarativeboth us...
Kathleen
12.5k
views
Kathleen
asked
Sep 22, 2014
Programming in C
gatecse-2005
programming
normal
ugcnetcse-june2012-paper3
programming-paradigms
non-gate
+
–
21.0k
views
5
answers
39
votes
GATE CSE 2005 | Question: 1, ISRO2017-55
What does the following C-statement declare?int (*f) (int * );A function that takes an integer pointer as argument and returns an integerA function that takes an integer ...
Kathleen
21.0k
views
Kathleen
asked
Sep 22, 2014
Programming in C
gatecse-2005
programming
programming-in-c
pointers
easy
isro2017
+
–
10.6k
views
1
answers
26
votes
GATE CSE 2007 | Question: 42
Consider the following C function:int f(int n) { static int r = 0; if (n <= 0) return 1; if (n 3) { r = n; return f(n-2) + 2; } return f(n-1) + r; }What is the value of ...
Kathleen
10.6k
views
Kathleen
asked
Sep 21, 2014
Programming in C
gatecse-2007
programming
recursion
normal
+
–
7.2k
views
5
answers
26
votes
GATE CSE 2004 | Question: 90
Choose the best matching between the programming styles in Group 1 and their characteristics in Group 2.$$\begin{array}{|ll|ll|}\hline \rlap{\textbf{Group 1}} & & \rlap{...
Kathleen
7.2k
views
Kathleen
asked
Sep 18, 2014
Programming in C
gatecse-2004
programming
normal
programming-paradigms
match-the-following
+
–
13.3k
views
2
answers
34
votes
GATE CSE 2004 | Question: 33
Consider the following C program segment:char p[20]; int i; char* s = "string"; int length = strlen(s); for(i = 0; i < length; i++) p[i] = s[length-i]; printf("%s", p);Th...
Kathleen
13.3k
views
Kathleen
asked
Sep 18, 2014
Programming in C
gatecse-2004
programming
programming-in-c
easy
+
–
12.5k
views
5
answers
32
votes
GATE CSE 2004 | Question: 32
Consider the following program fragment for reversing the digits in a given integer to obtain a new integer.Let $n = d_1\, d_2\, \ldots\, d_m$.int n, rev; rev = 0; while(...
Kathleen
12.5k
views
Kathleen
asked
Sep 18, 2014
Programming in C
gatecse-2004
programming
loop-invariants
normal
+
–
14.9k
views
3
answers
28
votes
GATE CSE 2004 | Question: 31, ISRO2008-40
Consider the following C function:int f(int n) { static int i = 1; if(n >= 5) return n; n = n+i; i++; return f(n); }The value returned by $f(1)$ is:$5$$6$$7$$8$
Kathleen
14.9k
views
Kathleen
asked
Sep 18, 2014
Programming in C
gatecse-2004
programming
programming-in-c
recursion
easy
isro2008
+
–
9.2k
views
2
answers
24
votes
GATE CSE 2004 | Question: 1
The goal of structured programming is to:have well indented programsbe able to infer the flow of control from the compiled codebe able to infer the flow of control from t...
Kathleen
9.2k
views
Kathleen
asked
Sep 18, 2014
Programming in C
gatecse-2004
programming
easy
programming-paradigms
+
–
12.8k
views
5
answers
40
votes
GATE CSE 2003 | Question: 89
Consider the C program shown below:#include<stdio.h #define print(x) printf("%d", x) int x; void Q(int z) { z+=x; print(z); } void P(int *y) { int x = *y + 2; Q(x); *y = ...
Kathleen
12.8k
views
Kathleen
asked
Sep 17, 2014
Programming in C
gatecse-2003
programming
programming-in-c
normal
pointers
+
–
5.6k
views
2
answers
2
votes
GATE CSE 2003 | Question: 75
Consider the following class definitions in a hypothetical Object Oriented language that supports inheritance and uses dynamic binding. The language should not be assumed...
Kathleen
5.6k
views
Kathleen
asked
Sep 17, 2014
Programming in C
gatecse-2003
programming
variable-binding
normal
out-of-syllabus-now
+
–
3.9k
views
0
answers
5
votes
GATE CSE 2003 | Question: 71
Consider the following logic program P$\begin{align*} A(x) &\gets B(x,y), C(y) \\ &\gets B(x,x) \end{align*}$Which of the following first order sentences is equivalent to...
Kathleen
3.9k
views
Kathleen
asked
Sep 17, 2014
Programming in C
gatecse-2003
programming
logic-programming
out-of-syllabus-now
+
–
9.3k
views
4
answers
39
votes
GATE CSE 2003 | Question: 24
Which of the following statements is FALSE?In statically typed languages, each variable in a program has a fixed typeIn un-typed languages, values do not have any typesIn...
Kathleen
9.3k
views
Kathleen
asked
Sep 16, 2014
Programming in C
gatecse-2003
programming
normal
type-checking
+
–
30.7k
views
4
answers
72
votes
GATE CSE 2003 | Question: 2
Assume the following C variable declaration:int *A[10], B[10][10];Of the following expressions:$A $$A [3]$$B $$B [3]$which will not give compile-time errors if used as le...
Kathleen
30.7k
views
Kathleen
asked
Sep 16, 2014
Programming in C
gatecse-2003
programming
programming-in-c
easy
pointers
+
–
3.4k
views
2
answers
24
votes
GATE CSE 2002 | Question: 11
The following recursive function in C is a solution to the Towers of Hanoi problem.void move(int n, char A, char B, char C) { if (......................) { move (...........
Kathleen
3.4k
views
Kathleen
asked
Sep 15, 2014
Programming in C
gatecse-2002
programming
recursion
descriptive
+
–
10.5k
views
3
answers
35
votes
GATE CSE 2002 | Question: 2.18
The C language is:A context free languageA context sensitive languageA regular languageParsable fully only by a Turing machine
Kathleen
10.5k
views
Kathleen
asked
Sep 15, 2014
Programming in C
gatecse-2002
programming
programming-in-c
normal
+
–
28.4k
views
4
answers
39
votes
GATE CSE 2002 | Question: 2.8
Consider the following declaration of a two-dimensional array in C:char $a[100][100]$;Assuming that the main memory is byte-addressable and that the array is stored start...
Kathleen
28.4k
views
Kathleen
asked
Sep 15, 2014
Programming in C
gatecse-2002
programming-in-c
programming
easy
+
–
8.5k
views
2
answers
13
votes
GATE CSE 2002 | Question: 1.18
The results returned by function under value-result and reference parameter passing conventionsDo not differDiffer in the presence of loopsDiffer in all casesMay differ i...
Kathleen
8.5k
views
Kathleen
asked
Sep 15, 2014
Programming in C
gatecse-2002
programming
parameter-passing
normal
out-of-syllabus-now
+
–
10.4k
views
1
answers
41
votes
GATE CSE 2002 | Question: 1.17
In the C language:At most one activation record exists between the current activation record and the activation record for the mainThe number of activation records betwee...
Kathleen
10.4k
views
Kathleen
asked
Sep 15, 2014
Programming in C
gatecse-2002
programming
programming-in-c
easy
descriptive
+
–
11.3k
views
2
answers
31
votes
GATE CSE 2001 | Question: 13
Consider the following C program:void abc(char*s) { if(s[0]=='\0')return; abc(s+1); abc(s+1); printf("%c",s[0]); } main() { abc("123"); }What will be the output of the pr...
Kathleen
11.3k
views
Kathleen
asked
Sep 14, 2014
Programming in C
gatecse-2001
programming
recursion
normal
descriptive
+
–
7.5k
views
2
answers
11
votes
GATE CSE 2001 | Question: 2.19
Consider the following programProgram P2 var n : int; procedure W(var x : int) begin x = x + 1; print x; end procedure D begin var n : int; n = 3; W(n); end begin \\begin...
Kathleen
7.5k
views
Kathleen
asked
Sep 14, 2014
Programming in C
gatecse-2001
programming
parameter-passing
normal
out-of-syllabus-now
+
–
24.8k
views
3
answers
62
votes
GATE CSE 2001 | Question: 2.18
Consider the following three C functions:$[P1]$ int *g(void) { int x = 10; return (&x); }$[P2]$ int *g(void) { int *px; *px = 10; return px; }$[P3]$ int *g(void) { int *p...
Kathleen
24.8k
views
Kathleen
asked
Sep 14, 2014
Programming in C
gatecse-2001
programming
programming-in-c
normal
pointers
+
–
3.1k
views
2
answers
6
votes
GATE CSE 2000 | Question: 18
Consider the following program is pseudo-Pascal syntaxprogram main; var x: integer; procedure Q (z: integer); begin z := z+x; writeln(z); end; procedure P (y: integer);...
Kathleen
3.1k
views
Kathleen
asked
Sep 14, 2014
Programming in C
gatecse-2000
programming
parameter-passing
normal
out-of-syllabus-now
descriptive
+
–
Page:
« prev
1
...
26
27
28
29
30
31
32
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register