0% found this document useful (0 votes)
12 views2 pages

Programming in C

The document appears to be an examination paper for a B.Sc. T.Y. (Sem-VI) course in Mathematics, specifically for Programming in C-II (MAT-605). It includes various questions related to programming concepts, such as guidelines for indentation, nesting of if-else statements, and writing programs for power series and grading students. The exam is scheduled for November/December 2022 and has a total duration of 1 hour and 30 minutes with a maximum score of 40 marks.

Uploaded by

sabilshaikh2001
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)
12 views2 pages

Programming in C

The document appears to be an examination paper for a B.Sc. T.Y. (Sem-VI) course in Mathematics, specifically for Programming in C-II (MAT-605). It includes various questions related to programming concepts, such as guidelines for indentation, nesting of if-else statements, and writing programs for power series and grading students. The exam is scheduled for November/December 2022 and has a total duration of 1 hour and 30 minutes with a maximum score of 40 marks.

Uploaded by

sabilshaikh2001
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

4A

6B
54

0
6

F6
7A

68
9D

70

BF
48

65

4A
98

60
D5

06
7A
B-2124

42

68

FF
A7
89

48
31

65

B
9

4
D5

6
B5

7A
42

0
6

A7
89
Total No. of Printed Pages:02

1A

48
31

65
29

4
5
B5

A
05
SUBJECT CODE NO:- B-2124

8
9D

7
14

56

7
F6

8
FACULTY OF SCIENCE & TECHNOLOGY

4A
98

4
3

A6
1
BF

D5
B5
05
B. Sc. T.Y. (Sem-VI)

42

68
87
06

F6

9
A

31

65
Examination November/December- 2022

98

4
51
A7

5
B5

7A
2
B

9D
Mathematics

60

4
84

06

1A

48
1
FF

98
Programming in C-II- MAT-605

53
56

D5

7A
05
A

42
B

AB
[Time: 1:30 Hours]

A6
[Max. Marks: 40]

F6

89

48
1
8

70

53
87

51
56

BF

29

D5
A

AB
54

60
Please check whether you have got the right question paper.

14
4

06
A

9
8
9D

FF

98
53
7

1
6

A7
8

5
65

42
6B
98

AB
4

0
N.B 1. All questions are compulsory.

84
D5

F6
7A

31
42

70

1
56
2. Assume the data wherever not given with justification.

BF

29
9

B5
8

5
31

4A
8

0
A6

14
9

3. Figures to the right indicate full marks.


D5

06

F6
B5

1A
42

68

53
87

A7

BF
89
1A

05
31

65

AB
54
29

84

F6
B5

7A
05

9D

51
14

56

BF
F6

48

4A
98

60
53

A6
1
BF

06
Q.1 A. Attempt any one 05
05

42

68
D

FF
B

87

A7
06

F6

89
A

31

65

6B
54
51
A7

BF

29

84
B5

7A
a. Discuss guidelines that could be followed while using indention.

9D

70
60

14

56
84

06

1A

48
b. Discuss nesting of if ________ else statements in detail.

4A
FF

98
53

6
56

A7

D5

A
05

42

68
05
B

AB
A6

87
84

06

F6

89
31

65
B. Attempt any one

54
87

51
56

A7

BF

29
B5

7A
9D
54

60
A6

14
84

06

1A

48
9D

FF

98
c. Write a program to evaluate power series.
53
87

56

A7

D5
05

42
6B
98

𝑥2 𝑥3 𝑥𝑛
AB
54

A6

84

F6

89
𝑒𝑥 = 1 + 𝑥 +
31
42

+ + ⋯ + , 0 < 𝑥 < 1.
9D

70
87

51
6

BF

29
2! 3! 𝑛!
B5
31

4A
98

54

60
A6

14
06
B5

1A
42

68
9D

FF

53
87

A7

d. Use switch statement to grade the students of an academic institution.


1A

05
31

65

6B
98

AB
54

84

F6
B5

7A

(Assume data of your choice).


05

42

9D

70

51
56

BF
1A

48
31

4A
98

60
A6
5

06
B5
05

Q.2 A. Attempt any one 10


42

68
D

FF
87

A7
F6

9
1A

31

65

6B
98

54
BF

84
B5

7A
05

42

a. Explain do statement in detail with example.


9D

70
56
06

F6

1A

48
31

4A

b. Discuss in detail the jumping out of a loop.


98

A6
A7

BF

D5
B5
05

42

68
87
06

F6

89
1A

31

65
54

B. Attempt any one:


