I BCA-106A - C Programming
I BCA-106A - C Programming
77. The variable are stored directly in CPU are called __________ variable.
A. automatic.
B. static.
C. external.
D. register.
ANSWER: D
78. In array the lowest address corresponds to ___________.
A. first element.
B. last element.
C. middle element.
D. all elements in array.
ANSWER: A
79. The member variable of structure is accessed by using __________.
A. dot (.) operator.
B. arrow (->) operator.
C. asterisk * operator.
D. ampersand & operator.
ANSWER: A
80. The structure combines variables of _______________.
A. dissimilar data types.
B. similar data types.
C. unsigned data types.
D. signed data types.
ANSWER: A
81. The union holds __________.
A. one object at a time.
B. multiple objects.
C. many objects.
D. two objects.
ANSWER: A
82. The fscanf () statements reads data from __________.
A. keyboard.
B. put.
C. file.
D. get.
ANSWER: C
101. Which of the following function flush out the unwanted character?
A. fflush().
B. delete().
C. clean().
D. dealloc().
ANSWER: A
102. Local variables are also known as ___________.
A. global.
B. register.
C. automatic.
D. public.
ANSWER: C
103. Which of the following is an entry control loop statement?
A. while.. and for .
B. do..while.
C. for.
D. goto.
ANSWER: A
104. __________ is an exit control loop Statement.
A. while- do.
B. for.
C. do-while.
D. switch.
ANSWER: C
105. Global and static local pointers are automatically initialized to _____.
A. null.
B. 1.
C. 2.
D. 5.
ANSWER: A
106. A structure can have______________.
A. pointers as its members.
B. scalar data type as its members.
C. structure as its member.
D. all the above.
ANSWER: C
131. In C, if you pass an array as an argument to a function, what actually gets passed?
A. Value of elements in array
B. First element of the array.
C. Base address of the array.
D. Address of the last element of array.
ANSWER: C
132. Which function resets the file position indicator to the beginning of the file?
A. fflush().
B. rewind().
C. remove().
D. feof().
ANSWER: B
133. x-=y+1; means ________.
A. x=x-y+1.
B. x=-x-x-1.
C. x=-x+y+1.
D. x=x-y-1.
ANSWER: D
134. Which of the following mode create a binary file for read / write?
A. w+b.
B. w+.
C. r+b.
D. a+b.
ANSWER: A
135. Pick the operators that cannot associates from the left.
A. +.
B. ,.
C. = =.
D. <.
ANSWER: C
136. Why we use the exit () method in c?
A. To change the method.
B. To stop the execution.
C. To stop compilation.
D. None.
ANSWER: B
Staff Name
Kavitha K .