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

USN
PDF Eraser Free
14PCD13
First Semester B.E. Degree Examination, Dec.2014/Jan.2015
Programming in 'C' and Data Structures
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, selecting
atleast ONE questions from each part.
PART ? 1
ca
1 a. What is pseudocode? Explain with an example. (04 Marks)
b. Explain the structure of C program with an example. (06 Marks)
c. Explain any five operators used in C language. (10 Marks)
g
2 a. What is type conversion? Explain two types of type conversions with examples. (06 Marks)
6
1
'
b. Write a program in C to find the area and perimeter of a rectangle. (06 Marks)
L
ci4
c. Define : i) Variable ii) Constant iii) Associativity iv) Precedence.
.....
(08 Marks)
o u
i
,do
.8
... F
co 6
3 a. What is two way selection statement? Explain if, if?else, nested if?else and cascaded
..0 ii
to if?else with examples and syntax. (10 Marks)
= 00
..
? r.4
b. Write a program that takes three coefficients (a, b, and c) of a quadratic equation :
P 01)

To?
(ax
e
+ bx + c) as input and compute all possible roots and print them with appropriate
messages. (10 Marks)
4.) =
'
_ .? ...
2
4 a. Explain switch statement with an example. (06 Marks)
b. What is a loop? Explain the different loops in C language. (10 Marks) 0
..=.
0
2 =
c. Show how break and continue statements are used in a C program, with example. (04 Marks)
a
0

0

o -
PART 3
ti]
ed cd
3
c3
Or a. What is an array? How is a single dimension array is declared and initialized? (06 Marks)
b. Write a C program to evaluate the polynomial f(x) = a4x
4
+ a3x
3
+ a
2
x
2
+ aix + a0, for a
o
0
2
given value of x and its coefficients using Homer's method. (06 Marks)
?
c. Explain string manipulation functions, with examples. (08 Marks)
,G. c...
.- 0..
CD '3
6 a. What is a function? Write a function to find the sum of two numbers. (06 Marks)
C.)
e .2
;'
b. Explain the two categories of argument passing techniques, with examples. (06 Marks)

3 c.
,

cA 47' . c. Write a C function isprime(num) that accepts an integer argument and returns I if the
= ?
0 -a.
L.4 u argument is a prime or a 0 otherwise. Write a program that invokes this function to generate
.?
?, prime numbers between the given ranges.
(08 Marks)
0
to
? =
PART ? 4
D
7,
ur 7 a. What is structure data type? Explain.
(04 Marks)
=
b. Show how a structure variable is passed as a parameter to a function, with an example
...: ei
(06 Marks)
u c. Explain the concept of array of structures, with a suitable C program. (10 Marks)
0
z
8 a. What is a file? Explain fopen( ), fclose( ) functions. (04 Marks)
-
`
1

0 b. Explain how the input is accepted from a file and displayed. (06 Marks)
sa.
c. Given two text documentary files "Ramayana-in" and "Mahabharatha?in". Write a C
program to create a new file "Karnataka-in" that appends the content of the file
"Ramayana-in" to the file "Mahabharatha-in". Also calculate the number of words and new
lines in the output file. (10 Marks)
I of 2
PART ? 2
FirstRanker.com - FirstRanker's Choice
USN
PDF Eraser Free
14PCD13
First Semester B.E. Degree Examination, Dec.2014/Jan.2015
Programming in 'C' and Data Structures
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, selecting
atleast ONE questions from each part.
PART ? 1
ca
1 a. What is pseudocode? Explain with an example. (04 Marks)
b. Explain the structure of C program with an example. (06 Marks)
c. Explain any five operators used in C language. (10 Marks)
g
2 a. What is type conversion? Explain two types of type conversions with examples. (06 Marks)
6
1
'
b. Write a program in C to find the area and perimeter of a rectangle. (06 Marks)
L
ci4
c. Define : i) Variable ii) Constant iii) Associativity iv) Precedence.
.....
(08 Marks)
o u
i
,do
.8
... F
co 6
3 a. What is two way selection statement? Explain if, if?else, nested if?else and cascaded
..0 ii
to if?else with examples and syntax. (10 Marks)
= 00
..
? r.4
b. Write a program that takes three coefficients (a, b, and c) of a quadratic equation :
P 01)

To?
(ax
e
+ bx + c) as input and compute all possible roots and print them with appropriate
messages. (10 Marks)
4.) =
'
_ .? ...
2
4 a. Explain switch statement with an example. (06 Marks)
b. What is a loop? Explain the different loops in C language. (10 Marks) 0
..=.
0
2 =
c. Show how break and continue statements are used in a C program, with example. (04 Marks)
a
0

0

o -
PART 3
ti]
ed cd
3
c3
Or a. What is an array? How is a single dimension array is declared and initialized? (06 Marks)
b. Write a C program to evaluate the polynomial f(x) = a4x
4
+ a3x
3
+ a
2
x
2
+ aix + a0, for a
o
0
2
given value of x and its coefficients using Homer's method. (06 Marks)
?
c. Explain string manipulation functions, with examples. (08 Marks)
,G. c...
.- 0..
CD '3
6 a. What is a function? Write a function to find the sum of two numbers. (06 Marks)
C.)
e .2
;'
b. Explain the two categories of argument passing techniques, with examples. (06 Marks)

3 c.
,

cA 47' . c. Write a C function isprime(num) that accepts an integer argument and returns I if the
= ?
0 -a.
L.4 u argument is a prime or a 0 otherwise. Write a program that invokes this function to generate
.?
?, prime numbers between the given ranges.
(08 Marks)
0
to
? =
PART ? 4
D
7,
ur 7 a. What is structure data type? Explain.
(04 Marks)
=
b. Show how a structure variable is passed as a parameter to a function, with an example
...: ei
(06 Marks)
u c. Explain the concept of array of structures, with a suitable C program. (10 Marks)
0
z
8 a. What is a file? Explain fopen( ), fclose( ) functions. (04 Marks)
-
`
1

0 b. Explain how the input is accepted from a file and displayed. (06 Marks)
sa.
c. Given two text documentary files "Ramayana-in" and "Mahabharatha?in". Write a C
program to create a new file "Karnataka-in" that appends the content of the file
"Ramayana-in" to the file "Mahabharatha-in". Also calculate the number of words and new
lines in the output file. (10 Marks)
I of 2
PART ? 2
*0\e\\'"'"
elk
* *
PDF Eraser Free
14PCD13
PART ? 5
9 a. What is a pointer? Write a program in C to find the sum and mean of all elements in an
array. Use pointer technology. (08 Marks)
b. What is preprocessor directive? Explain #define and #include preprocessor directives.
(08 Marks)
c. Explain :
i) Dynamic memory allocation
ii) Malloc function.
10 a. What are primitive and non primitive datatypes? Explain.
b. Define queue. Explain it along with its application.
c. Explain :
i) Abstract data type
ii) Stack
iii) Linked list.
(04 Marks)
(06 Marks)
(08 Marks)
r
06 Marks)
2 oft
FirstRanker.com - FirstRanker's Choice

This post was last modified on 01 January 2020