Tribhuvan University
Bachelor of Information Technology
Semester 1 · TU Board 2078
Course Title: C Programming (BIT102)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
Group A
Attempt any Two questions.(2 × 10 = 20)
- 1.10
What is an expression and operator? Discuss operator associativity in C. Write a program to find factorial of a given integer using recursion.
Answer comingAlso asked in 2080
- 2.10
What is an Identifier and Keyword? Explain the rules for naming valid Identifiers in C with example. Write a program to convert a given string to lowercase without using any library functions.
- 3.10
What different data types available in C along with their respective range? Write a program to check whether a given integer is palindrome or not.
Group B
Attempt any Eight questions(8 × 5 = 40)
- 4.5
What is the basic structure of a C program? Explain each part.
Answer comingAlso asked in 2077
- 5.5
How break statement is different from continue statement? Explain with suitable example.
Answer comingAlso asked in 2077
- 6.5
What do you mean by multi-dimensional array? Write a program to display the sum of two m x n matrices.
Answer comingAlso asked in 2077
- 7.5
Write a program to create a file "duplicate" that contains the exact copy of file "original".
- 8.5
Explain any four input/output functions used in C language with suitable example.
- 10.5
Write a program to find smallest element of an array using a pointer.
- 11.5
Write a program to store and display basic information (Roll, name, address, email, and phone) of students of using a structure.
Answer comingAlso asked in 2077
- 12.5
Write Short Notes on: a. Escape Sequence b. Null Pointer
— The End —