Subject Archive1 Paper Available

C Programming

Past examination question papers available in the PDF viewer below. Review past questions and syllabus units to prepare for your semester final exams.

Past Question Papers (PDF)

Switch tabs to view different exam papers

1st-sem_C Programming.pdf

IOE Past Examination Paper

Download PDF
Served via fast CDN. Read in full view or download for offline study.

Document information: This past examination paper is identified as an IOE/TU academic document and was cataloged from a public Google Drive archive. This independent website did not create the examination paper and is not affiliated with TU or IOE.

Rights holders can request correction or removal by emailing subeshgaming@gmail.com with this page URL and supporting details.

Most Frequently Asked Questions

Top recurring IOE board exam questions for C Programming with verified mark schemes, formula notation, and recurrence frequency.

Showing 30 of 30 top repeated questions

Introduction to Computer Programming

6 Questions
#1Asked in 14 Exam Sessions[8 Marks]Introduction to Computer Programming
Explain the basic structure of a FORTRAN program. What are the fundamental data types in FORTRAN? Write a FORTRAN program to read and sort 10 integers entered by the user in ascending order.
Appeared in:2082 Shrawan2082 Baishakh2081 Bhadra2080 Bhadra2079 Bhadra2076 Chaitra2076 Ashwin2074 Ashwin2073 Shrawan2073 Chaitra2071 Chaitra2070 Ashad2069 Ashad2068 Shrawan
#2Asked in 7 Exam Sessions[4 Marks]Introduction to Computer Programming
Explain in brief the steps involved during the compilation process in C along with a suitable block diagram showing the roles of the preprocessor, compiler, assembler, and linker.
Appeared in:2081 Baishakh2080 Baishakh2078 Bhadra2076 Chaitra2076 Ashwin2073 Shrawan2071 Chaitra
#3Repeated 5 Times[6 Marks]Introduction to Computer Programming
Write a program in FORTRAN to read a positive integer from the user and check whether it is a prime number or not using a DO loop and IF condition.
Appeared in:2080 Baishakh2078 Bhadra2076 Chaitra2072 Kartik2070 Ashad
#4Repeated 2 Times[6 Marks]Introduction to Computer Programming
What is an algorithm and a flowchart? Draw a flowchart and write an algorithm to find the largest of three numbers entered by the user.
Appeared in:2081 Bhadra2079 Baishakh
#5Repeated 2 Times[6 Marks]Introduction to Computer Programming
Differentiate between compiler, interpreter, and assembler. Explain the steps of the program compilation process in C.
Appeared in:2082 Baishakh2078 Bhadra
#6Repeated 2 Times[8 Marks]Introduction to Computer Programming
Explain how Arithmetic IF and Logical IF statements work in FORTRAN. Write a FORTRAN program to find the roots of a quadratic equation $ax^2 + bx + c = 0$.
Appeared in:2081 Bhadra2082 Baishakh

Operators and Expressions

3 Questions
#1Repeated 5 Times[6 Marks]Operators and Expressions
Define precedence and associativity of operators with examples. Differentiate between formatted and unformatted input/output functions (printf/scanf vs gets/puts/getchar/putchar) in C.
Appeared in:2082 Baishakh2080 Bhadra2079 Bhadra2074 Ashwin2072 Kartik
#2Repeated 2 Times[6 Marks]Operators and Expressions
Explain formatted and unformatted I/O functions in C with examples. Differentiate between `getch()`, `getche()`, and `getchar()`.
Appeared in:2082 Baishakh2079 Bhadra
#3Repeated 2 Times[6 Marks]Operators and Expressions
Explain operator precedence and associativity in C. What is type casting? Explain implicit and explicit type casting with suitable code snippets.
Appeared in:2082 Shrawan2078 Chaitra

Control Structures

5 Questions
#1Asked in 12 Exam Sessions[4 Marks]Control Structures
Write a program in C to check whether a number entered by the user is prime or composite. Also draw a flowchart for the algorithm.
Appeared in:2082 Shrawan2082 Baishakh2081 Bhadra2081 Baishakh2080 Bhadra2078 Bhadra2076 Chaitra2076 Ashwin2074 Ashwin2073 Shrawan2071 Chaitra2068 Shrawan
#2Repeated 6 Times[4 Marks]Control Structures
Compare nested if with else if ladder structure along with their flowcharts. Write a program to determine the largest among three numbers using nested if-else.
Appeared in:2082 Shrawan2081 Baishakh2076 Chaitra2076 Ashwin2074 Ashwin2071 Chaitra
#3Repeated 5 Times[5 Marks]Control Structures
Write a program to check whether a given N-digit positive integer is an Armstrong number or not. (Hint: A number equal to the sum of its own digits each raised to the power of the number of digits, e.g. 1634 = 1^4 + 6^4 + 3^4 + 4^4).
Appeared in:2080 Baishakh2079 Bhadra2076 Ashwin2073 Chaitra2071 Chaitra
#4Repeated 2 Times[8 Marks]Control Structures
Differentiate between `while` and `do-while` loops in C. Write a program to check whether a given integer number is an Armstrong number or not.
Appeared in:2081 Bhadra2082 Shrawan
#5Repeated 2 Times[8 Marks]Control Structures
Explain the `switch-case` statement with syntax and flow diagram. Write a menu-driven C program to perform basic calculator operations (+, -, *, /) using switch-case.
Appeared in:2082 Baishakh2080 Bhadra

