Download PTU BCA ( Bachelor of Computer Applications) 2020 December 1st Sem 10044 Programming In C Previous Question Paper
Roll No.
Total No. of Pages : 02
Total No. of Questions : 16
B.Sc. (IT) (2015 to 2018) / BCA (2014 to 2018) (Sem.?1 )
PROGRAMMING IN C
Subject Code : BSIT/BSBC-102
M.Code : 10044
Time : 3 Hrs. Max. Marks : 60
INST RUCT IONS T O CANDIDAT ES :
1 .
SECT ION-A is COMPULSORY cons is ting of TEN questions carrying TWO marks
each.
2 .
SECT ION-B c ontains SIX q uestions ca rryin g TEN mark s each a nd stu dents hav e
to attempt any FOUR questions .
SECTION-A
Answer briefly :
1.
List the different keywords in C.
2.
How is a program compiled and executed?
3.
What is the role of Header files in C program?
4.
Differentiate between constants and variables.
5.
What are the various Input/output statements in C?
6.
List the various operators used in C.
7.
How are pointers declared and initialized?
8.
Differentiate between Call by value and Call by reference.
9.
What is the use of storage classes?
10. Write the syntax for do-while loop.
1 | M - 1 0 0 4 4
( S 3 ) - 4 5 9
SECTION-B
11. a) What is the use of Algorithms in developing a program? How is it different from
Flowcharts?
b) Write a C program to reverse a string.
12. Describe the following :
a) Unions and Structures
b) Macros in C
13. What do you mean by Recursion? What is the use of recursion in C programs? Write a
program to find factorial of a number using recursion.
14. a) Describe the use of Arrays in C program with an example.
b) List the various operators used in C along with its precedence.
15. Write brief notes on :
a) Difference between If-else and Nested- if statement.
b) Use of Switch statement in a C program.
16. a) What are Functions? How are Functions declared and parameters passed to functions?
b) Write a C program to print the average of all numbers from 1 to 50.
NOTE : Disclosure of identity by writing mobile number or making passing request on any
page of Answer sheet will lead to UMC case against the Student.
2 | M - 1 0 0 4 4
( S 3 ) - 4 5 9
This post was last modified on 13 February 2021