Download VTU B-Tech/B.E 2019 June-July 1st And 2nd Semester 15 Scheme 15PCD13 Programming in C and Data Structures Question Paper

Download VTU ((Visvesvaraya Technological University) B.E/B-Tech 2019 July ( Bachelor of Engineering) First & Second Semester (1st Semester & 2nd Semester) 15 Scheme 15PCD13 Programming in C and Data Structures Question Paper

? CM1KOD1
LIBRARY ,

?
IFI
VIP Pnoe!
CEE
15PCD13/23
USN
? oci
ff
,r
)
,
First/Second Semester B.E. Degree Examination, June/July 2019
Programming in C and Data Structures
Time: 3 hrs. Max. Marks: 80
Note: Answer any FIVE hill questions, choosing ONE full question from each module.
d
Module-1
'6. 1 a. Write a general structure of C program. Explain with example. (06 Marks)
"
--
P:
b. List basic data types in C. Write the significance of each data type. (04 Marks)
cn
m
c. What is Variable? Explain the syntax of variable declaration and variable initialization.
o
(06 Marks)
vi ?
0.) 4,
OR
1' =
2 a. With syntax and example, explain the formatted and unformatted input and output functions
..:4
=
cz
in C.
YE 'r'
(06 Marks)
II
tb
b. Write a C program to convert temperature from degree centigrade to Fahrenheit. (04 Marks)
??-?
= oc
?
s operators supported C .
.? ?,
- c. Explain variou s su orted by C
a
.
-o-
(06 Marks)
E
o
h
a.)
$...
0

G.) ?
Module-2
..= ,,,
'
?
E
3 a. Explain the syntax of for loop and write a program using tbr loop to find sum of first n
0
natural numbers.
= -
(08 Marks)
.? .0
b. Explain the syntax of if statement and write a program to find largest of 3 numbers using if
z i?- ,
. -
?
Er
.
statement. (08 Marks)
C..1 C.
,

7:s O
-
S' -o
OR
. a
.
i
.
3

8 4 a. With example, explain the syntax of switch statement. (06 Marks)
'74
,m1
,.. _ b. Explain Break and Continue statements. (04 Marks)
0
e3

P.-. 0 c. Differentiate between while and do ? while loops. (06 Marks)
O --
7; -
z.,
c
, Module-3
E a.
acz
1
5 a. Explain declaration and initialization of two dimensional array and write a program to
,.) ...-
? 0
multiply two matrices. (10 Marks) ... ?
3
b. What is function? Explain the differences between call by value and call by reference.
tr...
?
. _
(06 Marks)
o
?
?
>-,
0
,...
etA
OR
= bi)
? .- -
6 a. Explain the various string manipulation functions. (06 Marks)
E
.,'
E > b. Write a C program to find factorial of a number using recursion. (04 Marks)
O ,.7!
0
z ??' ?
c. Explain with example syntax of puts and gets functions. (06 Marks)
0 ?"
- ? Module-4
7 a. What is File? Explain any five file manipulation functions with example. (08 Marks)
4
b. Write a C program to maintain record of n students with appropriate fields and print the
cz
t-
marks of student if name is entered. (08 Marks)
0
OR
FirstRanker.com - FirstRanker's Choice
? CM1KOD1
LIBRARY ,

?
IFI
VIP Pnoe!
CEE
15PCD13/23
USN
? oci
ff
,r
)
,
First/Second Semester B.E. Degree Examination, June/July 2019
Programming in C and Data Structures
Time: 3 hrs. Max. Marks: 80
Note: Answer any FIVE hill questions, choosing ONE full question from each module.
d
Module-1
'6. 1 a. Write a general structure of C program. Explain with example. (06 Marks)
"
--
P:
b. List basic data types in C. Write the significance of each data type. (04 Marks)
cn
m
c. What is Variable? Explain the syntax of variable declaration and variable initialization.
o
(06 Marks)
vi ?
0.) 4,
OR
1' =
2 a. With syntax and example, explain the formatted and unformatted input and output functions
..:4
=
cz
in C.
YE 'r'
(06 Marks)
II
tb
b. Write a C program to convert temperature from degree centigrade to Fahrenheit. (04 Marks)
??-?
= oc
?
s operators supported C .
.? ?,
- c. Explain variou s su orted by C
a
.
-o-
(06 Marks)
E
o
h
a.)
$...
0

G.) ?
Module-2
..= ,,,
'
?
E
3 a. Explain the syntax of for loop and write a program using tbr loop to find sum of first n
0
natural numbers.
= -
(08 Marks)
.? .0
b. Explain the syntax of if statement and write a program to find largest of 3 numbers using if
z i?- ,
. -
?
Er
.
statement. (08 Marks)
C..1 C.
,

7:s O
-
S' -o
OR
. a
.
i
.
3

8 4 a. With example, explain the syntax of switch statement. (06 Marks)
'74
,m1
,.. _ b. Explain Break and Continue statements. (04 Marks)
0
e3

P.-. 0 c. Differentiate between while and do ? while loops. (06 Marks)
O --
7; -
z.,
c
, Module-3
E a.
acz
1
5 a. Explain declaration and initialization of two dimensional array and write a program to
,.) ...-
? 0
multiply two matrices. (10 Marks) ... ?
3
b. What is function? Explain the differences between call by value and call by reference.
tr...
?
. _
(06 Marks)
o
?
?
>-,
0
,...
etA
OR
= bi)
? .- -
6 a. Explain the various string manipulation functions. (06 Marks)
E
.,'
E > b. Write a C program to find factorial of a number using recursion. (04 Marks)
O ,.7!
0
z ??' ?
c. Explain with example syntax of puts and gets functions. (06 Marks)
0 ?"
- ? Module-4
7 a. What is File? Explain any five file manipulation functions with example. (08 Marks)
4
b. Write a C program to maintain record of n students with appropriate fields and print the
cz
t-
marks of student if name is entered. (08 Marks)
0
OR
15PCD13/23
8
a. What is Structure? Explain the syntax of structure declaration. Explain structure within
structure with an example.
(08 Marks)
b. Write a C program to read text from file and display it on screen. (08 Marks)
Module- 5
9 a. What is Stack? Explain various stack operations. (08 Marks)
b. What is Pointer? Write a C program to swap two numbers using pointers. (08 Marks)
OR
10 a. What is Dynamic Memory Allocation? Explain the four functions for memory management.
(08 Marks)
b. Explain various Pre processor directives. (08 Marks)
Socletre

001
LIB
RA
'

FirstRanker.com - FirstRanker's Choice

This post was last modified on 01 January 2020