Adobe Scan
Adobe Scan
(b) while
(a) They can contain alphanumeric characters
as well as special characters tey do while
(d) All work at same speed
(b) It is not an error to declare a variable to be
one of the keywords (like goto, static) 6. If you have to make decision based on multiple
choices, which of the following is best suited?
Variable names cannot start with a digit
(a) if (b) if-else
(d) Variable can be of any length if-else-if (d) All of the above
2 S.No. 2199
7. Which of these best describes an array? 11. What is astructure in C language?
(a) A data structure that shows a hierarchical (a) A structure is a _collection of elements that
behavior can be of same data type.
A structure is a collection of elements that
(b) Container of objects of similar types can be of different data type.
Arrays are immutable once initialised (c) Elements of a structure are called members
(d) Array is not a data structure Allthe above
(d)
How do you initialize an array in C?
12. Choose a correct statement about C structures.
(a) int arr [3] = (1,2,3); (a) Structure elements can be initialized at the
(b) int arr (3) = {1,2,3}; time of declaration.
(b) struct, enum 13. Which one of the following is correct syntax for
opening a file?
(c) long
F0LE *fopen(const *filename, const_*char
( All the above *mode)
10. Let x be an array. Which of the following are (6) FILE *fopen(const *filename)
illegal? **]-ralid
*++ot (c) FILE *open(const *filename. const char
(a) (b) *mode)
**2ot
(c) d None of these (d) FILE' open(const*filename)
preprocessors.
Describe
about HowDescribeExplain What indicates?
(a) does it If (d) (c) (b) What
the
pointers previousprevious
Create Contents
Create any if
anycontents
if Create
Create is
are binaryfile textfile mode
about about
Answer PART the
the
includes function
are professional B(2 text text text text
Arguments Nested contentscontents
any
used file file file file
5
TWO b of
in for x for for
5= (d) (b) after if for if for the
structures. out
loops. ethics any any writing,
with 10 update. writing, update, mode
the
text textfile
of blueprint
marks) big
return in Five. initial
do
discard discard 'w+?
programming? do
S.No.
2199 letter, not not
values.
discard discardpreviousprevious
what
(b) (a) (b) (a) (b) (a) (b) (a) (b) (a)
Answer
Explain
(Input/Output)about
Operations. Discuss
Expressthe ExplainDiscuss Explain
Elucidate Explain How Illustrate
PART
Expressions ALL
on about about about the C-(5
the on different
questions.
Pointers.
uses of arrays loops
operations
Or
Functions
array
Or string
Or
6 Or Or x
error in are 10
of n operators
handling C.
evaluated Either =
structures. 50
C.
on and marks)
handing
files. its (or)
in used
types. in type.
S.No. C.
C? in
IO
in C.
2199