MANAGEMENT
IEM INSTITUTE OF ENGINEERING &
SALT LAKE, KOLKATA
AMMiated to MAKAUT and approved by AICTE
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.
3. Explain the return type of printf) function. 2,CO2,Understand
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
5 List out the differentunary operators in C. 2.CO1.Remember
or
Describe the statement int *p. 2.C0LRermember
B Explain #include. 2.C0LRemember
or
6 Define string with an example. 2.C01.Rermermber
7 Define array of structure in C. 2.C01.Remember
or
A. Define flowchart. Explain with an example. 2.CO1.Remember
8. Describe the software with different types. 2.CO1.Remember
or
8 State the input and output devices with example. 2.CO1.Remember
8. List out the types of arrays in C. 2.CO1.Remember
or
9 Define relational operator. 2.COl.Remember
Page 2 of 5 BCAC101 2023 02_002
10. Define how to define a structure pointer in C.
2,CO1,Rermernber
Or
A0. Explain char arr[S |; 2.CO1.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
2 Explain auto keyword. 5.C04.Analyze
or
12. Write and explain the syntax of for loop. 5,CO4.Analyze
13. Discuss about the conditions as argument ofif statement. 5,C04,Analyze
or
13. Explain structure type pointer with example. 5,C04.Analyze
A. Model a C Program to find the largest element given in an array 5.C03.Apply
of elements.
Or
14. Modela C Program to sort an array in descending order. 5,C03,Apply
15. Explain the main() ? 5.CO3.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
Explain return key word with syntax. 5.C03.Apply
or
J8 Describe the int. long int, short int. S.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%.
18. Develop a C program to initialize a 10-element integer array 10,C05.Evaluate
from user. Then list elements which are less than the average
value of the array and more than the average value of the array.
or
A8 Design aC program to take total marks ofa student & 10,CO5,Evaluate
determine hisher division using following conditions: -if marks
is >-600 then Ist divisions or if marks <600 but marks=450
then 2nd division or marks<450 but marks>=300 then 3rd
divisions. Otherwise fail.
Page 4 of 5 BCAC101 2023 02 002
19, Stale an algorithm and flowchart to find whether the given 10,CO4,Analyze
number is prime or not,
or
19. Describe the benefits of usingthe computer. 10,C04,Analyze
2o Develop an application using Cprogramming language to 10,CO3,Apply
generate Fibonacci series up toa given number.
or
B0 Write a C programto implement mathematical operation 10,CO3,Apply
(sum,sub,div, mul)of two user given number. Implements cach
operation using separate functions. There will be no arguments in
function and input willbe taken at cach function separately.
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