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

Bca Prog C-2023

C programming question papers

Uploaded by

itsmeprince.pk
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)
30 views2 pages

Bca Prog C-2023

C programming question papers

Uploaded by

itsmeprince.pk
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

DCCA - 102

I Semester B.C.A. Degree Examination, February/March 2023


(NEP Scheme)
COMPUTER APPLICATIONS
CAC 02: Programming in C
Time : 2% Hours Max. Marks : 60

Instruction: Answer all the Sections.

SECTION A

1. Answer any 6 questions. Each question carries 2 marks. (6x2=12)


1) What is Ctoken ? Mention its types.
2) Write the memory size of char, int, float and double data types.
3) Write the difference between = = and = operator.
4) What is type casting ?
5) What is one dimensional arrays ? Give the syntax.
6) Define character with an example.
7) What is pointer ? Give an example.
8) What is an actual and formal arguments ?
9) Define structure. Give its syntax.

SECTION B

I. Answer any 4 questions. Each question carries 6 marks. (4x6=24)


10) Explain the basic structure of C program with an example.
11) Explain the classification of constants.
12) Explain any three types of operators with an example.
13) Explain two dimensionalarrays with syntax and example.
14) Mention the advantages anddisadvantages of pointers.
15) Explain function with parameters and return type with an example.
P.T.0.
DCCA - 102

SECTION C

II. Answer any 3questions. Each question carries 8 marks. (3x8=24)


16) With an example explain getchar( ), putchar()., gets( ) and puts( )
functions. 8
17) a) Explain switch case statement with syntax and example.
b) Differentiate between break and continue statement. 2
18) a) Explain if_else statement with syntax and example. 4
b) Explain do_while loop with suitable program.
19) Write a C program to demonstrate string functions. 8
20) Explain the components of user defined function in detail.

You might also like