ITM102 Structured Programming in C

Structured Programming in C old question papers

Pick a year on the left to see the full paper, exactly as it was set.

15 questionsSit this paper (timed)

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. 1.

    List the differences between formatted and unformatted input/output functions in C.

  2. 2.

    Write the syntax of the else–if ladder in C.

  3. 3.

    Define binary files.

  4. 4.

    Write any two graphics functions used in C.

  5. 5.

    List the differences between structure and union in C.

Group B

Problem Solving / Short Answer Questions (Answer any SIX questions)(6 × 5 = 30)

  1. 6.

    Explain the different types of tokens in C with suitable examples.

    5
  2. 7.

    Write a C program that takes a string input from the user and displays its reverse.

    5
  3. 8.

    Define Variable and explain its scope.

    5
  4. 9.

    Explain Dynamic Memory Allocation in C with suitable examples.

    5
  5. 10.

    Write a C program to illustrate function calls using call by value and call by reference.

    5
  6. 11.

    Define graphics initialization in C and explain any three graphics modes.

    5
  7. 12.

    Write a C program to find the factorial of N numbers.

    5

Group C

  1. 13.

    Write an algorithm and draw a flowchart to print the multiplication table of 10 up to 10 times.

  2. 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.

  3. 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 —