Fundamentals of Computer Programming 2068

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2068
Bachelor Level / First Semester / Science
Computer Science and Information Technology ( CSC-102 )
( Fundamentals of Computer 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.

Attempt all questions

Official Answer
AI Generated Answer

AI is thinking...

1. Write an algorithm and flow chart to determine whether a given integer is odd or even and explain it.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. How can you declare the variable in C? Explain with example.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. Write a program to find the factorial of a given integer.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

4. Explain switch statement with example.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5. Write a program to find the largest and smallest among the given elements in an array.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. Explain the user-defined functions and its types with example.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7. Write a program to accept two numbers and sort them with using pointer.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. Explain the passing structure to function with example.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

9. Write a program to accept any number and print the sum of that number up to a single digit through recursive function.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

10. Explain the pointer to structure with example.

OR

Write short notes on:

a) Dynamic memory allocation b) Opening and Closing file

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...