Certain Questions Are Self-Explanatory. Thus Detailed Solutions Are Provided Only Wherever Required
Certain Questions Are Self-Explanatory. Thus Detailed Solutions Are Provided Only Wherever Required
Certain Questions Are Self-Explanatory. Thus Detailed Solutions Are Provided Only Wherever Required
TECHNICAL Answer: B
Explanation: Answer: A
ftell() is used to find out the position of file pointer in Explanation:
the file with respect to starting of the file. Command Line Arguments Syntax
2. What will be the output of the below code? 5. Where the local variables are stored?
a. Disk b. Stack c. Heap d. OS
Answer: B
Explanation:
Local Variable is stored in stack
a. sizeof(i) = 2 b. sizeof(i) = 1
c. compile Error d. None of these a. 16 b. Compilation Error
c. 64 d. 4
______________________________________________________________________________________________________
Focus Academy for Career Enhancement Page 1 of 2
FACE TCS17-04T(R)
d. A function calls itself repeatedly
Answer: C
Answer: D
Explanation:
It executes based on the operator precedence. 64 / 4 * Explanation:
4. 16*4 = 64 In recursion, function calls itself repeatedly
8. What is the format of conditional operator? 10. A memory leak happens when?
a. Condition? true value: false value a. A program allocates memory in heap but forget to
b. Condition! true value: false value delete it.
c. Condition? false value: true value b. A program allocates memory in stack.
d. Condition? true value: :false value c. When an unsigned pointer is freed using free
function.
Answer: A d. When realloc() is called on a pointer that is not
allocated
Explanation:
Syntax Answer: A
______________________________________________________________________________________________________
Focus Academy for Career Enhancement Page 2 of 2