Professional Documents
Culture Documents
Strucrure - L Srings: Worrd, Toot) - O, C
Strucrure - L Srings: Worrd, Toot) - O, C
Strucrure - L Srings: Worrd, Toot) - O, C
u. Discuss all file opening modes in c programming language with respect to file handring.
PART-A(20x1=20Marks)
AnswerALL euestions
1. Who is the fatherofC langu4ge?
+**,t* (A) Bjame Stoustrup
(C) Dennis Ritchie @) James A.Gosling
@) Dr.E.F.Codd
2. In C programming languagq which of the following type of operators have the highest
precedeirce.
(A) Relational operators (B) Equality operators
(C) Logical operato,rs
@) Arithmetic opemtors
3. Bitwise operators can operate upon?
(A) Doubte and chars @) floats and doubles
(C) ints and floats (D) ints and chars
10. Array with last element'n' will always have array size equal to pseudo code and mention the advantage'
(B) n+r 22. Defme
(A) n
(C) n-l (D) n+l
23. What are the differences between L value and R value in expression?
11. If the two strings are identical, then strcmp ( ) function retums' is the difference between a "breako' and "continue" statement?
(A) I (B) 0 24. what
(c) -l (D) True o'call by reference"'
25. Differentiate between "call by value" and
(c) All of them let you define new @) Allofthemletyoudefinenewstructure (iv) putchar ( )
pointers
(") strleno
19. If there is any error while opening a file, fopen will retum
(vi) strcpy ( )
(A) Nothing (B) EOF (oR)
(C) Null (D) Depends on comPiler
i b. Write about
20. FILE reserved word is (i) Recursion function with an example
(A) A structure tag declared in stdio.h (B) One of the basic data tYPes in C (ii) Function definition with an example
(C) Pointer to the struchre defined in (D) It is a type name defined in stdio.h
stdio.h 20NF1/ r8CESl0lJ
20Nr1/ ltcssl0lJ Pagc 3 of ,l
Page 2 of ,l