0% found this document useful (0 votes)
180 views2 pages

NMCC

This document appears to be an exam for a Computer Applications course focusing on Programming in C. It contains multiple choice and short answer questions testing knowledge of basic C concepts like data types, operators, control structures, functions, arrays, pointers, and file handling. The exam is divided into three parts - Part A contains 10 multiple choice questions worth 1 mark each, Part B contains 5 short answer questions worth 5 marks each, and Part C contains 5 longer answer questions worth 8 marks each.

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)
180 views2 pages

NMCC

This document appears to be an exam for a Computer Applications course focusing on Programming in C. It contains multiple choice and short answer questions testing knowledge of basic C concepts like data types, operators, control structures, functions, arrays, pointers, and file handling. The exam is divided into three parts - Part A contains 10 multiple choice questions worth 1 mark each, Part B contains 5 short answer questions worth 5 marks each, and Part C contains 5 longer answer questions worth 8 marks each.

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/ 2

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

Code No.:33011E Sub. Code: AMCA11

B.C.A. (CBCS) DEGREE EXAMINATION, NOVEMBER 2020

First Semester
COMPTER APPLICATION - Main
PROGRAMMING IN C
(For those who joined in July 2020 onwards)
Time : Three hours Maximum : 75 marks

PART A — (10 X 1 = 10 marks)


Answer ALL questions, Choose the correct answer

1. If a program gives incorrect output for any of test data, it contains a


__________.
(a) code (b) bug (c) input (d) flow

2. _______ is a basic data type in C


(a) Array (b) structure (c) int (d) union

3. Functions for string manipulations are part of _______.


(a) Str.h (b) stri.h (c) stchar.h (d) string.h

4. _______ is a bitwise operator in C.


(a) < (b) << (c) && (d) and

5. ________ statement causes an immediate termination of loop


(a) Break (b) continue (c) do....while (d) for

6. When an user defined function uses itself, the concept is called ______.
(a) iteration (b) permutation (c) combination (d)recursion

7. An array is a collection of elements of ________type.


(a) same (b) different (c) int and float (d) string and char

8. How much memory is required to store a matrix of type char and order
4x3
(a) 24 bytes (b) 12 bytes (c) 20 bytes (d) 7 bytes

9. ______ function is used to compare strings without considering uppercase


or lowercase.
(a) strcmp (b) strcomp (c) stricmp (d)stcomp

10. Dynamic memory allocation and initialization can be done by ________.


(a) dynalloc (b) stalloc (c) calloc (d) dalloc()
PART B — (5 × 5 = 25 marks)
Answer ALL questions, choosing either (a) or (b).
Each answer should not exceed 250 words.

11.(a) Write a note on basic data types of C.


OR
(a) What is a symbolic constant? Give examples.

12.(a) Describe header files.


OR
(b) Discuss the two way branching statement.

13.(a) Explain loop interruption with one example.


OR
(b) Write a C program to print multiplication table of any multiplier.

14.(a) Enumerate the concept of one-dimensional arrays.


OR
(b) Write short notes on pointers.

15.(a) Write a program to convert a given string to capital letters.


OR
(b) Explain any two functions used for file handling.

PART C — (5 × 8 = 40 marks)
Answer ALL questions, choosing either (a) or (b).
Each answer should not exceed 600 words.

16.(a) Enumerate program development process.


OR
(b)Describe the structure of C program with an example.

17.(a) Write a C program to print a given digit as a word.


OR
(c) Discuss the usage of for loop in a C program.

18.(a) Write in detail about nested of statement.


OR
(b) Explain how user defined functions help in modular programming.

19.(a) Write a C program to find the greatest element in a given set.


OR
(b) Discuss pointer operations and expressions.

20.(a) Discuss usage of structures in C.


OR
(b) Describe formatted input and output in C.

You might also like