NPTEL Problem Solving Through Programming In C Week 8 Assignment Answers 2025
1. A function prototype is used for
a) Declaring the function logic
b) Calling the function from the main body
c) Telling the compiler, the kind of arguments used in the function
d) Telling the user for proper use of syntax while calling the function
Answer :- For Answers Click Here
2.
a) Compiler error as foo() is not declared in main
b) 1 2
c) 2 1
d) Compile time error due to declaration of functions inside main
Answer :-
3.
a) Only once
b) Zero times
c) Infinite times
d) Compilation error
Answer :-
4.
a) 27.08
b) 27.083334
c) Compiler error as result is declared twice
d) Error: Invalid prototype declaration
Answer :-
5. Which statement is correct about Passing by value parameters?
a) It cannot change the actual parameter value
b) It can change the actual parameter value
c) Parameters is always in read-write mode
d) None of them
Answer :-
6.
a) 70
b) Garbage value
c) Compilation error
d) None
Answer :- For Answers Click Here
7.
a) Infinite times
b) 32767
c) 65535
d) Till stack overflows
Answer :-
8.
a) 8 ,4, 0, 2, 14
b) 8, 4, 0, 2, 0
c) 2, 0, 4, 8. 14
d) 2, 0, 4, 8, 0
Answer :-
9.
a) Maximum of a, b
b) Positive difference between a and b
c) Sum of a and b
d) Minimum of a and b
Answer :-
10.
a) 89
b) 90
c) 91
d) 92
Answer :- For Answers Click Here