Download VTU BE 2020 Jan Question Paper 18 Scheme 18CPS1323 C Programming for Problem Solving 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) 18 Scheme 18CPS1323 C Programming for Problem Solving Previous Question Paper

,.../
First/Second Se
11
B.E. egree Examination, Dec.2019/Jan.2020
C Programming for Problem Solving
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing ONE full question front each module.
Module-1
How would you explain the components of a computer with the block diagram?
Describe the types of computers.
Convert the following mathematical expression into C equivalent statements.
i) m = x
4
+ X + ?
Y
? 4x +6
k
(08 Marks)
(06 Marks)
? b + \r
/
b
2
?4ac
2a
ii) x =
iii) Area = irr
2
+ 27trh

(06 Marks)
OR
2 a. How can you write the basic structure of a C program? Explain with examples.
b. Define a token. Explain the different tokens available in C language.
c. How would you explain logical operator in a C language.
(08 Marks)
(08 Marks)
(04 Marks)
Module-2
3 a. With examples how would describe the formatted input and thrmatted output statements in
C language. (08 Marks)
b. How would you explain if? else statement in C language? Give the relevant ex ample.
(06 Marks)
c.
Write a program in C to display the grade based on the marks as follows :
Marks Grades
0 to 39 F
40 to 49 E
50 to 59 D
60 to 69 C
70 to 79 B
80 to 89 A
90 to 100
OR
How would you explain switch statement with an example?
How the while loop differs from do-while loop?
Write a program to check whether a given integer is palindrome or not?

4 a.
b.
c.
(06 Marks)
(08 Marks)
(06 Marks)
(06 Marks)
CC Module-3
0
5 a. Define an array. How would you explain declaration and. initialization of one dimensional
C
array? (06 Marks)
b. Write a program in C to implement binary searching technique. (06 Marks)
c. How would you explain with examples, the string manipulation functions? (08 Marks)
USN
18CPS13/23
FirstRanker.com - FirstRanker's Choice
,.../
First/Second Se
11
B.E. egree Examination, Dec.2019/Jan.2020
C Programming for Problem Solving
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing ONE full question front each module.
Module-1
How would you explain the components of a computer with the block diagram?
Describe the types of computers.
Convert the following mathematical expression into C equivalent statements.
i) m = x
4
+ X + ?
Y
? 4x +6
k
(08 Marks)
(06 Marks)
? b + \r
/
b
2
?4ac
2a
ii) x =
iii) Area = irr
2
+ 27trh

(06 Marks)
OR
2 a. How can you write the basic structure of a C program? Explain with examples.
b. Define a token. Explain the different tokens available in C language.
c. How would you explain logical operator in a C language.
(08 Marks)
(08 Marks)
(04 Marks)
Module-2
3 a. With examples how would describe the formatted input and thrmatted output statements in
C language. (08 Marks)
b. How would you explain if? else statement in C language? Give the relevant ex ample.
(06 Marks)
c.
Write a program in C to display the grade based on the marks as follows :
Marks Grades
0 to 39 F
40 to 49 E
50 to 59 D
60 to 69 C
70 to 79 B
80 to 89 A
90 to 100
OR
How would you explain switch statement with an example?
How the while loop differs from do-while loop?
Write a program to check whether a given integer is palindrome or not?

4 a.
b.
c.
(06 Marks)
(08 Marks)
(06 Marks)
(06 Marks)
CC Module-3
0
5 a. Define an array. How would you explain declaration and. initialization of one dimensional
C
array? (06 Marks)
b. Write a program in C to implement binary searching technique. (06 Marks)
c. How would you explain with examples, the string manipulation functions? (08 Marks)
USN
18CPS13/23
1 8CPS13/2.3
OR
6 a. Write a program to read N integers and to arrange them in ascending order using bubble sort
technique. (06 Marks)
b. How would you explain the declaration and initialization of string variables? (06 Marks)
c. Write a program to multiply 2 matrices, by ensuring their multiplication compatit )ility.
(08 Marks)
7 a.
b.
c.
Module-4
How would you illustrate the elements of user defined functiOns with examples?
Write a program in C to find the factorial of a given integer using functions.
Explain how call by value differs from call by reference while invoking a functio
(10 Marks)
(05 Marks)
n.
(05 Marks)
OR
8 a. How would you explain the categories of user defined functions? (10 Marks)
b. Write a program in C to compute the Fibonacci series up to n terms using recursi on.
(06 Marks)
c.
List the storage class specifiers. Explain any one of them. (04 Marks)
Module-5
9 a. Define a structure. How would you declare and initialize structure variables? Give examples.
(07 Marks)
b. Define a Pointer. How the pointers are declared and initialized? (06 Marks)
c. Write a C program to read details of 10 students and to print the marks of the student if his
name is given as input. (07 Marks)
10 a.
b.
C.
OR
Write a program in C to add two numbers using pointers.
How would you explain the categories of preprocessor directives in C?
How would you explain nested structures?
(05 Marks)
(10 Marks)
(05 Marks)
FirstRanker.com - FirstRanker's Choice

This post was last modified on 02 March 2020