Download VTU B-Tech/B.E 2019 June-July 1st And 2nd Semester 2017 Jan 2016 Dec 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) 2017 Jan 2016 Dec 15PCD13 Programming in C and Data Structures Question Paper


USN

15PCD13/23

First/Second Semester B.E. Degree Examination, Dec.2016/Jan.2017
Programming in C and Data Structures
Time: 3 hrs. Max. Marks: 80
Define an Algorithm. Write an algorithm to find the area and perimeter of a rectangle.
(06 Marks)
Write a General structure of C. Explain with an example. (06 Marks)
Convert the following mathematical expression into C equivalent:
i) area = Vs(s - a) (s - b)(s c)
- b + - 4ac
ii) x -
2a
Xili1/4\r?w
ccg 1
O ..
1
8 0 Module-2
Draw the flowchart and write a C program to compute simple interest.
0 e S
c ---- 3 a. List all the conditional control statements used in C. Explain any two with syntax and
O '0
to g
co example. (06 Marks) . +V
cl
b. Write a C program that reads from the user an arithmetic operator and two operands perform
-0 1
the corresponding arithmetic operation on the operands using switch statement.
?, ??
(06 Marks)
.z
Q

0 -
c. Implement a C program to find the reverse of an integer number and check whether it is
? 0
si,
palindrome or not. (04 Marks)
? Fd
L

O e s
V: '
2
OR
8
2
4 a. What are unconditional control statements? Explain any two with example. (06 Marks)
O 'a'
-8
b. List the types of looping statements in C. Explain any two with syntax and example.
? .-
?,,.- (06 Marks)
a
to
= to c.
Develop a C program to read a year as an input and find whether it is Leap year or not.
..., =
(04 Marks)
8
2

o
>-,
c =
<
Module-3
._; (-i 5 a. What is Array? Explain the declaration and initialization of one dimensional and two
dimensional Array with example. (06 Marks)
Z
b. Explain any four string manipulation library function with example. (04 Marks)
1
4
g
c. Write a C program to implement string copy operation STRCOPY (strl, str2) that copies a
g
string strl to another string str2 without using Library function. (06 Marks)
Note: Answer any FIVE full questions, choosing one full question from each module.
Module-1
-l
e) 1 a.
b.
c.
1
31)
ez1
:Y
I!
'1
?
+
Q
2 a.
.74
p b.
e
i
OR
Explain different types of input output functions in C with syntax and examples. (06 Marks)
Explain the following operators :
i) Unary
ii) Bitwise
iii) Conditional. (06 Marks)
(04 Marks)
de
k\Marks)
1 of 2
FirstRanker.com - FirstRanker's Choice

USN

15PCD13/23

First/Second Semester B.E. Degree Examination, Dec.2016/Jan.2017
Programming in C and Data Structures
Time: 3 hrs. Max. Marks: 80
Define an Algorithm. Write an algorithm to find the area and perimeter of a rectangle.
(06 Marks)
Write a General structure of C. Explain with an example. (06 Marks)
Convert the following mathematical expression into C equivalent:
i) area = Vs(s - a) (s - b)(s c)
- b + - 4ac
ii) x -
2a
Xili1/4\r?w
ccg 1
O ..
1
8 0 Module-2
Draw the flowchart and write a C program to compute simple interest.
0 e S
c ---- 3 a. List all the conditional control statements used in C. Explain any two with syntax and
O '0
to g
co example. (06 Marks) . +V
cl
b. Write a C program that reads from the user an arithmetic operator and two operands perform
-0 1
the corresponding arithmetic operation on the operands using switch statement.
?, ??
(06 Marks)
.z
Q

0 -
c. Implement a C program to find the reverse of an integer number and check whether it is
? 0
si,
palindrome or not. (04 Marks)
? Fd
L

O e s
V: '
2
OR
8
2
4 a. What are unconditional control statements? Explain any two with example. (06 Marks)
O 'a'
-8
b. List the types of looping statements in C. Explain any two with syntax and example.
? .-
?,,.- (06 Marks)
a
to
= to c.
Develop a C program to read a year as an input and find whether it is Leap year or not.
..., =
(04 Marks)
8
2

o
>-,
c =
<
Module-3
._; (-i 5 a. What is Array? Explain the declaration and initialization of one dimensional and two
dimensional Array with example. (06 Marks)
Z
b. Explain any four string manipulation library function with example. (04 Marks)
1
4
g
c. Write a C program to implement string copy operation STRCOPY (strl, str2) that copies a
g
string strl to another string str2 without using Library function. (06 Marks)
Note: Answer any FIVE full questions, choosing one full question from each module.
Module-1
-l
e) 1 a.
b.
c.
1
31)
ez1
:Y
I!
'1
?
+
Q
2 a.
.74
p b.
e
i
OR
Explain different types of input output functions in C with syntax and examples. (06 Marks)
Explain the following operators :
i) Unary
ii) Bitwise
iii) Conditional. (06 Marks)
(04 Marks)
de
k\Marks)
1 of 2
10 a.
b.
c.
d.

15PCD13/23
6 a.
b.
c.
7 a.
b.
c.
8 a.
b.
c.
OR
What is string? Write a C program that reads a sentence and prints the frequency of each of
the vowels and total count of consonants. (06 Marks)
What is a Function? Explain the type of functions based on parameters. (06 Marks)
What is Recursion? Write a C program to compute polynomial co-efficient '
Cr
using
Recursion. (04 Marks)
Module-4
What is structure? Explain the C Syntax of structure declaration with example. (04 Marks)
What is a FILE? Explain any five file manipulation functions with example. (06 Marks)
What are actual and formal parameters? Explain various storage classes available in C.
(06 Marks)
OR
Explain array of structure and structure within a structure with an example. (06 Marks)
Write a C program to maintain a record of 'n' students details using an array of structures
with four fields (roll no, name, marks and grade). Assume appropriate data type for each
field. Print the marks of the student given the student name as input. (06 Marks)
Explain various modes of FILE with example. (04 Marks)
Module-5
9 a. What is a pointer? Explain how the pointer variable is declared and initialized. (04 Marks)
b. What is dynamic memory allocation? Explain different dynamic memory allocation
functions in C. (06 Marks)
Write a C program using pointers to compute the Sum, Mean and Standard deviation of all
elements stored in an array of 'n' real numbers. (06 Marks)
OR
Explain the Array of pointers with example.
Explain any two pre-processor directives in C.
What is Stack? Explain operations on Stack.
What is a Queue? Explain its applications.
(04 Marks)
(04 Marks)
(04 Marks)
(04 Marks)
2 of 2
FirstRanker.com - FirstRanker's Choice

This post was last modified on 01 January 2020