C Programming 2019

Tribhuwan University
Faculty of Humanities and Social Sciences
OFFICE OF THE DEAN
2019
Bachelor of Computer Applications
Course Title: C Programming
Code No: CACS151
Semester: Second Semester
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to answers the questions in their own words as far as possible.

Group B

Attempt any Six questions.[6*5=30]

2. What is computer programming? Differentiate between top down and bottom up approach of programming.[1+4]

5 marks view

3. What is the purpose of size of operator? Write a C program to swap the value of two integers without using third variable.[2+3]

5 marks view

4. Write a program in C to find all possible roots of quadratic equation ax^2+bx+c=0 ?.[5]

5 marks view

5.Why an array is required in programming? Write a C program to input age of 30 employees into array and find out second largest age from array.[1+4]

5 marks view

6. What is recursive function? Write C program to generate the Fibonacci series upto 13th term using recursive function.[1+4]

5 marks view

7. What is the advantage of pointer? Write a C program to store 10 integers into memory and find out minimum and maximum using dynamic memory allocation(DMA).[1+4]

5 marks view

8. What is the use of initgraph() in C program? Write a program to draw line and circle and rectangle using graphic function.[1+4]

4 marks view

Group C

Attempt any Two questions.[2*10=20]

9. What is structure? Write a C program to enter id,name and address of 25 employee into structure variable called employee and sort them in ascending order on the basis of their name with use of pointer.[2+8]

10 marks view

10.Is break keyword mandatory in switch statement? Write a program to calculate the basic arithmetic operations (+,-,*,/) using switch case statement.[2+8]

10 marks view

11. What do you mean by Software Development Life Cycle? Explain waterfall model with its advantage and disadvantage.[2+8]

10 marks view