0% found this document useful (0 votes)
4 views

Adobe Scan

K

Uploaded by

sankarthi704
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Adobe Scan

K

Uploaded by

sankarthi704
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

(6 Pages)

S.No. 2199 21UCAO1/21UCSO1/21UISO1 2. Which is valid C expression


(a) int my_num =100,000:

(b) int my_num = 100,000:


(For the candidates admitted from 2021-2022 onwards)
(c) int my_num = 1,000:
B.C.A/B.Sc. DEGREEEXAMINATION, ( int $my_num =10,000;
NOVEMBER 2023.
3 Which of the following cannot be a variable name
First Semester in C?
PROBLEM SOLVING THROUGH C (a Volatile (b) True

(Common for:B.Sc. CS/IS)


(c) Friend (d) Export

Maximum: 75 marks 4. Loopsin C Language are implemented using?


Time: Three hours
(a) While Block (b) For Block
PART A(15 x 1= 15 marks) (c) Do While Block a All the above
Answer ALL questipns. 5. Which loop is faster in CLanguage, for, while or
DoWhile?
1. Which of the following is true for variable names
in C? (a) for

(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.

int arr (3] = 1,23}; (b Structure members can not be initialized at


the time of declaration
(d) int arr (3) = (1,2,3);
(c) Only integer members of structure can be
9. What are the Types of Arrays? initialized at the time of declaration

(a) int, float, char, double (d) None of the above

(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)

ao 3 S.No. 2199 4 S.No. 2199


(P.T.0.]
20. 18. 17. 15. 14.
19. 16.

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

25. 24. 23. 22. 21.

(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

You might also like