0% found this document useful (0 votes)
50 views6 pages

01 SMCA11 AMCA11 Programming in C

This 6-page document appears to be an exam for a Computer Applications course covering programming in C. It contains 3 parts - multiple choice questions worth 10 marks (Part A), short answer questions worth 25 marks requiring up to 250 words each (Part B), and longer answer questions worth 40 marks requiring up to 600 words each (Part C). The questions cover a range of topics in C programming including functions, arrays, pointers, structures, recursion, strings and more.

Uploaded by

Selva Dhinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views6 pages

01 SMCA11 AMCA11 Programming in C

This 6-page document appears to be an exam for a Computer Applications course covering programming in C. It contains 3 parts - multiple choice questions worth 10 marks (Part A), short answer questions worth 25 marks requiring up to 250 words each (Part B), and longer answer questions worth 40 marks requiring up to 600 words each (Part C). The questions cover a range of topics in C programming including functions, arrays, pointers, structures, recursion, strings and more.

Uploaded by

Selva Dhinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

(6 Pages)

Reg. No. : ........................................

Code No. : 20688 E Sub. Code : SMCA 11/


AMCA 11

B.C.A. (CBCS) DEGREE EXAMINATION, APRIL 2021.

First Semester

Computer Application — Core

PROGRAMMING IN C

(For those who joined in July 2017 onwards)

Time : Three hours Maximum : 75 marks

PART A — (10  1 = 10 marks)

Answer ALL questions.

Choose the correct answer :

1. In C language, all keyword must be in —————.


(a) Upper case
(b) Lower case
(c) Both upper and lower
(d) Special characters
2. C is a —————

(a) High level language

(b) Low level language

(c) Assembly level language

(d) All the above

3. The essential functions of computer programming


is —————.

(a) Reading (b) Processing

(c) Writing (d) All the above

4. ————— function call is used to carry output


operation.

(a) scanf (b) printf

(c) getchar (d) main

5. The number of element present in array c[3][3] is


—————.

(a) 3 (b) 9

(c) 10 (d) 6

Page 2 Code No. : 20688 E


6. Array can be initialized during —————.
(a) run time (b) compile time

(c) Both (a) and (b) (d) None

7. The strcmp( ) function ————— two strings.

(a) copy (b) cut

(c) carry (d) compare

8. The process of combining two strings is ————.

(a) pointer (b) functions

(c) concatenation (d) both (a) and (b)

9. Variable that are active throughout the program


are called ————— variable.

(a) External (b) Internal

(c) String (d) Constant

10. The data structure of a file is defined using


—————.

(a) FILE (b) FILES

(c) FP (d) FF

Page 3 Code No. : 20688 E


PART B — (5 × 5 = 25 marks)

Answer ALL questions, choosing either (a) or (b).

Each answer should not exceed 250 words.

11. (a) What is the purpose of scanf( ) function?


Or
(b) Discuss the structure of C program.

12. (a) Discuss about formatted input.


Or
(b) Briefly discuss about if….else statement.

13. (a) Write a C program to find smallest among


N numbers.
Or
(b) What is an array? Explain.

14. (a) Write the scope and lifetime of a variable.


Or
(b) Write a program to find the factorial of a
number using function.

15. (a) Discuss about pointer variables.


Or
(b) Explain function pointer with example.

Page 4 Code No. : 20688 E


[P.T.O.]
PART C — (5  8 = 40 marks)

Answer ALL questions, choosing either (a) or (b).

Each answer should not exceed 600 words.

16. (a) Explain about gets( ) and puts( ) functions.

Or

(b) Explain structure of a C program with


example.

17. (a) Discuss the function and its concepts.

Or

(b) Discuss about nested if loop with example.

18. (a) Write a program to find the sum of two


matrices.

Or

(b) Explain about string functions.

19. (a) Explain recursion with example.

Or

(b) Explain in detail about structures.


Page 5 Code No. : 20688 E
20. (a) Describe function pointer.

Or

(b) Write a program alphabetical order using


character strings.

———————

Page 6 Code No. : 20688 E

You might also like