Introduction to C Programming(Main Sem)
Introduction to C Programming(Main Sem)
Degree:B.C.A, Stream:BCA
Semester
End Semester Examination 2022 - First
Examination, February-2023
to C
Paper Code: BCAC101 Paper Name: Introduction
Programming
Full Marks:100 Duration:3 Hours
Part - A
Attempt 10 questions
Each question carries 2 Marks (2 X10)
2,CO2.Understand
2 Is it possible to use if inside an else?
Or
2,CO2.Understand
1. Can we call a function as argument in if statement?
2,C02.Understand
2. What is branching?
or
2,CO2,Understand
2 Explain function prototype declaration.
Or
2,C02,Understand
3 Why repetition is important in programming?
Page 1 of 5 BCAC101_2023_02_002
4 What will happen if we have a semicolon after while loop? 2.C02.Lserstand
or
A What do you understand by nesting of functions. 2.CK02Underszrd
or
Describe the statement int *p. 2.C0LRermember
or
6 Define string with an example. 2.C01.Rermermber
or
A. Define flowchart. Explain with an example. 2.CO1.Remember
or
or
9 Define relational operator. 2.COl.Remember
Part - B
Attempt 6 questions
Each question carries 5 Marks (5 X 6)
11. Ilustrate the size of int, float, double. real and char. 5.CO5.Evaluate
or
Design a Cprogram to calculate factorial of a number. 5.CO5.Evaluate
or
or
Or
14. Modela C Program to sort an array in descending order. 5,C03,Apply
Page 3 of 5 BCAC101_2023_02_002
or
1s Model aC program to find the largest clemcnt given in an
array of elements. 5.CO3.Apply
Part - C
Attempt$questions
Each question carries 10Marks (10X5)
M. Demonstrate aCprogram to check a number isArmstrong 10,C06.Create
number or not.
or
17. Develop a C program totake sales amount &grade of asales 10,C06.Create
man and then calculate his commission using following criterion.
If sale amount is >=12000and grade is more than S then
commission willbe 23.5°% of the sale amount. But if sale amount
is >=12000and grade is less than Sand more than 3 then
commission will be 23% ofthe sales amount. If sale amount is
<12000and grade is more than 5 then commission will be 22.4%
of sale amount. Otherwise commission willbe 21.8%.
10,C02,Understand
21. Describe the generation of computer.
Or
21. Show a Cprogram to find the largest of three numbers using 10,CO2,Understand
ternary operator.
BCAC101_2023_02_002
Page 5 of5