Recent questions in Programming and DS

9 votes
2 answers
2401
Consider the following $C$ function#include<stdio.h int main(void) { char c[]="ICRBCSIT17" char *p=c; printf("%s",c+2[p]-6[p]-1); return 0; }The output of the program is ...
2 votes
1 answer
2402
Consider the functionint fun(x: integer) { If x>100 then fun=x-10; else fun=fun(fun(x+11)); }For the input $x=95$, the function will return$89$$90$$91$$92$
3 votes
2 answers
2403
Consider the functionint func(int num) { int count=0; while(num) { count++; num>>=1; } return(count); }For $func(435)$ the value returned is$9$$8$$0$$10$
5 votes
1 answer
2404
1 votes
1 answer
2406
The minimum number of stacks needed to implement a queue is$3$$1$$2$$4$
2 votes
2 answers
2407
A strictly binary tree with $10$ leavescannot have more than $19$ nodeshas exactly $19$ nodeshas exactly $17$ nodeshas exactly $20$ nodes
3 votes
2 answers
2408
3 votes
2 answers
2409
3 votes
1 answer
2410
Which of the following permutation can be obtained in the same order using a stack assuming thatinput is the sequence $5,6,7,8,9$ in that order?$7,8,9,5,6$$5,9,6,7,8$$7,8...
3 votes
2 answers
2411
A binary search tree is used to locate the number $43.$ Which one of the followingprobe sequence is not possible?$61,52,14,17,40,43$$10,65,31,48,37,43$$81,61,52,14,41,43$...
7 votes
2 answers
2413
Match the following and choose the correct answer in the order $A, B,C$$\begin{array}{|ll|ll|} \hline \text{A.} & \text{Heap Construction} & \text{p.} & O(n\log n) \\\hli...
5 votes
2 answers
2415
The number of structurally different possible binary trees with $4$ nodes is $14$$12$$336$$168$
1 votes
1 answer
2416
$\text{Type-IV} JDBC$ driver is a driverwhich is written in $C++$which requires an intermediate layerwhich communicates through Java socketswhich translates $JDBC$ functi...
3 votes
2 answers
2417
//Consider the program void function(int n) { int i,j,count=0; for(i=n/2;i<=n;i++) for(j=1;j<=n;j=j*2) count++; }The complexity of the program is$O(\log n)$$O(n^2)$$O(n^2...
0 votes
0 answers
2420
Can anyone please explain what is the answer to this question by static and dynamic scoping?