Model Questions 1
Model Questions 1
ge
input n and check that it has two convergent sub-sequence.
6
(d) Plot first n terms of the sequence {xn }, where xn+1 = 1+x for inputs n and
ll e
n
x1 . Hence check that it is convergent.
Co
(e) Plot first n terms of the sequence {xn }, where xn = 1 + 12 + 13 + ... + + n1 for
input n and hence check that it is divergent.
(f) Plot(bar diagram) first n terms of the sequence {xn }, where xn = sin nπ
aj
4
for
input n and hence check that it has five convergent sub-sequences.
R
n
(g) Plot(bar diagram) first n terms of the sequence {xn }, where xn = n(−1) for
al
input n and hence check that it has one convergent sub-sequence and one
ad
divergent sub-sequence.
(e) P
Determine limit of the ratio of the (n + 1)-th term and n-th term of the series
ish
un , where, un = n1 by plotting the same for n = 1, 2, ..., N , where, N is an
input from keyboard. Plotting the sum of first n terms for n = 1, 2, ..., N ,
ah
where, N is an input from keyboard, check that this series is divergent.
:M
(f) Determine limit of the ratio of the (n + 1)-th term and n-th term of the series
un , where, un = n12 by plotting the same for n = 1, 2, ..., N , where, N is
P
ti:
an input from keyboard. Plotting the sum of first n terms for n = 1, 2, ..., N ,
ai
P
(g) Determine limit of the n-th root of the n-th term of the series un , where,
1
un = n2 by plotting the same for n = 1, 2, ..., N , where, N is an input from
ar
ti−1
X
(i) Plot first n terms of the sequence {xn }, where xn = for inputs
(i − 1)!
.M
i=1
n and t. n
t2(i−1)
X
Dr
i+1
(j) Plot first n terms of the sequence {xn }, where xn = (−1) =
i=1
(2(i − 1))!
t2 t4 t6 t2(n−1)
1− + − + ... + (−1)n+1 for inputs n and t.
2! 4! 6! (2(n − 1))!
n 2i−1
i+1 t
X
(k) Plot first n terms of the sequence {xn }, where xn = (−1) =
i=1
(2i − 1)!
t3 t5 t7 n+1 t2n−1
t − + − + ... + (−1) for inputs n and t.
3! 5! 7! (2n − 1)!
(l) Plot(bar diagram) first n terms of the sequence {xn }, where xn = cos nπ 4
for
input n and hence check that it has five convergent sub-sequences.
1
Prepared by: Dr. Manas Kumar Maiti, Mahishadal Raj College. For any error/ambiguity M:7908210880. 2
ge
(iv) Write a script file to read a positive octal integer and convert it into equivalent
ll e
decimal number.
(v) Write a script file to read a positive octal integer and convert it into equivalent
Co
binary number.
(vi) Write a script file to read a positive binary integer and convert it into equiv-
aj
alent decimal number.
R
(vii) Write a script file to read a positive binary integer and convert it into equiv-
alent octal number.
al
(viii) Write a script file to read a set of 2D-points (x-values and corresponding
ad
y-values) and draw the curve through the points.
ish
(ix) Write a script file to draw the curve e(ax+b) for a = 1, 1.5, 2 and b = 2 in one
figure, i.e., multiple plot. The domain of definition of the function, i.e., the
ah
range of x is an input.
(x) Write a script file to draw the curve e(ax+b) for a = 1, 1.5, 2 and b = 1, 1.5, 2
:M
and store the curve in a 3 × 3 matrix plot. The domain of definition of the
ti:
1, 1.5, 2 and store the curve in a 3 × 3 matrix plot. The domain of definition
M
(xii) Write a script file to draw the curve cos (ax + b) for a = 1, 1.5, 2 and b =
1, 1.5, 2, 2.5 and store the curve in a 3 × 4 matrix plot. The domain of
um
1, 1.5, 2, 2.5 and store the curve in a 3 × 4 matrix plot. The domain of
as
(xv) Write a script file to draw the polar curve r = a(1 + cos θ) for a = 1, 2, 3 in
one figure, i.e., multiple plot.
(xvi) Write a script file to draw the polar curve r = a(1 + cos θ) for a = 1, 2, 3 in
Dr
a matrix plot.
(xvii) Write a script file to draw the polar curve r = a(1 − cos θ) for a = 1, 2, 3 in
one plot.
(xviii) Write a script file to draw the polar curve r = a + b cos θ for a = 1, 2, b =
1.5, 2.5 in one plot.
(xix) Write a script file to draw the polar curve r = a + b cos θ for a = 1, 2, b =
1.5, 2.5, 3 in a 2 × 3 matrix plot.
(xx) Write a script file to draw the polar curve r = aemθ for a = 1, 2, m =
1.5, 2.5, 3 in a 2 × 3 matrix plot.
Prepared by: Dr. Manas Kumar Maiti, Mahishadal Raj College. For any error/ambiguity M:7908210880. 3
(xxi) Write a script file to draw the curve y = kx5 for six input values of k and
range of x in a 2 × 3 matrix plot.
x2 y 2 z 2
(xxii) Write a script file to draw the surface 2 + 2 − 2 for inputs a, b, c.
a b c
(xxiii) Read a list of numbers and find their sum, product, maximum, and minimum
using library function.
(xxiv) Read a list of numbers and sort the list using library function. Hence find the
ge
maximum and minimum of the list.
ll e
(xxv) Read a list of numbers and find the maximum and minimum of the numbers
between m-th and n-th position, i.e., if {x1 , x2 , ..., xN } be the input list
Co
determine the minimum and maximum of the sub-list {xm , xm+1 , ..., xn } for
inputs m and n, where 1 ≤ m < n ≤ N , using library function.
aj
(xxvi) Read a list of numbers and sort the numbers between m-th and n-th position,
R
i.e., if {x1 , x2 , ..., xN } be the input list sort the sub-list {xm , xm+1 , ..., xn }
for inputs m and n, where 1 ≤ m < n ≤ N , using library function.
al
(xxv) Read a matrix of order m × N and find the sum and product of its k-th row
ad
using library function.
ish
(xxvi) Read a matrix of order m × N and find the sum and product of its k-th
column using library function.
ah
(xxvii) Read a matrix of order m × N and find the minimum and maximum of its
k-th row using library function.
:M
(xxviii) Read a matrix of order m × N and find the minimum and maximum of its
ti:
(xxx) Read a matrix of order m × N and sort its k-th row using library function.
M
ar
um
K
as
an
.M
Dr