Professional Documents
Culture Documents
It2 C BSC
It2 C BSC
Internal Test – II
Session : 2020-21 (Even Sem.) Semester : II
Course : BCA/ B.Sc.-IT Subject Code : BCS2010
Branch : Subject Name : Structured programming
using C
Group : BCA- Name of Faculty Member : Megha Agarwal &Ashok
21,22,23/ BSI- Masih
21
Date 03/07/2021 Duration 1 hr 15 min. Max. Marks 30 SET No. I
University Roll No.
(To be filled by the Student)
CO4 Apply programming concepts to compile and debug C program to find solutions
Short answer type questions. Write the answer in 150 words [4X2.5=10]
Q. 2 a) Develop a C program to find the sum of first ‘N’ natural numbers. Apply CO2 [2.5]
b) Develop a C program to print the Fibonacci series upto ‘N’terms. Apply CO2 [2.5]
c) Compare between formal and actual argument with the help of C Understand CO1 [2.5]
program.
d) Develop a C program to print the pattern: Apply CO2 [2.5]
12345
1234
123
12
1
Long answer type questions [7+8=15]
Q. 3 a) Build a user defined function to find the factorial of any inputted Apply CO4 [7]
number using:
1. Recursion
2. Without Recursion
b) Develop a menu driven program that offers following choices to the Apply CO4 [8]
user and performs appropriate action according to the choice opted by
user.
1. Sum of digits of any inputted number
2. Reverse of a number
3. Count the no. of digits in any inputted number