1 Crore+ students have signed up on EduRev. Have you? Download the App 
Consider the following recursive function fun(x, y). What is the value of fun(4, 3)
Consider the following recursive C function that takes two arguments
unsigned int foo(unsigned int n, unsigned int r){
if(n >0) return (n%r + foo (n/r, r));
else return 0;
}
Q.
What is the return value of the function foo when it is called as foo(345, 10) ?
Consider the same recursive C function that takes two arguments
Q. What is the return value of the function foo when it is called as foo(513, 2)?
Consider the following code snippet:
What will happen when the above snippet is executed?
Consider the C function given below.
Q. Which one of the following is TRUE?
Consider the following C function:
The value returned by f(1) is
Consider the following C function.
Q. The return value of fun(5) is __________.
Consider the following recursive C function. If get(6) function is being called in main() then how many times will the get() function be invoked before returning to the main()?
The function f is defined as follows:
Assuming that arbitrarily large integers can be passed as a parameter to the function, consider the following statements.
1. The function f terminates for finitely many different values of n ≥ 1.
ii. The function f terminates for infinitely many different values of n ≥ 1.
iii. The function f does not terminate for finitely many different values of n ≥ 1.
iv. The function f does not terminate for infinitely many different values of n ≥ 1.
Which one of the following options is true of the above?
152 docs216 tests

Test: Graphs & Hashing 2 Test  10 ques 
Test: Graphs & Hashing 1 Test  15 ques 
Test: Programming in C++, C & Java 1 Test  10 ques 
Test: Programming in C++, C & Java 2 Test  15 ques 
152 docs216 tests

Test: Graphs & Hashing 2 Test  10 ques 
Test: Graphs & Hashing 1 Test  15 ques 
Test: Programming in C++, C & Java 1 Test  10 ques 
Test: Programming in C++, C & Java 2 Test  15 ques 