We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
eeo-no. (TT TTT
0 0 08 BCACACN 102
First Semester B.C.A. Degree Examination, February/March 2023
(NEP 2020)
(2021 - 22 Batch Onwards)
PROGRAMMING IN C (DSCC)
Time : 2 Hours Max. Marks : 60
Note : Answer any six questions from Part— A and one full question
eo from each Unit in Part — B.
PART -A (6x2=12)
1. a) Give basic structure of a C program.
b) Correct the errors : #define Pi = 3.14;
c) Write the equivalent ‘C’ expression for the equation given below
A= [3b? + 407] +x
d) Write the general format of simple if statement. Give example.
e) Specify the different ways to read a string from keyboard.
f) What is a pointer ? How do you declare a pointer variable in C ?
g) Give any two differences between structure and union.
0 h) Differentiate actual parameters and formal parameters.
PART-B
Unit
2. a) What are constants ? Hol they are classified ? Give example for each.
b) Explain int, float and char data types in ‘C’ with example. (646)
3. a) Howdo you read and print single character and integer in ‘C’ ? Give example.
b) Explain the following tokens used in C.
i) Keyword ii) Identifier.
c) Explain the salient features of 'C’ language. (44444)
P.T.0.BCACACN 102 0 0 08 0
Unit - I
4. a) Differentiate while loop and do..while loop with syntax and example.
b) Explain the different arithmetic operators in ‘C’ with syntax and example. (6+6)
5. a) Explain switch statement with its syntax and example.
b) Write a ‘C’ program to find sum of digits and reverse of a given number.
Also check if itis palindrome or not. (6+6)
Unit - Ill
6. a) Explain the following functions with syntax, usage and example.
i) strlen()
ii) strepy()
iii) strcat()
b) Write a ‘C’ program to find minimum and maximum in a given list of ‘N’
numbers. (6+6)
7. a) List any six advantages of pointers.
b) Explain with example how to declare and initialize one dimensional array.
(6+6)
Unit -1V
8. a) Explain structure definition with syntax and example.
b) Explain any two categories of user defined function. (6+6)
9. a) Explain function definition with syntax and example.
b) Explain structure within a structure with an example. (6+6)