222 o I013Noo/
\
L 1,~l.uo-::-•I -,, ~u,..Pu ..., ... u ,~HY •··'- ,1,, \J••· A '•, ·rl I t
DEPARTMENT OF COMPUTER SCIENCE & T l-: Cl!NO LOGY
"Mid Term Examination, Nov-2022"
SEMESTER J c........_. IA. ..,. - TJt . •·• ·- - - -
SUBJECT DATE OF EXA ;,1 16N uv2022
PROGRAMMING IN SUBJECT CODE
NAME CSH101 B-T & P
PROBLEM SOLV:NG
USING C
BRANCH CST l EL£" /VLl I
TIME SESSION 2022-23
MORNING 9:00-10:30 am MAX.MARKS 30
PROGRAM BTECH ·-
NAME OF CREDITS -----· - .. 4
Dr. Deepti Thakral NAME OF
FACULTY I.J r. Decpli T;iakral
Dr. Manpreet Kaur COURSE
Dr. Parneeta Dhaliwal COORDINATOR
., Ms. Chandni Magoo
Ms. Kirti Ai!i!arwal
• =
~wcw' ¼~
. -
of data be converted into anothe .
in with an exa1)1 le. 2 COl 12 l .4.1
hat is constant? Explain different types of C
onstant. 2 COl L2 1.4.1
erform Bitwise left anci right shift operation
n a>>2 and a<<2 where a=l20. 2 COJ L3 1.4.1
'· ·•·
Differentiate between actual and formal
ar ments? Ex lain with an exam le. 2 CU2 L2 1.4.1
Explain the difference between while and
do-while control statements with syntax and
2 COl L2 1.4.1
Explain the use of functions with the help of a
suitable exam le. 5 ,J;2 ---•··- ·L? 1.4. l
Wri;e a program in c to find ~ut reverse of the
number entered by the user.
Input ~-256 Output--652
5 COl L3 1.4.1
.. *******
The marks obtained by a student in 5 different .
subjects are in put 1:lu-ough the keyboard. The
student gets a division as per the following
rulesl m; in 1~ ~witch):
Percentage above or equal to 80 - First division.
Percenla ....gc bet·ween 60 and 79 -Second division
I Pem :11 tagc between 40 and 59 - Third division
Percentage less _than 40 - Fail
Write a program to calculate the division
obtained by the student.
5 CO2 L3 2.1.2
Write a progr,n . ! Ll ' (" to search a number from
a given list ol numbers'?