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

End Term Sample Paper PC

Uploaded by

keshavagg1232
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)
28 views2 pages

End Term Sample Paper PC

Uploaded by

keshavagg1232
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

(Please wrlte your Exam Roll No.) Exam Roll No.

END TERM EXAMINATION


SECOND SEMESTER [B.TECH] JUNE 2024
Paper Code: ES-102 Subject- Programming in C'
Time: 3hours Max. Marks: 60
Note: Attempt five questions in all including 0. No. 1 which is
Compulsory. Select one question from each unit.
Ql Attempt all questions: [Sx4-20|
a)
b)
Difference between while and do-while loop?
Define different types ol sorting?
c) Define pre-processor and its
d) Explain the basic structure andusage in programming?
compilation
e) Difference between structure and union? process of C program?
Q2 a) What is a token? ExplainUNIT-I the different types of tokens like
identifiers, constants, strings with examples? keyword,
b)
Difterence between flowchart and algorithm? Write an
flowchart to find the factorial of a number? algorithm and
(5]
Q3 a) Detine Operator? Explain
logical, bitwise and ternarywith example different types of operator arithmetic,
operator?
b) Find the output of the [6]
Int main(0 following program: - [4
{Char srtl(20]= "Helo",
Str2(20j="World";
Printf("%s\n", strcpy(str2, strcat(strl,str2)));
Printf(*sn", strrev(strl));
Printf("s\n",
return 0;}
strlen(str2);
UNIT-II
Q4 a) Define Recursion function? Write a C program to find the
using recursion? Fibonacci series
b) Define an array? Write the advantages of an array? Write a C (5]
transpose of amatrix? program
to
[5]

Q5 a) Explain call by value and call by reference with example?


b) Define string? How it can be declared and initialized?
function with example? Explain any five-string

UNIT-III
Q6 a) Explain File Handling? What is the need for file handling?
for text files: r, a, w, rt, at, w+? Discuss file access modes
b) What is the need of a structure? How will you
structure? Write a program to read and print the access the members of a
details of a person using
Structure?
Q7 a)
Define Pointer with an example? How to access a
b)
Write a C program to add two variables using Pointer?variable through pointer?
Define File Handling and explain its
operations?
P.T.O.
I-2-|

UNIT-Iy 15 from the following sorted doto


Q8 a) What is Binary search? Search item15.24,38,59,75,90
clements usingbinary search.2,5,8, 10 implement insertion sort?
b) What is insertion sort? Write a C proram to (5]
functions of the following header files in
09 a) What is header file? Explain library Stdio.h asserth
detail :time.h, ctype.h, setimp.h, string.h, stdarg.n, unistd.h,
stdlib.h?
b) Define Selection Sort? Sort the following elements using selection sort:
77,33,44,11,88,22,66,55,

*****

You might also like