0% found this document useful (0 votes)
174 views

BSC BSC Cs Semester 1 2019 November Problem Solving Using Computer and C Programming 2019 Pattern

This document is a past paper for the BSc Computer Science semester 1 exam from Savitribai Phule Pune University in 2019. It contains 5 questions related to C programming and problem solving concepts. Question 1 has 6 short answer parts. Questions 2-5 have longer multi-part programming and theory questions worth varying marks.

Uploaded by

asurana272
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views

BSC BSC Cs Semester 1 2019 November Problem Solving Using Computer and C Programming 2019 Pattern

This document is a past paper for the BSc Computer Science semester 1 exam from Savitribai Phule Pune University in 2019. It contains 5 questions related to C programming and problem solving concepts. Question 1 has 6 short answer parts. Questions 2-5 have longer multi-part programming and theory questions worth varying marks.

Uploaded by

asurana272
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

lOMoARcPSD|34530567

Bsc bsc-cs semester-1 2019 november


problem-solving-using-computer-and-c-programming-2019-pa
ttern
Bsc (computer science) (Savitribai Phule Pune University)

Studocu is not sponsored or endorsed by any college or university


Downloaded by Alisha Surana ([email protected])
lOMoARcPSD|34530567

Total No. of Questions : 5] SEAT No. :


P1381 [Total No. of Pages : 3

14
[5623]-1001

:02
F.Y. B.Sc.

:28
COMPUTER SCIENCE

/20 1
09
/11 66
CS - 111 : Problem Solving Using Computer and ‘C’ Programming

19
1
(CBCS) (2019 Pattern) (Semester - I) (Paper - I)
01
AP

Time : 2 Hours] [Max. Marks : 35


06
Instructions to the candidates:
.54
CA

1) Q.1 is compulsory.
31

2) Solve any three questions from Q.2 to Q.5.


2.1

14
3) Questions 2 to 5 carry equal marks.
.14

:02
14

:28
Q1) Attempt any five of the following : [5 × 1 = 5]
/20 1
09
/11 66
19
a) While loop is entry controlled loop. State true or false.
1
.54 01

b) What is difference between getchar and gets?


AP
06

c) Write a pseudocode to check number is positive or negative.


.14 CA
31

d) What is recursive function?


2.1

14
:02
e) Array is homogeneous data structure. Justify.
14

:28
61

f) Write a pseudocode to find out addition of first 20 numbers and print it.
09
16
19
/20
01
/11

Q2) a) Attempt any two of the following : [2 × 3 = 6]


AP
06
.54
CA

i) Explain for loop with the help of suitable example.


31
2.1

ii) Explain automatic and external storage class.


.14
14

[5623]-1001 1 P.T.O.

Downloaded by Alisha Surana ([email protected])


lOMoARcPSD|34530567

iii) What is the output of following C code? Justify.


Void main( )

14
{

:02
int i = 1;

:28
while (i <= 13)

/20 1
09
{

/11 66
Printf(“%d\t”, i);

19
1
i = i + 2;
01
}
AP

}
06

b) Write a C program to accept a number & find out reverse of a number.


.54
CA

[1 × 4 = 4]
31
2.1

14
.14

:02
Q3) a) Attempt any two of the following : [2 × 3 = 6]
14

i) Explain different notations used in flowchart.

:28
/20 1
ii) Explain following operators 09
/11 66

1) Increment and decrement.


19
1

2) Relational.
.54 01

iii) What is the output of following C code? Justify.


AP

main( )
06

{
.14 CA

int x, y, answer;
31

x = 10;
2.1

y = 20; 14
:02

answer = predict (x, y+2);


14

:28

printf(“%d”, answer);
61
09

}
16
19

int predict (int a, int b)


/20
01

{
/11
AP

int temp;
06

temp = 10 + a * b;
.54
CA

return temp;
31

}
2.1

b) Write a C program to accept ‘n’ numbers into array and find out maximum
.14

and minimum number from array. [1 × 4 = 4]


14

[5623]-1001 2

Downloaded by Alisha Surana ([email protected])


lOMoARcPSD|34530567

Q4) a) Attempt any two of the following : [2 × 3 = 6]


i) Explain built-in data types.

14
ii) Explain the use of break and continue.

:02
iii) What is output of following C code? Justify.

:28
main( )

/20 1
09
/11 66
{

19
int a[5] = {5, 1, 15, 20, 25};
1
01
int i, j, m;
AP

i = ++a[1];
06

j = a[1]++;
.54
CA

m = a[i++];
31
2.1

printf(“%d %d %d”, i, j, m);

14
.14

:02
14

:28
b) Write a C program to find out factorial of a number using user defined
function.
/20 1
[1 × 4 = 4]
09
/11 66
19
1

Q5) Attempt any two of the following : [2 × 5 = 10]


.54 01

a) Explain the types of array.


AP
06

b) Explain row major and column major ordering.


.14 CA

c) Write an algorithm and draw flowchart to find out sum of digits of a


31

number.
2.1

14
:02


14

:28
61
09
16
19
/20
01
/11
AP
06
.54
CA
31
2.1
.14
14

[5623]-1001 3

Downloaded by Alisha Surana ([email protected])

You might also like