






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
This document contains question paper and command prompt commands list of UIET, Kanpur, Information Technology or Computer Science Department of engineering
Typology: Exams
1 / 11
This page cannot be seen from the preview
Don't miss anything!
the keyboard and write it to a file. I 4 I
Write a C program us ing function to find la rgest number into entered 3 numbers. I 3 I
Write a C program to read the Employee ID , name and salary of the n Employee in a Company and find the average salary of the comp~y. r3I
SECTION 1 1
__
What do yo u mean by string var iable. how can\vc i nitI ial ize it. I low a C comp il er provides a large number of ·•library funct ion .. for/man i pulat ing strings. Spi.: cify ea ch
Write a C Program to Count number of pos itive , negative and zeroes in an integer
What do you mean by parameter pass ing in funct ions descr ibe its approa c hes in detai l
QI O.Multiple Choice type Quest io ns -
a. A po inter value refer to
v. Any val id address in memor y
b. Pointer is used for ./Y. static memory allocation
flJ. dynamic memor y allocation v D. a posit iv e integer
c. If' a variable is a po inter to a structure, then which of the following operator is used to access data members of' the structure through the pointer var iable? _..,A. '.' •·-B. '& ' v. C^ '' )1^.*^ '->'
Q 10. Show the Output for the following programs-
(a .) main( ) { int a,b,c; a== 4, b.::. 3;
b=a 11 b 11 c; a -a && b II c; printf("¾d ¾d ¾d",c,b,a) ; getch() ; } ! (c ~)
1/! f: main() , {
(
I printf(sc, sc) ;
J
return O; }. / ---· -- -- - ----------- -----
a. Function Prototype Declaration b. Union c. lsdigit() Function
(b.) main( ) { int x 3,y -4,z I; X 1 --=- y;
z *=x; printf( "¾ d ¾d ¾d".x.y .1.) : getch();
(d.) ma in()
{ int i J);- li~it 5; pr in{jf·V.~luc of I \n"); I for(^ '· i' <^ ltirnitI · )'
j
, 1 i't p
0 r~tf("%d \n'', i) ; } ' } (^) - -- 7'' (^) -· ·--/
11 I I 11 111
,
I
l/ ~ Explain the different types of loops in C with syntax '_ v and example.
9:{'j hat^ ' is a structure? Explain the syntax of structure 1i tion with example.
. , ' I ·'
~ ~ Write a program that read a integer number and
appearing in the list.. MIN~.
t//4 J:{..af, ' W~at do you mean by func~ions? Dif~erentiate between
')., / 1 tJ¥': Write a program in C to find ·the area and perimeter ' off a circle.
. ·: (/'-~ , '";,- Ov -;;..o 1'
wtJ f e r _V_ ') 9' <:.
. ~;'c. ,(// w· V, • 1, f Q _;
· "-r<2.N ==- 7J··ev -¥- 1 o-\ ')-e.J.AI/
rv1. : v,/ t o , .:> ./
Department of Computer Science and Engineering
UIET, CSJM University, Kanpur
Mid Semester Examination, 2016
B. Tech.^.^ (CHE- 1 st^ ' $em)
1s c-s .. 101
Time : 1 Hour 30 Minutes MM: 30
Note: Attempt all questions ·each question carries equal
fiite' a C Program that read a inL09er number and find input
r~. / : ~ 6) ;
CD fJ^
1) I 0^2 3
~aw'a flow chart to print all odd numbers between 50 and
Alain 7ollowing
Q. 1. Write a program to find the largest number from a given array.
Q.2. Writ e a program for generation of Fibonacci series us =ng recursion.
Q.3. Can we perform an assignment operation on pointers what is your opin ion if yes than wr ite a program to illustrate this concept. [3 )
Q.4. Write a program to print the following pattern;
Q.5. Describ e th e following tenns-
b. Return statement c. Global variable
I I
[ I l
I
Q. l. What do you mean by computer.draw its Bl oc k Diagram and define its characteristics ?[3]
Q.2. What are the four parts of C Language, Define its characteristics. [3)
Q.3. Suppose pen cost Rs. 125 per dozen. Howe ve r if a purchase is made for more than I dozens a discount of I 0% is allowed. Devel op a C program to compute the price if a user enters n dozens of pens as an input. Draw a flow chart of the program. [3]
Q.4. Show the output of the followings-
exl7X *++y;
Q.5. Describe the following tenns-
a. compiling b. break c. computation of addresses range of int datatype
I
"= ,__- I
[l]
I; -<!