Download VTU BE 2020 Jan Question Paper 17 Scheme 1PCD1323 Programming in C and Data Structures First And Second Semester

Download Visvesvaraya Technological University (VTU) BE/B.Tech First And Second Semester (1st sem and 2nd sem) 2019-2020 Jan ( Bachelor of Engineering) 17 Scheme 1PCD1323 Programming in C and Data Structures Previous Question Paper

USN
(
CHIKO
,
c
1 PCD13/23
v:c?
G a
?
-
')
,
7 i--/
,,c
,

First/Second Semester B.E. Degree Examination, Dec.2019/Jan.2020
Programming in C and Data Structures
Time: 3 lirs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing ONE full question from each module.
Module-1
1 a. What is pseudo code? Explain how pseudo code can be used to solve the problem with
-
7d
suitable example. (06 Marks)
b. Explain the structure of 'C' program with an example. (08 Marks)
c. What is type conversion? Explain the different types of conversion with example. (06 Marks)
OR
2 a. Explain scanf( ) function and write the guidelines to be followed to use printf( ) function.
? (07 Marks)
oo
b. What is an operator? Explain the logical and bitwise operators. (07 Marks)
c. Define keyword, constant, identifiers with examples. (06 Marks)
7t?
'
1)

..c
t)
Module-2
3 a. Explain cascaded if else and switch statement with syntax and example.
0
(08 Marks)
b. Write a 'C' program to find the roofs of quadratic equation. (08 Marks)
,t4
c. Explain how break and continue statements are used in 'C' program. (04 Marks)
Ue
o OR
CD
4 a_ Explain the different types of loops used in 'C' with syntax and example for each. (09 Marks)
ct
.
-a t,
b. Write a 'C' program to find whether a given no is palindrome or not. (05 Marks)
-0
-. rg
m
,.. c. What are the nested loops? Write a 'C' program to print to multiplication table upto 'n'
7
. .1-% .
8
_
.2
0', using nested for loops. (06 Marks)
. ?
(1)
Module-3
? -+
5 a. What is an Array? Explain the
-
declaration and initialization of one dimensional array with
' d
-,..
')
? example. (07 Marks)
ic lj o
in .z. b. Write a 'C' program to add two matrices. (08 Marks)

,... .,_,
c. Explain Recursion with an example.
g' 79
(05 Marks)
G
OR .0
t
6 a.
Explain any four string manipulation library functions with example.
la 8
(08 Marks)
P >
P d
b. Explain function call, function definition and function prototype with example. (08 Marks)
t,
6
>,
.,, c. What are actual parameters and format parameters? (04 Marks)
Module-4
0
7 a. What
is structure? Explain with syntax and example, the concept of structure defining,
declaration and initialization.
(10 Marks)
o b.
Explain array of structures and structure within structure with example. (10 Marks)
FirstRanker.com - FirstRanker's Choice
USN
(
CHIKO
,
c
1 PCD13/23
v:c?
G a
?
-
')
,
7 i--/
,,c
,

First/Second Semester B.E. Degree Examination, Dec.2019/Jan.2020
Programming in C and Data Structures
Time: 3 lirs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing ONE full question from each module.
Module-1
1 a. What is pseudo code? Explain how pseudo code can be used to solve the problem with
-
7d
suitable example. (06 Marks)
b. Explain the structure of 'C' program with an example. (08 Marks)
c. What is type conversion? Explain the different types of conversion with example. (06 Marks)
OR
2 a. Explain scanf( ) function and write the guidelines to be followed to use printf( ) function.
? (07 Marks)
oo
b. What is an operator? Explain the logical and bitwise operators. (07 Marks)
c. Define keyword, constant, identifiers with examples. (06 Marks)
7t?
'
1)

..c
t)
Module-2
3 a. Explain cascaded if else and switch statement with syntax and example.
0
(08 Marks)
b. Write a 'C' program to find the roofs of quadratic equation. (08 Marks)
,t4
c. Explain how break and continue statements are used in 'C' program. (04 Marks)
Ue
o OR
CD
4 a_ Explain the different types of loops used in 'C' with syntax and example for each. (09 Marks)
ct
.
-a t,
b. Write a 'C' program to find whether a given no is palindrome or not. (05 Marks)
-0
-. rg
m
,.. c. What are the nested loops? Write a 'C' program to print to multiplication table upto 'n'
7
. .1-% .
8
_
.2
0', using nested for loops. (06 Marks)
. ?
(1)
Module-3
? -+
5 a. What is an Array? Explain the
-
declaration and initialization of one dimensional array with
' d
-,..
')
? example. (07 Marks)
ic lj o
in .z. b. Write a 'C' program to add two matrices. (08 Marks)

,... .,_,
c. Explain Recursion with an example.
g' 79
(05 Marks)
G
OR .0
t
6 a.
Explain any four string manipulation library functions with example.
la 8
(08 Marks)
P >
P d
b. Explain function call, function definition and function prototype with example. (08 Marks)
t,
6
>,
.,, c. What are actual parameters and format parameters? (04 Marks)
Module-4
0
7 a. What
is structure? Explain with syntax and example, the concept of structure defining,
declaration and initialization.
(10 Marks)
o b.
Explain array of structures and structure within structure with example. (10 Marks)
17PCD13/23
OR
8 a. What is a file? Explain fopen( ), fclose( ) function with example. (10 Marks)
b. Give two university information files "studentname.txt" and "usn.tax" that contain
studentname and USN respectively. Write a 'C' program to create a new file called
"output.txt" and copy the content of "studentname.txt" and usn.txt" into "output.txt" file and
then display on the screen. (10 Marks)
Module-5
9 a. What is a pointer? Explain how the pointer variable is declared and initialized. (06 Marks)
b. What is preprocessor directive? Explain #define, #include preprocessor directive. (06 Marks)
c. What is stack? Explain the operations performed on stack. (08 Marks)
OR
10 a. What is dynamic memory allocation? Write and explain the different dynamic memor
allocation function in 'C'. (08 Marks)
b. What is queue? Explain the types of queues. (06 Marks)
c. What is a linked list? Distinguish between a singly linked list and doubly linked list.
(06 Marks)
2 of 2
FirstRanker.com - FirstRanker's Choice

This post was last modified on 02 March 2020