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

Final

Uploaded by

amansd349
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)
14 views2 pages

Final

Uploaded by

amansd349
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

BHAGWAN PARSHURAM INSTITUTE OF TECHNOLOGY

ASSIGNMENT (IN LIEU OF 2ND MID TERM EXAMINATION)


B.TECH PROGRAMMES (UNDER THE AEGIS OF USICT)
I Semester, November, 2024

Paper Code: __ES-101__ Subject: ____Programming in C___

Time: 1½ Hrs. Max. Marks: 30

Note: Attempt Q. No. 1 which is compulsory and any two more questions from remaining.

Q. No. Question Max. CO(s)


Marks
1 Attempt the following:
(a) Differentiate between text and binary file 2 CO3
(b) What is Dynamic memory management ? Differentiate between 2 CO3
malloc() and calloc() functions
(c) Explain the libraries c99 extensions- stdlib.h, math.h, ctype.h 2 CO4
(d) What is function pointer? Explain with the help of an example 2 CO3
(e) int main() 2 CO3
{
int x = 100;
int *p = &x;
printf("%d\n", (*p)++);
printf("x = %d *p = %d\n", x, *p);
return 0;
}
2
(a) Write a C program to copy the contents of one file to another 3 CO3
(b) Write the algorithms of bubble sort and insertion sort. Sort the 7 CO4
following list of elements and show every iteration
34, 56, -4, 78, 22,50
3
(a) Write the C program to define the structure of 10 Employees, where 5 CO3
each employee attributes are - ename, e_id, e_email, e_salary. Take
the input form the user and print all the 10 employees data.
(b) 1. Differentiate between Union and structure 2 CO3
2. What are self-referential structures? Can we define structure
within a structure? Explain with the help of example
4
(a) Write a C program to reverse the string without using header file - 5 CO4
string.h
(b) Write the algorithms /programs of Linear Search & Binary Search 5 CO4

You might also like