RAJARSHI JANAK UNIVERSITY
OFFICE OF THE CENTRAL EXAMINATION
End Semester Examination – 2023
Bachelor of Computer Application
Course Title: Programming in C Full Marks: 60
Course Code: HCAC-104 Pass Marks: 24
Year/Semester: First/I Time: 3 hours
Symbol No. in figure _____________________
Symbol No. in word ____________________________________________
[Group A]
Attempt all the questions. [10 x 1 = 10]
Choose the correct answer of the following questions.
1. The inventor of C language is….
a. Charles Babbage b. Graham Bell c. Dennis Ritchie d. Steve Jobs
2. C is ………type of programming language.
a. Object oriented b. Procedural c. Bit level language d. functional
3. What is an identifier in C language?
a. Name of function or variable b. Name of macros
c. Name of structure or Union d. All the above
4. Number of keywords present in C language is?
a. 32 b. 34 c. 62 d. 64
5. Types of Integers are?
a. short b. int c. long d. All the above
6. Find a C storage class below?
a. static b. auto c. register & extern d. All the above
7. Choose the correct statement about C language functions.
a. A function name cannot be same as a predefined C keyword.
b. A function name can start with an underscore (_) or A to Z or a to z.
c. Default return type of any function is an integer.
d. All the above.
8. What is an array in C language?
a. A group of elements of same data type.
b. An array contains more than one element.
c. Array elements are stored in memory in continuous or contagious locations.
d. All the above.
9. What is the size of a C structure?
a. C structure is always 128 bytes.
b. Size of C structure is the total bytes of all elements of structure
c. Size of C structure is the size of longest element.
d. None of the above.
10. What is the result of 0110 & 1100?
a. 1000 b. 0100 c. 0001 d. 1010
RAJARSHI JANAK UNIVERSITY
OFFICE OF THE CENTRAL EXAMINATION
End Semester Examination – 2023
Bachelor of Computer Application
Course Title: Programming in C Full Marks: 60
Course Code: HCAC-104 Pass Marks: 24
Year/Semester: First/I Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable. The figures in the
margin indicate full marks.
[Group B]
Short Answer Questions (Attempt any Six): [6x5=30]
11. Define algorithm and flowchart. Draw flowchart to display the sum of odd umbers between
1 and 10.
12. What is formatted input/output function in C-programming? Differentiate between gets ( )
and scan f( ) function.
13. Define loop. Write a program to display the sum of digits of multi-digit number.
14. Define function. Write a C program to calculate the factorial of a number using recursive
function.
15. What is pointer? Write a program to display the sum of all the elements of an array using
pointer.
16. What is the use of initgraph( ) in C program. Write a program to draw circle using graphic
function.
17. Write a C program to copy the contents of file “books.txt” to another file “record.txt”.
[Group C]
Long Answer Questions (Attempt any Two): [2x10=20]
18. Discuss different types of if statements with suitable example of each.
19. Define one dimensional and multi-dimensional array. How is it declared and initialized?
Write a C program to find the product of two array of order 3X3.
20. Define structure. Write a C program that reads the record of 10 students with member roll
number, name and marks and display the record of student who has third highest mark.
*****