C Programming 2077

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2077
Bachelor Level / First Semester / Science
Computer Science and Information Technology ( CSC110 )
( C Programming )
Full Marks: 60
Pass Marks: 24
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.

Section A

Official Answer
AI Generated Answer

AI is thinking...

Attempt any two questions:[2x10=20]
Official Answer
AI Generated Answer

AI is thinking...

1. What do you mean by looping? Explain while loop with suitable example. Compare while loop with do while loop. Write a program to find sum and average of first n natural numbers.[1+3+2+4]

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. What are the benefits of using arrays? Compare one dimensional array with two dimensional array. Write a program to find transpose of a matrix.[2+2+6]

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. What is structure? How is it different from union? Create a structure named course with name,code and credit_hour as its member. Write a program using this structure using this structure to read data of 5courses and display data of those courses with credit_hour grater than 3.[1+2+7]

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Section B

Official Answer
AI Generated Answer

AI is thinking...

Attempt any eight questions:[8x5=40]

Official Answer
AI Generated Answer

AI is thinking...

4. Explain flowchart with example. What are the benefits of using flowchart?[3+2]

5 marks
Details
Official Answer

Answered by Puja Lakhe.CSIT 1st sem,BMC


AI Generated Answer

AI is thinking...

5. What is data type? Why do we need it in programming? Explain any three basic data types with example.(1+1+3) 

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. What do you mean by unformatted I/O? Explain.[5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7. Write a program to display first in prime numbers.[5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. Write a program to find product of two integers using your own function.[5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

9. Define pointer. How do you return pointers from functions? Explain with example.[1+4]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

10. Explain different file  I/O functions with example.[5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

11. Write a program to draw a circle using graphics function.[5]

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

12. Write short notes on:[2x2.5=5]

a. Compilation and execution

b. Operator precedence and associativity

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...