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

a.

1.7PCD13
USN I.
First Semester S.E. Degree Examination, Dec.2017/Jan.2018
Programming in C and Data Structures
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing one full question from each module
Module-1
a. , List all the logical operators and write a C program to demonstrate working of these logical
bperators. : -
_ .. . .
(10 Marks)
b. Explain structure of C program with an example. ? - (05 Marks)
c. Classify the following as valid and invalid variable. If invalid give reasons.
i) r143"
ii) belp+me
iii) auto
iv) hello how
v) *a
2 a. What is a token? What are different types of tokens available in c language? Explain.
(10 Marks)
b. Write an algorithm and program to find biggeSt of three numbers. (10 Marks)
. Module-2
a. Write a C program to find the roots of quadratic equation. (10 Marks)
b. Explain syntax of while statement. Write a C program to check the given number is
palindrome or not. (10 Marks)
'PO
OR
Explain break and continue statements with respect to do-vat*, while and for loop with
suitable examples. (10 Marks)
h. Print the following series:
1 2
1 2 3
1 2 3 4 (05 Marks)
c. Explain ternary operator with suitable example. (05 Marks)
Module-3
5 a. Define an array. Write a syntax for declaring two dimensional array and initialize the same
with suitable example. (10 Marks)
b. Write a C program to find sum of array elements by passing array as function argument.
(05 Marks)
c. Explain any two string manipulation functions. (05 Marks)
OR
6 a. Explain recursion with an example. (06 Marks)
b. Write a C program to sort the elements of a given array using bubble sort. (08 Marks)
c. Write a C program to concatenate two strings without using built-in function strcat( ).
(06 Marks)
?
V
ithiL
( a 05 rks )
?
I oft
FirstRanker.com - FirstRanker's Choice
a.

1.7PCD13
USN I.
First Semester S.E. Degree Examination, Dec.2017/Jan.2018
Programming in C and Data Structures
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing one full question from each module
Module-1
a. , List all the logical operators and write a C program to demonstrate working of these logical
bperators. : -
_ .. . .
(10 Marks)
b. Explain structure of C program with an example. ? - (05 Marks)
c. Classify the following as valid and invalid variable. If invalid give reasons.
i) r143"
ii) belp+me
iii) auto
iv) hello how
v) *a
2 a. What is a token? What are different types of tokens available in c language? Explain.
(10 Marks)
b. Write an algorithm and program to find biggeSt of three numbers. (10 Marks)
. Module-2
a. Write a C program to find the roots of quadratic equation. (10 Marks)
b. Explain syntax of while statement. Write a C program to check the given number is
palindrome or not. (10 Marks)
'PO
OR
Explain break and continue statements with respect to do-vat*, while and for loop with
suitable examples. (10 Marks)
h. Print the following series:
1 2
1 2 3
1 2 3 4 (05 Marks)
c. Explain ternary operator with suitable example. (05 Marks)
Module-3
5 a. Define an array. Write a syntax for declaring two dimensional array and initialize the same
with suitable example. (10 Marks)
b. Write a C program to find sum of array elements by passing array as function argument.
(05 Marks)
c. Explain any two string manipulation functions. (05 Marks)
OR
6 a. Explain recursion with an example. (06 Marks)
b. Write a C program to sort the elements of a given array using bubble sort. (08 Marks)
c. Write a C program to concatenate two strings without using built-in function strcat( ).
(06 Marks)
?
V
ithiL
( a 05 rks )
?
I oft

Module-4
7 a. What is structure? Explain its declaration and initialization with an example.
-

b. Explain any four file operations with an example.
c. Write a C program to pass structure variable as function argument.
17PCD13
(06 Marks)
(06 Marks)
(08 Marks)
OR
8 a. Write a C program to store and print Name, USN, SubjectName and IA Marks of student
using structure.
00 Marks)
b. Explain typedef with suitable example. (05 M arks)
c. Explain how the input is accepted from file and displayed. (05 Marks)
Module-5
9 a. What is pointer? Give advantages and disadvantages of pointers in C. (07 1N larks)
b. Explain malloc( ) and calloc( ) functions with examples. (06 Marks)
c. What is queue? Explain its operations. (07 Marks)
OR
10 .a. Write a C program to swap two numbers using call by address.
b. What are primitive and non-primitive data types and explain.
c. Define stack.. List applications of stack.
c
i
?
(08 Marks)
(07 Marks)
0
(05 Marks)
?
FirstRanker.com - FirstRanker's Choice

This post was last modified on 01 January 2020