[go: up one dir, main page]

0% found this document useful (0 votes)
290 views3 pages

Programming in C C20-Aug-Sept 2021

This document contains information about an examination for a Programming in C course, including: 1) The examination contains 3 parts: Part A with 10 multiple choice questions worth 3 marks each, Part B with 5 essay questions worth 8 marks each with internal choice, and Part C with 1 question worth 10 marks. 2) Part A questions cover topics like type qualifiers, C tokens, preprocessor directives, input functions, control statements, strings, structures, variables, and pointers. 3) Part B questions cover topics like constants and variables, operators, loops, unions, matrices, call by reference, and file handling. 4) Part C asks students to write a program to delete duplicate elements from an integer array.
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)
290 views3 pages

Programming in C C20-Aug-Sept 2021

This document contains information about an examination for a Programming in C course, including: 1) The examination contains 3 parts: Part A with 10 multiple choice questions worth 3 marks each, Part B with 5 essay questions worth 8 marks each with internal choice, and Part C with 1 question worth 10 marks. 2) Part A questions cover topics like type qualifiers, C tokens, preprocessor directives, input functions, control statements, strings, structures, variables, and pointers. 3) Part B questions cover topics like constants and variables, operators, loops, unions, matrices, call by reference, and file handling. 4) Part C asks students to write a program to delete duplicate elements from an integer array.
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/ 3

* 7 0 2 6

C20-CM-IT-WD-AI–106

7026
BOARD DIPLOMA EXAMINATION, (C-20)
SEPTEMBER/OCTOBER—2021
DCM - FIRST YEAR EXAMINATION
PROGRAMMING IN C
Time : 3 hours ] [ Total Marks : 80

PART—A 3×10=30

Instructions : (1) Answer all questions.


(2) Each question carries three marks.
(3) Answers should be brief and straight to the point and shall
not exceed five simple sentences.

1. Write about type qualifiers.

2. List various types of C tokens.

3. Write the importance of C preprocessor directive #include.

4. List various character input functions with syntax.

5. Write the differences between break and continue statements.

6. Write the syntax of ‘switch’ statement and give an example.


*
7. Define string. How do you declare and initialize a string?

8. What is nested structure? Give an example.

9. Write about scope and lifetime of a variable.

10. How do you initialize a pointer? Explain with an example.


/7026 1 [ Contd...

*
* PART—B

Instructions : (1) Answer all questions by making use of internal choice.


(2) Each question carries eight marks.
(3) Answers should be comprehensive and criterion for valuation
is the content but not the length of the answer.

11. (a) Define constant and variable. Explain the declaration and
initialization of constants and variables with examples. 4+4

OR

(b) Explain various generation of computers.

12. (a) Write about any four character handling functions and write
a program to convert a lowercase character to uppercase and vice-
versa. 4+4
OR

(b) Explain all the arithmetic and relational operators supported by


C-language with an example.

13. (a) List and explain the various loop statements of C with syntax and
examples. 8

OR

(b) Write a program to print the following pattern :


*****
****
***
**
*
*
14. (a) Define Union. How to declare and access members of union?
Explain with an example. 8

OR

(b) Write a program to find the sum of all the elements of a matrix of
order MXN.
/7026 2 [ Contd...

*
15.
* (a) Explain call by reference parameter passing technique. Write a
program to interchange two values using call by reference. 3+5

OR

(b) Explain any four file handling functions.

PART—C 10×1=10

Instruction : (1) Answer the following question.


(2) It carries ten marks.
(3) Answer should be comprehensive and criterion for valuation
is the content but not the length of the answer.

16. Write a C Program to delete duplicate elements from an array of


integers.

★★★

/7026 3 AA21-PDF

You might also like