Tribhuvan University
Bachelor of Information Technology Management
Semester 1 · Model question
Course Title: Structured Programming in C (ITM102)
Full Marks: 60Pass Marks: 30Time: 3 Hrs
Candidates are required to give their answers in their own words as for as practicable.
Group A
- 1.
List the differences between formatted and unformatted input/output functions in C.
- 2.
Write the syntax of the else–if ladder in C.
- 3.
Define binary files.
- 4.
Write any two graphics functions used in C.
- 5.
List the differences between structure and union in C.
Group B
Problem Solving / Short Answer Questions (Answer any SIX questions)(6 × 5 = 30)
- 6.5
Explain the different types of tokens in C with suitable examples.
- 7.5
Write a C program that takes a string input from the user and displays its reverse.
- 8.5
Define Variable and explain its scope.
- 9.5
Explain Dynamic Memory Allocation in C with suitable examples.
- 10.5
Write a C program to illustrate function calls using call by value and call by reference.
- 11.5
Define graphics initialization in C and explain any three graphics modes.
- 12.5
Write a C program to find the factorial of N numbers.
Group C
- 13.
Write an algorithm and draw a flowchart to print the multiplication table of 10 up to 10 times.
- 14.
Define a structure named student with data members Student_Name, Student_Id, Student_Address, and Age. Write a C program to store the records of five students in a file named "student.txt" and then read the file to display the details of students whose age is between 20 and 25.
- 15.
Write a C program using a switch-case statement to create a menu-driven program that performs the following operations: a. Find the sum of two numbers b. Find the product of two numbers c. Find the difference between two numbers d. Exit the program
— The End —