Array and Pointer

6 Questions
#1Asked in 9 Exam Sessions[8 Marks]Array and Pointer
Define pointer. List down the importance of pointer in C programming. Describe the relationship between 1D array and pointer with a suitable code example.
Appeared in:2082 Baishakh2081 Bhadra2080 Baishakh2078 Bhadra2076 Ashwin2074 Ashwin2071 Chaitra2070 Ashad2068 Shrawan
#2Asked in 7 Exam Sessions[8 Marks]Array and Pointer
Define 1D and 2D arrays. Write a program in C to read an m x n matrix from the user, pass it to a user-defined function, and calculate and display the transpose of the matrix.
Appeared in:2082 Baishakh2081 Baishakh2080 Baishakh2076 Ashwin2074 Ashwin2069 Ashad2068 Shrawan
#3Repeated 5 Times[4 Marks]Array and Pointer
Write a program in C to reverse a string without using any string handling library function (e.g. strrev()). Also explain how to find the length of a string without using strlen().
Appeared in:2082 Shrawan2082 Baishakh2081 Bhadra2080 Baishakh2076 Ashwin
#4Repeated 2 Times[8 Marks]Array and Pointer
Explain how a 2D array can be passed to a function. Write a C program to multiply two $3 \times 3$ matrices using user-defined functions.
Appeared in:2081 Bhadra2079 Baishakh
#5Repeated 2 Times[8 Marks]Array and Pointer
What is pointer arithmetic? Write a program in C to illustrate the concept of pointer arithmetic and swap two variables using pointers (call by reference).
Appeared in:2081 Bhadra2082 Baishakh
#6Repeated 2 Times[8 Marks]Array and Pointer
Explain dynamic memory allocation functions in C (`malloc()`, `calloc()`, `realloc()`, and `free()`). Write a program to dynamically allocate memory for $N$ integers, sort them in ascending order, and free the memory.
Appeared in:2082 Shrawan2078 Bhadra

User-defined Functions

4 Questions
#1Asked in 8 Exam Sessions[6 Marks]User-defined Functions
Write a program in C to display the nth term of a Fibonacci sequence using a recursive function. The value of n is entered by the user.
Appeared in:2082 Baishakh2081 Bhadra2079 Bhadra2076 Ashwin2074 Ashwin2072 Kartik2071 Chaitra2068 Shrawan
#2Asked in 7 Exam Sessions[4 Marks]User-defined Functions
What do you mean by 'call by value and call by reference'? Explain the differences with suitable examples and memory diagrams.
Appeared in:2082 Shrawan2081 Bhadra2080 Bhadra2076 Ashwin2070 Ashad2069 Ashad2068 Shrawan
#3Repeated 4 Times[4 Marks]User-defined Functions
Write a program to calculate the factorial of an integer entered by the user using the concept of a recursive function. Explain how memory is allocated on the call stack during recursive execution.
Appeared in:2082 Shrawan2081 Baishakh2078 Bhadra2073 Shrawan
#4Repeated 2 Times[6 Marks]User-defined Functions
What is function prototyping and function recursion? Write a recursive C program to calculate the factorial of a given positive integer.
Appeared in:2081 Bhadra2080 Baishakh

Structures

4 Questions
#1Repeated 6 Times[6 Marks]Structures
Write a program to define a structure named 'person' with members Name, Address, Salary, and Phone Number. Input details of 100 persons and display the entered information in descending order of salary.
Appeared in:2080 Baishakh2078 Bhadra2076 Chaitra2073 Shrawan2071 Chaitra2069 Ashad
#2Repeated 5 Times[8 Marks]Structures
What is a structure? Why is it necessary? Write a program to add two distances given in feet and inches using a user-defined structure.
Appeared in:2082 Shrawan2081 Bhadra2079 Bhadra2074 Ashwin2072 Kartik
#3Repeated 2 Times[8 Marks]Structures
What do you mean by nested structure? Write a C program to input roll, name, and address (city, street, ward) of 50 students using nested structures and display them.
Appeared in:2082 Baishakh2081 Bhadra
#4Repeated 2 Times[6 Marks]Structures
Differentiate between structure and union with memory layout diagrams. Write a program to demonstrate the size difference between a structure and a union containing identical members.
Appeared in:2082 Shrawan2079 Bhadra

File Management

2 Questions
#1Asked in 8 Exam Sessions[8 Marks]File Management
How is a binary file different from a text file? Write the syntax and use of fseek() and rewind() functions in C. Write a C program to write records of N students (Name, Roll, Marks) into a data file and display students scoring above 40.
Appeared in:2082 Shrawan2081 Bhadra2080 Baishakh2079 Bhadra2076 Ashwin2074 Ashwin2072 Kartik2071 Chaitra
#2Repeated 2 Times[8 Marks]File Management
Differentiate between text and binary files. Write a C program to write student records (roll, name, marks) into a binary file `student.dat` and read them back to display students who scored greater than 60 marks.
Appeared in:2081 Bhadra2082 Baishakh