0% found this document useful (0 votes)
38 views5 pages

Adobe Scan 02 May 2022

Uploaded by

akshat rai
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)
38 views5 pages

Adobe Scan 02 May 2022

Uploaded by

akshat rai
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/ 5

RollNo.

eoeseseoneeoceeee*o*e

No.of Printed Pages: 05

18A13
2022
B. Tech. EXAMINATION,

(First Semester)

(C-Scheme) (Main & Re-appear)

(Common for All Branches)

CSE101C

PROGRAMMING FOR PROBLEM SOLVITNG

Time: 3 Hours] Maximum Marks : 75


)
Before answering the question-paper candidates
should ensure that they have been supplied to correct
and complete question-paper. No complaint, in this

regard, will be entertained after the examination.


Note: Attempt Five questions in all.All questions
cary equal marks.

2-F2-4329M-18A13 P.T.O.
Unit I

1. (a) Exolain the functioning of arithmetic and


logical control unit, memory unit and
control unit of a computer system. 9
(b) What are the steps of solving a logical

reasoning problem ? Explain in detail.6


2.
2. (a) What is an operating system ? What

services does an operating system proVIde


for efficient functioning of computer

system2 5

Write algorithm and draw a flowchart


(b) an

which takes as input a number and

check
Whether the number is divisible by
)
2 and 5.
i) Whether the number is divisible by
2 but not by 5.

(il) Whether the number is divisible by


5 but not by 2.

Display the message accordingly. 10

M-18A13 2
Unit
3. (a) Write a program in C language to. find
biggest and smallest number of given n

nos. il an 7
array.
(b) Differentiate between loop statements
with the help of a flowchart and giving

exampies. 8

4. (a) Evaluate the ilowing expressions


) 22+3 <6 && !5|| 22 == 7 &&
22 2> +5
(ii) a+ 2> b|| !c && a = = d *a - 2

e,
where a = 1i, b = 6, c = 0, d = 7

and e= 5. 6
(b) With the help of an example, differentiate
between call be value and cail
by
reference. 9

Unit iI
5. (a) Write a
program in C to
print first
100 nos. of
fibone cci series. What are
a
the
advantages if the prograrm is written
Using recursion ?
-230-18A13
(b)
What is a
pointer ? Explain,
pointer variable is how the
deared and
initialized
Explain different
of p r e - p r o c e s s o r directives usedcategories
in C. 6

structur ?
6. (a) What are
Explain the use of
hit fields in srucnres giving examples.
7
(b) Write a c-program using structures to
read, write, compute average marks and
display the students scoring above and
below the average marks for a class of N
students. 8

Unit IV

Write a program in C to sort an array in


7. (a)
descending order. 8

b)Write a program in C to read a line from


a file and copy the line to another file.
1

8. (a) Explain the different file operations and


different modes of files. 8
M-18A13
in C to scarch an
(b) Write a program
binary search. 7
clement in a list using

9 Answer the following questions oriefly


brietly

are its features ?


(a) What is DOS? What
(6) What is the difference between volatile
and non-volatile memory ?

What in C language ?
(c) are Keywords
(d) Write thesyntax of conditional operator.
(e) Differentiate between getch( ). and
getche()finctions. 5x3

You might also like