0% found this document useful (0 votes)
45 views

Cprogramming 2019 Questionpaper

The document is a past exam paper for a Computer Science and Information Technology course at Tribhuwan University Institute of Science and Technology. It contains 11 questions testing knowledge of [1] the differences between top-down and bottom-up programming approaches, [2] using the size of operator and writing a program to swap integers without a third variable, and [3] writing a recursive function to generate the Fibonacci series up to the 13th term. It also covers using pointers to allocate and access dynamic memory, graphical functions like line and circle drawing, using structures and pointers to sort employee data by name, and explaining the waterfall model of the software development life cycle.

Uploaded by

Aanand jha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

Cprogramming 2019 Questionpaper

The document is a past exam paper for a Computer Science and Information Technology course at Tribhuwan University Institute of Science and Technology. It contains 11 questions testing knowledge of [1] the differences between top-down and bottom-up programming approaches, [2] using the size of operator and writing a program to swap integers without a third variable, and [3] writing a recursive function to generate the Fibonacci series up to the 13th term. It also covers using pointers to allocate and access dynamic memory, graphical functions like line and circle drawing, using structures and pointers to sort employee data by name, and explaining the waterfall model of the software development life cycle.

Uploaded by

Aanand jha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Tribhuwan University

Institute of Science and Technology


2019

Bachelor Level / Second Semester / Science Full marks: 60


Computer Science and Information Technology(CACS151) Pass marks: 24
((TU BCA) C Programming) 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

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

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

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]

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

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]

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

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]

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]

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.Is break keyword mandatory in switch statement? Write a program to calculate the basic arithmetic operations (+,-,*,/) using switch
case statement.[2+8]

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

You might also like