Tribhuvan University
Bachelor of Information Technology Management
Semester 1 · TU Board 2023
Course Title: C Programming (IT232)
Full Marks: 60Pass Marks: 30Time: 3 Hrs
Candidates are required to give their answers in their own words as for as practicable.
Group A
Brief Answer Questions(10 × 1 = 10)
- 1.1
Define object code.
- 2.1
Write the rule to define a variable.
- 3.1
Is printf() formatted or unformatted I/O? Justify.
- 4.1
What do you mean by implicit type conversion?
- 5.1
Why do we need exit function?
- 6.1
Define Null character.
- 7.1
How does complier determine the life time of a variable?
- 8.1
List any one advantage and disadvantage of pointer.
- 9.1
When do we prefer union rather than structure? Give an example.
- 10.1
What is the difference between append mode and write mode in file handling?
Group B
Short Answer Questions: (Attempt any FIVE Questions)(5 × 3 = 15)
- 11.3
Draw a flowchart to find the smallest among three given integer.
- 12.3
What are the different data types in C programming and how are they used?
- 13.3
Describe the significance of escape sequence and delimiter with example.
- 14.3
How pointer is used in arithmetic operation? Illustrate with an example.
- 15.3
Create a structure "mobile" with data member model and price and display the model of mobile having price more than Rs 10,000.
- 16.3
Write a program to copy the contain of one file to another file.
Group C
Long Answer Questions: (Attempt any THREE Questions)(3 × 5 = 15)
- 17.5
Write a program to find the sum of digits of given integer using recursion. (eg: input = 123, output = 1+2+3=6)
- 18.5
How do you draw a rectangle in Graphics in C? Write the codes.
- 19.5
Describe any four storage classes in C with example.
- 20.5
Display the following pattern using loop. BIMMIB IMMI MM
Group D
Comprehensive Answer / Case / Situation Analysis Questions(2 × 10 = 20)
- 21.10
Discuss some commonly used string library functions in C programming. Provide examples of each function.
- 22.10
Compare and contrast passing arguments by value and passing arguments by address in C programming. Provide examples.
— The End —