Skip to content

Offline classes at our Garia centre · New centres opening soon in prime Kolkata locations See centres

School & JEE 90072 93439 B.Sc Maths 90882 61414

University of Calcutta · CCF / NEP · 2026

CU Maths Major Sem 2 SEC-2.1 Question Paper 2026

Python Programming and Introduction to LaTeX

  • CourseMathematics Major (Honours)
  • Semester2
  • PaperSEC-2.1
  • Exam year2026
  • Full marks75

University of Calcutta

2026

MATHEMATICS — HONOURS

Paper : SEC-2.1

(Python Programming and Introduction to LaTeX)

Full Marks : 75

F(2nd Sm.)-Mathematics-H/SEC-2/CCF

The figures in the margin indicate full marks.
Candidates are required to give their answers in their own words as far as practicable.

Group - A

[Python Programming]
(Marks : 50)

  1. Answer any five questions :

    1. Write a Python program to find minimum of three number. 3
    2. For data = [8, 3, 6, 1, 9], write statements to obtain the last two elements and to replace 6 by 10. 1+2
    3. Write a Python program that accepts the radius of a circle and prints its area and circumference. 3
    4. What will be output of the following code? 3
      a = [1, 5, 3, 4]
      b = [1, 2, 5]
      print (a>b)
      print (a+b)
      print (a[::-1])
    5. Using SymPy, evaluate the symbolic expression $2x^2+3xy-y^2$ for $x=1.5$ and $y=2$. 3
    6. Use SymPy to simplify the expression $\dfrac{(x^4-1)}{(x-1)(x+1)}$. 3
    7. Write the appropriate Python code to extract the following string from s = ‘Python and Latex' : (i) and Latex \ (ii) PYTHON AND LATEX \ (iii) Python. 1+1+1
  2. Answer any seven questions :

    1. Write the output of the following code : 5
      i, j, k = 3, 0, -2
      v = i and k
      w = i or j or k
      x = i and j and k
      y = i or j and k
      z = i and j or k
      print(v, w, x, y, z)
    2. Explain with examples the list operations : (i) insert(), (ii) remove(), (iii) reverse(). 5
    3. Determine the outputs :
      1. print('Hi'*3)
      2. print(len('Python'))
      3. print(25//4 + 25%4 + 2**3). 2+1+2
    4. Write a Python code to compute $S=\displaystyle\sum_{n=1}^{30}\frac{1}{u_n^2+1}$, where $u_1=1$, $u_2=1$ and $u_{n+1}=u_n+u_{n-1}$, $n\geq2$. 5
    5. Write a Python program to generate a list of all integers between 1 and 1000 which are not divisible by 2, 3, 5. Print the list. 5
    6. Write a program in Python without using inbuilt function to sort the elements of a list in ascending order. 5
      1. Write Python codes to solve the following equations using SymPy : $x+5y+z=1$ and $x-3y+2z=3$.
      2. Write the Python code to find a value of $x$ where $\sin(x)=\cos(x)$ using SymPy. 3+2
    7. Plot the functions $f(x)=x^2$ and $g(x)=\exp(x)$ on the same graph over the interval $[-2,2]$ using a dashed line for $f(x)$ and a dotted line for $g(x)$. Also, add labels to the axes and a title to the graph. 2+2+1
    8. Write a Python function that takes two lists and returns True if they have at least one common member and print all common elements. 5
    9. What will be the output of the following program?
      1. list1=[[11, 12, 13, 14], [15, 16, 18]]
        print(list1[1][2])
      2. sum, n=0, 1
        while n<=10:
            sum +=n
            n+=2
        print(sum)
      3. for x in set ('pqr'):
            print(x*2).
        1+2+2

Group - B

[Introduction to LaTeX]
(Marks : 25)

  1. Answer any five questions :$2\times5$

    1. Which package is commonly used for mathematical symbols and colouring of text in a LaTeX document?
    2. Write LaTeX code to typeset the definite integral : \[ \int_0^{\pi}\sin(x)\,dx=2 \]
    3. Write the LaTeX command to typeset the fraction $\dfrac{a+b}{c+d}$ and cube root $\sqrt[3]{x+y}$.
    4. Mention any one optional argument with its use that can be given in
      \documentclass{article} command.
    5. Write the command in LaTeX to write the following equation involving determinant : \[ M_{12}=\begin{vmatrix}a_{21}&a_{23}\\a_{31}&a_{33}\end{vmatrix} \]
    6. Write a block of LaTeX code to display the following table :
      O1O2
      X8777
      Y7982
    7. What is the output of the following command :
      $$\prod_{n=0}^{\infty}\left(1+2^{-2^n}\right)$$
  2. Answer any three questions :

    1. Write the LaTeX source code of the following 4 lines : 5
      1. The moment of inertia ($I$), is $I=\dfrac12mr^2$.
      2. I am a student of B.Sc. Course.
      3. The angle of the prism is, $\frac{\pi}{3}$.
      4. The resistance of a filament, $R_t=R_0(1+\alpha t+\beta t^2)$.
    2. Write codes in LaTeX to typeset the following : 5 \[ \begin{aligned} x_{2^n}&=1+\frac12+\left(\frac13+\frac14\right)+\dots+\left(\frac{1}{2^{n-1}}+\dots+\frac{1}{2^n}\right)\\ &>1+\frac12+\left(\frac14+\frac14\right)+\dots+\left(\frac{1}{2^n}+\dots+\frac{1}{2^n}\right). \end{aligned} \]
    3. Write a code in LaTeX to produce the output : 5 \[ f(x)=\begin{cases} x^2, & 0\leq x\leq2,\\ -x^2, & -2\leq x<0,\\ 0, & \text{otherwise.}\end{cases} \]
    4. Write a block of LaTeX code to display : 5 \[ \begin{gathered} x+y+z=6\\ a-b+2c=3\\ 2p-q+r=5 \end{gathered} \]
    5. Write a block of LaTeX code to display the following table : 5
      MathsPhysicsChemistry
      Rian877793
      Jamima798278
      Rituraj665971
      Shrenka597770

Typed and checked by PALMATHS from the original CU question paper. Spotted a typo? Tell us on WhatsApp.

Questions students ask

Is this the real CU 2026 SEC-2.1 question paper?

Yes. This is the University of Calcutta 2026 Mathematics Major (Honours) Semester 2 paper SEC-2.1 (Python Programming and Introduction to LaTeX). PALMATHS typed every question from the original paper and checked it line by line, so you can read it on your phone or print a clean copy.

How many marks is the CU SEC-2.1 paper?

The 2026 SEC-2.1 paper is for 75 full marks. The marks for every question are shown on the right, exactly as in the original paper.

Where can I get solutions or help with this paper?

Message Biswadip Sir on WhatsApp at +91 90882 61414 for doubts on any question, or join the PALMATHS B.Sc Mathematics classes (online or offline at Garia, Kolkata). Free video lessons are on the Biswadip Sir YouTube channel.