0% found this document useful (0 votes)
1 views2 pages

Model Question C Programming

The document is a model question paper for the B.E. Computer Programming course at Purbanchal University, consisting of three groups of questions covering various topics in C programming. It includes questions on programming features, operators, functions, loops, structures, pointers, and arrays, along with programming tasks and theoretical explanations. The marks distribution for each chapter is also provided, totaling 60 marks.

Uploaded by

Ishwor Neupane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

Model Question C Programming

The document is a model question paper for the B.E. Computer Programming course at Purbanchal University, consisting of three groups of questions covering various topics in C programming. It includes questions on programming features, operators, functions, loops, structures, pointers, and arrays, along with programming tasks and theoretical explanations. The marks distribution for each chapter is also provided, totaling 60 marks.

Uploaded by

Ishwor Neupane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Model Question

PURBANCHAL UNIVERSITY
B.E Computer/Final
Time: 3:00 hrs. Full Marks: 60 /Pass Marks: 24
BEG…: Computer Programming

Attempt All the questions.


GROUP-A 4x2=8
1. Write the feature of C programming language.
2. Define variables and keywords of C.
3. What is DMA?
4. Write the output of following program:
#include<stdio.h>
#include<conio.h>
void main()
(
int a=5, b,c;
b= ++a + a++;
printf(“a=%d and b=%d”, a,b);
getch();
}
GROUP-B 7X4=28
5. What is an operator? List various operators and explain any two of them with appropriate
example.
6. Write a program to convert US dollar currency into Nepalese currency vice-versa using
function. 1$ = 130 NRs
OR,
Write a program to draw line and circle in C programming.
7. What is function? Differentiate between Library function and User defined function.
8. What is difference between while and do while loop? Give suitable example.
9. Write a program to compute the product of nth terms of the following series
1*2*3*4*5* ……….*n
10. What is structure and union? Write difference between structure and union in c programming.
11. What is recursive function? Explain with any desire example.
OR,
Write a program to solve following equation:
E = 1/2(mv2) + mgh [Where E is Kinetic and Potential energy]

GROUP-C 3X8=24
12. a) What is pointer? Write function of pointer. Declare and access a pointer variable named ptr.
b) Write a program in C to perform arithmetic (addition, subtraction, multiplication and division)
operation by using pointer.
13. Write a program to create a structure name called STUDENT, add member as Rollno, Name, and
Age of the student and store student information to file specified by user using structure and
binary file.
14. Discuss basic concept of array. Write a program to accept n numbers of marks and display highest
marks.

Marks distribution for Computer-Programming:

Chapters Credit Hrs. Marks Distribution


Chapter 1 2 4
Chapter 2 2 2
Chapter 3 3 4
Chapter 4 3 4
Chapter 5 2 4
Chapter 6 6 8
Chapter 7 6 8
Chapter 8 6 8
Chapter 9 5 6
Chapter 10 5 6
Chapter 11 3 4
Chapter 12 2 2
Total 45 60

Note: This may vary for civil faculty.

You might also like