Recent questions tagged programming

28 votes
1 answer
903
Faster access to non-local variables is achieved using an array of pointers to activation records called a stackheapdisplayactivation tree
25 votes
3 answers
904
13 votes
3 answers
909
26 votes
1 answer
911
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 ...
26 votes
5 answers
912
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{...
34 votes
2 answers
913
28 votes
3 answers
915
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$
24 votes
2 answers
916
5 votes
0 answers
919
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...
35 votes
3 answers
923
The C language is:A context free languageA context sensitive languageA regular languageParsable fully only by a Turing machine
13 votes
2 answers
925