Tribhuvan University
Bachelor of Information Technology
Semester 1 · TU Board 2083
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 structure? Why do we need it? Write a program to add two distances given in meter and centimeter format using structure.
- 2.10
How do you declare and initialize pointer? Write a program to find first and second largest element from an array using pointer.
- 3.10
Why do we need external function? Distinguish between local and global variables. Write a function to find the average of five given integers using function.
Group B
Attempt any Eight questions(8 × 5 = 40)
- 4.5
Write a program to copy the content of one file to another in a reverse manner.
- 5.5
Discuss about compiling, assembling, loading and linking.
- 6.5
Write a program to find the length of a string without using built in function.
- 7.5
Write a program to find the sum of diagonal elements only in the given matrix.
Answer comingAlso asked in 2079
- 8.5
Generate the following pattern using loop. BITTU BITT BIT BI B
- 9.5
Demonstrate the concept of switch statement with an example.
- 10.5
Discuss about bitwise and size of operator.
- 11.5
What is type conversion? What are conversion specifiers?
- 12.5
Draw a flowchart to find whether the given character is vowel or not.
— The End —