A7

BF

29
B5

7A
05

9D
14
84

06

1A

48
FF

98

c. Write a program using for loop to print the “powers of 2” table for the power 0 to 10, both
53
56

A7

D5
05

42
6B

AB
A6

positive and negative.


84

89
31
70

FF

51
56

29

d. Write a program to calculate the sum of squares of all integers between 1 and 15 using if
B5
4A

6B

60
A6

14

statement.
1A
68

70

FF

53
87

05
65

4A

6B

AB
54

F6
7A

Q.3 A. Attempt any one: 10


68
9D

70

51
BF
48

65

4A
98

60
D5

06
7A

a. Discuss compile time initialization in detail with example.


68

FF
A7
89

48

65

b. Explain one dimensional arrays in C language.


6B
29

4
D5

7A

68

70
14

89

48

65

4A

1
53

29

D5

7A

68
AB

14

89

48

65
53

29

D5

7A
AB

1AB53142989D5487A65684A706BFF605
14

89

48
AB 98 A6 A7 05
53 9D 56 06 1A
14 54 84 BF B5
AB 29 87 A7 F6 31
89 A6 06 05 42
53 D5 56 1A 98

Q.4
14 84 BF B5
29 48 F6 9D
89 7A A7 05 31 54
D5 65 06 1A 42 87
14 68 BF B5 98 A6
29 48 4A F6 9D 56
7A 31

e.
c.
a.

d.
b.
89 70 05 42 54 84
D5 65 6B 1A 98 87 A7
48 68 FF B5 9D A6 06
7A 4A 6 31 56 BF
89 70 05 42 54 84
D5 65 6B 1A 98 87 A7 F6
48 68 FF B5 9D A6 06 05
4A 6 31 56 1A

Fill in the blanks: -


7A 70 05 54
B5 84 BF
65 42
Total = ∑30
6B 1A 87 F6
B. Attempt any one:

68 98 05 31 A7
48 4 FF B5 9 D
A6
5 06 1 42
𝑖=1 𝑥𝑖

B A
2

7A A7 60
51
31 5 48 6 84 FF B5 98
9D
65 06 42 60 31
68 BF AB 98 7A A7 54
4A 9D 65 06 51 42 87
F6 53
54 68 BF A B 98
70
6B
05
1A
14
29 87 4A F6 53 9 D5
A6
56
FF B5 89 A6 70 05 14 4 8 84
60 31 D5 56 6B 1A 29
89 7A A7
51 42 48 84 FF
60
B5 D5 6 56 06
98 7A A7 31 8 BF
AB
06 51 42 4 8 4
53 9D
54
65
68 BF AB 98 7A A 7
F6
05
14 06

2
4A F6 53 9D 65 1A
29 87
70 05 14 54 6 8 B F
89
D5
A6
56 6B 1A 29 87 4 A F6 B5
31
84 89 A6 70 05
48 FF B5 D 56 6 B 1A
42
7A A7 60 31 5 98
A sorted list in ________ is called ordered _____.

65 06 51 42 48 84 FF B5 9D
68 BF AB 98 7A A7 60 31 54
4A 9D 65 06 51 42
70
F6
05
53
14 54 68 BF A B5 9 89

1AB53142989D5487A65684A706BFF605
6B 1A 29 87 4A F6 3 D5
FF B5 89 A6 70 05 14 48
60 31 D5 56 6B 1A 29 7A
84 FF 89 6
c. Write a C program to evaluate standard deviation of given data.

51 42 48 B5
The ________ statement is an entry controlled ______ statement.
d. Write a program using a single –subscripted variable to evaluate.

AB 98 7A A7 60 31 D5
53 9D 65 06 51 42 48
98 7A
The ________ breaks the normal sequential execution of the program.

14 54 68 BF AB
87 4A F6 53 9D 65
The ________ of the inner loop does not contain any new line character.

29 0 1 5
89 A 6 7 0 5 4 48 68
6 1 2 4A
When go to statement is used many compilers generate a less _______ code

D5 56 BF AB 98 7A
48 84 F6 53 9 D5 65
7A A7 05 1 4 68
65 06 1 42 8 7 4A
68 BF AB 98
9D A 65 70
4A F6 53 6 6B
70 05 14 5 4 8
6B 1A 29 87 4A7
FF B5 89 A6 06
60 31 D5 56
10

51 42 48 84
BF
B-2124

F6
AB 98
9
7A A7
0 0
53 D5 65
68 6 B
14 48 4A FF
29 7A 60
7

You might also like