Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Programming:
Recent questions tagged programming
9.8k
views
2
answers
35
votes
GATE IT 2004 | Question: 59
What is the output of the following program?#include<stdio.h int funcf (int x); int funcg (int y); main () { int x = 5, y = 10, count; for (count = 1; count <= 2; ++count...
Ishrat Jahan
9.8k
views
Ishrat Jahan
asked
Nov 2, 2014
Programming in C
gateit-2004
programming
programming-in-c
normal
+
–
12.5k
views
3
answers
30
votes
GATE IT 2004 | Question: 58
Consider the following C program which is supposed to compute the transpose of a given $4 \times 4$ matrix $M$. Note that, there is an $X$ in the program which indicates ...
Ishrat Jahan
12.5k
views
Ishrat Jahan
asked
Nov 2, 2014
Programming in C
gateit-2004
programming
easy
programming-in-c
array
+
–
10.1k
views
3
answers
29
votes
GATE IT 2004 | Question: 15
Let $x$ be an integer which can take a value of $0$ or $1$. The statementif (x == 0) x = 1; else x = 0;is equivalent to which one of the following ?$x = 1 + x;$$x = 1 - ...
Ishrat Jahan
10.1k
views
Ishrat Jahan
asked
Nov 1, 2014
Programming in C
gateit-2004
programming
easy
identify-function
+
–
4.7k
views
2
answers
6
votes
GATE IT 2006 | Question: 53
Match the following concepts and their best possible descriptions. Concept Descriptioni.overloadinga.allows to define a class to have properties of another classii.friend...
Ishrat Jahan
4.7k
views
Ishrat Jahan
asked
Oct 31, 2014
Object Oriented Programming
gateit-2006
programming
match-the-following
object-oriented-programming
non-gate
+
–
13.3k
views
6
answers
74
votes
GATE IT 2006 | Question: 51
Which one of the choices given below would be printed when the following program is executed? #include <stdio.h int a1[] = {6, 7, 8, 18, 34, 67}; int a2[] = {23, 5...
Ishrat Jahan
13.3k
views
Ishrat Jahan
asked
Oct 31, 2014
Programming in C
gateit-2006
programming
programming-in-c
normal
+
–
26.1k
views
6
answers
85
votes
GATE IT 2006 | Question: 50
Which one of the choices given below would be printed when the following program is executed?#include <stdio.h void swap (int *x, int *y) { static int *temp; temp = x; x ...
Ishrat Jahan
26.1k
views
Ishrat Jahan
asked
Oct 31, 2014
Programming in C
gateit-2006
programming
programming-in-c
normal
parameter-passing
+
–
27.5k
views
6
answers
101
votes
GATE IT 2006 | Question: 49
Which one of the choices given below would be printed when the following program is executed ?#include <stdio.h struct test { int i; char *c; }st[] = {5, "become", 4, "be...
Ishrat Jahan
27.5k
views
Ishrat Jahan
asked
Oct 31, 2014
Programming in C
gateit-2006
programming
programming-in-c
normal
structure
+
–
5.2k
views
1
answers
7
votes
GATE IT 2007 | Question: 35
Early binding refers to a binding performed at compile time and late binding refers to a binding performed at execution time. Consider the following statements:Static sco...
Ishrat Jahan
5.2k
views
Ishrat Jahan
asked
Oct 29, 2014
Programming in C
gateit-2007
programming
variable-binding
normal
out-of-syllabus-now
+
–
7.7k
views
3
answers
15
votes
GATE IT 2007 | Question: 34, UGCNET-Dec2012-III: 52
Consider the program below in a hypothetical programming language which allows global variables and a choice of static or dynamic scoping.int i; program main() { i = 10; ...
Ishrat Jahan
7.7k
views
Ishrat Jahan
asked
Oct 29, 2014
Programming in C
gateit-2007
programming
variable-binding
easy
ugcnetcse-dec2012-paper3
+
–
8.7k
views
1
answers
25
votes
GATE IT 2007 | Question: 33
Consider the program below in a hypothetical language which allows global variable and a choice of call by reference or call by value methods of parameter passing. ...
Ishrat Jahan
8.7k
views
Ishrat Jahan
asked
Oct 29, 2014
Compiler Design
gateit-2007
programming
parameter-passing
normal
compiler-design
runtime-environment
+
–
11.1k
views
5
answers
32
votes
GATE IT 2007 | Question: 31
Consider the C program given below : #include <stdio.h int main () { int sum = 0, maxsum = 0, i, n = 6; int a [] = {2, -2, -1, 3, 4, 2}; for (i = 0; i < n; i++) { if (i =...
Ishrat Jahan
11.1k
views
Ishrat Jahan
asked
Oct 29, 2014
Programming in C
gateit-2007
programming
programming-in-c
normal
+
–
13.3k
views
5
answers
49
votes
GATE IT 2007 | Question: 27
The function f is defined as follows:int f (int n) { if (n <= 1) return 1; else if (n % 2 == 0) return f(n/2); else return f(3n - 1); }Assuming that arbitrarily large int...
Ishrat Jahan
13.3k
views
Ishrat Jahan
asked
Oct 29, 2014
Programming in C
gateit-2007
programming
recursion
normal
+
–
10.7k
views
2
answers
43
votes
GATE IT 2008 | Question: 52
C program is given below:# include <stdio.h int main () { int i, j; char a [3] = {{'a', 'b', 'c'}, {'d', 'e', 'f'}}; char b [3] ; char *p = *b; for (i = 0; i < 2; i++)...
Ishrat Jahan
10.7k
views
Ishrat Jahan
asked
Oct 28, 2014
Programming in C
gateit-2008
programming
programming-in-c
normal
array
+
–
15.2k
views
3
answers
65
votes
GATE IT 2008 | Question: 51
Consider the C program given below. What does it print?#include <stdio.h int main () { int i, j; int a [8] = {1, 2, 3, 4, 5, 6, 7, 8}; for(i = 0; i < 3; i++) { a[i] = a[i...
Ishrat Jahan
15.2k
views
Ishrat Jahan
asked
Oct 28, 2014
Programming in C
gateit-2008
programming
programming-in-c
normal
array
+
–
10.8k
views
4
answers
23
votes
GATE IT 2008 | Question: 50
Consider the C program below. What does it print?# include <stdio.h # define swapl (a, b) tmp = a; a = b; b = tmp void swap2 ( int a, int b) { int tmp; tmp = a; a = b; b ...
Ishrat Jahan
10.8k
views
Ishrat Jahan
asked
Oct 28, 2014
Programming in C
gateit-2008
programming
programming-in-c
easy
parameter-passing
+
–
9.9k
views
4
answers
31
votes
GATE IT 2008 | Question: 49
What is the output printed by the following C code?# include <stdio.h int main () { char a [6] = "world"; int i, j; for (i = 0, j = 5; i < j; a [i++] = a [j ]); printf ("...
Ishrat Jahan
9.9k
views
Ishrat Jahan
asked
Oct 28, 2014
Programming in C
gateit-2008
programming
programming-in-c
normal
array
+
–
5.8k
views
2
answers
12
votes
GATE IT 2008 | Question: 13
Match the programming paradigms and languages given in the following table. Paradigms Languages(I)Imperative(a)Prolog(II)Object Oriented(b)Lisp(III)Functional(c)C, Fortra...
Ishrat Jahan
5.8k
views
Ishrat Jahan
asked
Oct 27, 2014
Programming in C
gateit-2008
programming
programming-paradigms
easy
out-of-syllabus-now
+
–
1.6k
views
1
answers
3
votes
GATE CSE 1996 | Question: 19
Consider the following program in pseudo-Pascal syntax. What is printed by the program if parameter $a$ in procedure $\text{test1}$ is passed ascall-by-reference paramete...
Kathleen
1.6k
views
Kathleen
asked
Oct 9, 2014
Programming in C
gate1996
programming
parameter-passing
normal
out-of-syllabus-now
+
–
5.5k
views
3
answers
21
votes
GATE CSE 1995 | Question: 3
Consider the following high level programming segment. Give the contents of the memory locations for variables $W, X, Y$ and $Z$ after the execution of the program segmen...
Kathleen
5.5k
views
Kathleen
asked
Oct 8, 2014
Programming in C
gate1995
programming
identify-function
descriptive
+
–
1.9k
views
1
answers
1
votes
GATE CSE 1994 | Question: 22
Consider the program below:Program main: var r:integer; procedure two: begin write (r); end procedure one: var r:integer; begin r:=5; two; end begin r:=2; two; one; two; ...
Kathleen
1.9k
views
Kathleen
asked
Oct 5, 2014
Programming in C
gate1994
programming
variable-binding
normal
out-of-gate-syllabus
+
–
25.8k
views
3
answers
37
votes
GATE CSE 1994 | Question: 21
Consider the following recursive function:function fib (n:integer);integer; begin if (n=0) or (n=1) then fib := 1 else fib := fib(n-1) + fib(n-2) end;The above function i...
Kathleen
25.8k
views
Kathleen
asked
Oct 5, 2014
Programming in C
gate1994
programming
recursion
normal
descriptive
+
–
4.0k
views
2
answers
22
votes
GATE CSE 1994 | Question: 1.5
An unrestricted use of the "$goto$" statement is harmful becauseit makes it more difficult to verify programsit increases the running time of the programsit increases the...
Kathleen
4.0k
views
Kathleen
asked
Oct 4, 2014
Programming in C
gate1994
programming
easy
goto
+
–
2.2k
views
1
answers
4
votes
GATE CSE 1997 | Question: 10
Consider the following program in Pseudo-Pascal syntax.program what: var z: integer procedure recur(x): begin if x <= 40 then begin x:x+z recur(x); z:=x+10 end end(*recur...
Kathleen
2.2k
views
Kathleen
asked
Sep 29, 2014
Programming in C
gate1997
programming
parameter-passing
normal
out-of-syllabus-now
+
–
9.9k
views
3
answers
37
votes
GATE CSE 2010 | Question: 11
What does the following program print?#include<stdio.h void f(int *p, int *q) { p=q; *p=2; } int i=0, j=1; int main() { f(&i, &j); printf("%d %d\n", i,j); return 0; }$2 \...
go_editor
9.9k
views
go_editor
asked
Sep 29, 2014
Programming in C
gatecse-2010
programming
programming-in-c
easy
parameter-passing
+
–
14.1k
views
4
answers
45
votes
GATE CSE 2012 | Question: 48
Consider the following C code segment.int a, b, c = 0; void prtFun(void); main() { static int a = 1; /* Line 1 */ prtFun(); a += 1; prtFun(); printf(“ \n %d %d ”, a, ...
gatecse
14.1k
views
gatecse
asked
Sep 29, 2014
Programming in C
gatecse-2012
programming
programming-in-c
normal
+
–
20.8k
views
2
answers
44
votes
GATE CSE 2011 | Question: 22
What does the following fragment of C program print?char c[] = "GATE2011"; char *p = c; printf("%s", p + p[3] - p );$\text{GATE2011}$$\text{E2011}$$2011$$011$
go_editor
20.8k
views
go_editor
asked
Sep 29, 2014
Programming in C
gatecse-2011
programming
programming-in-c
normal
array
+
–
9.1k
views
4
answers
41
votes
GATE CSE 2014 Set 2 | Question: 42
Consider the C function given below.int f(int j) { static int i = 50; int k; if (i == j) { printf("something"); k = f(i); return 0; } else return 0; }Which one of the fol...
go_editor
9.1k
views
go_editor
asked
Sep 28, 2014
Programming in C
gatecse-2014-set2
programming
programming-in-c
+
–
19.7k
views
4
answers
59
votes
GATE CSE 2014 Set 2 | Question: 40
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 $q$ (to $2$ decimals) such that $f(q)$ wi...
go_editor
19.7k
views
go_editor
asked
Sep 28, 2014
Programming in C
gatecse-2014-set2
programming
recursion
numerical-answers
normal
+
–
16.0k
views
4
answers
133
votes
GATE CSE 2014 Set 2 | Question: 11
Suppose $n$ and $p$ are unsigned int variables in a C program. We wish to set $p$ to $^nC_3$. If $n$ is large, which one of the following statements is most likely to set...
go_editor
16.0k
views
go_editor
asked
Sep 28, 2014
Programming in C
gatecse-2014-set2
programming
programming-in-c
normal
+
–
21.3k
views
4
answers
78
votes
GATE CSE 2006 | Question: 57
Consider this C code to swap two integers and these five statements: the codevoid swap (int *px, int *py) { *px = *px - *py; *py = *px + *py; *px = *py - *px; }S1...
Rucha Shelke
21.3k
views
Rucha Shelke
asked
Sep 26, 2014
Programming in C
gatecse-2006
programming
programming-in-c
normal
pointers
+
–
Page:
« prev
1
...
25
26
27
28
29
30
31
32
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register