Menu Close

Numerical Analysis and Computer Programming – Mathematics Optional PYQs (2008–2026)

Here are all 114 Numerical Analysis and Computer Programming questions asked in UPSC Mathematics Optional Paper II from 2008 to 2026, arranged under the 7 topics of the official syllabus. Within each topic the latest questions come first.

Each question ends with a code such as [2024/10m/1a] – the year, the marks and the question number in the paper.

Topic-wise weightage graph of Numerical Analysis and Computer Programming, Mathematics Optional Paper II, 2013–2026 vs 2022–2026
Topic-wise weightage of Numerical Analysis and Computer Programming (Paper II) – share of marks, 2013–2026 (white) vs 2022–2026 (black).

6.1] Solution of equations

28 questions

  1. By using the Newton-Raphson iterative formula, establish the formula xi+1=13(2xi+Nxi2) to find the cube root of N. Use this formula, if established, to find the cube root of 63 correct to four decimal places with the initial approximation 3.9. [2026/10m/5b]

  2. Solve the following system of linear equations by Gauss-Seidel method : 10x+2y+z=92x+20y−2z=−44−2x+3y+10z=22 [2025/10m/5b]

  3. Solve the following system of linear equations by Gauss-Jordan method : 2x+3y−z=54x+4y−3z=32x−3y+2z=2 [2024/10m/5b]

  4. Solve the system of linear equations 7x1−x2+2x3=112x1+8x2−x3=9x1−2x2+9x3=7 correct up to 4 significant figures by the Gauss-Seidel iterative method. Take initially guessed solution as x1=x2=x3=0. [2023/15m/6b]

  5. Compute a root of the equation log10(2x+1)−x2+3=0, in the interval [0,3], by Regula-Falsi method, correct to 6 decimal places. [2023/15m/8b]

  6. Solve, by Gauss elimination method, the system of equations 2x+2y+4z=18x+3y+2z=133x+y+3z=14 [2022/10m/5b]

  7. Find a positive root of the equation 3x=1+cosx by a numerical technique using initial values 0,π2; and further improve the result using Newton-Raphson method correct to 8 significant figures. [2021/10m/5b]

  8. Solve the system of equations 3x1+9x2−2x3=114x1+2x2+13x3=244x1−2x2+x3=−8 correct up to 4 significant figures by using Gauss-Seidel method after verifying whether the method is applicable in your transformed form of the system. [2021/15m/7b]

  9. Show that the equation : f(x)=cosπ(x+1)8+0.148x−0.9062=0 has one root in the interval (−1,0) and one in (0,1). Calculate the negative root correct to four decimal places using Newton-Raphson method. [2020/10m/5b]

  10. For the solution of the system of equations : 4x+y+2z=43x+5y+z=7x+y+3z=3 set up the Gauss-Seidel iterative scheme and iterate three times starting with the initial vector X(0)=0. Also find the exact solutions and compare with the iterated solutions. [2020/15m/6b]

  11. Apply Newton-Raphson method, to find a real root of transcendental equation xlog10x=1.2, correct to three decimal places. [2019/10m/5b]

  12. Apply Gauss-Seidel iteration method to solve the following system of equations : 2x+y−2z=17,3x+20y−z=−18,2x−3y+20z=25, correct to three decimal places. [2019/15m/7b]

  13. Write down the basic algorithm for solving the equation : xex−1=0 by bisection method, correct to 4 decimal places. [2018/10m/5e]

  14. Explain the main steps of the Gauss-Jordan method and apply this method to find the inverse of the matrix [266286268]. [2017/10m/5b]

  15. Write an algorithm in the form of a flow chart for Newton-Raphson method. Describe the cases of failure of this method. [2017/15m/8b]

  16. Find the solution of the system 10x1−2x2−x3−x4=3−2x1+10x2−x3−x4=15−x1−x2+10x3−2x4=27−x1−x2−2x3+10x4=−9 using Gauss-Seidel method (make four iterations). [2015/15m/8b]

  17. Apply Newton-Raphson method to determine a root of the equation cosx−xex=0 correct up to four decimal places. [2014/10m/5b]

  18. Solve the system of equations 2x1−x2=7−x1+2x2−x3=1−x2+2x3=1 using Gauss-Seidel iteration method (Perform three iterations). [2014/15m/6b]

  19. Develop an algorithm for Newton — Raphson method to solve f(x)=0 starting with initial iterate x0, n be the number of iterations allowed, eps be the prescribed relative error and delta be the prescribed lower bound for f′(x). [2013/20m/7a]

  20. Use Newton-Raphson method to find the real root of the equation 3x=cosx+1 correct to four decimal places. [2012/12m/5b]

  21. Solve the following system of simultaneous equations, using Gauss-Seidel iterative method : 3x+20y−z=−1820x+y−2z=172x−3y+20z=25. [2012/20m/6c]

  22. Find the positive root of the equation 10xe−x2−1=0 correct up to 6 decimal places by using Newton-Raphson method. Carry out computations only for three iterations. [2010/12m/5c]

  23. Given the system of equations 2x+3y=12x+4y+z=22y+6z+Aw=44z+Bw=C State the solvability and uniqueness conditions for the system. Give the solution when it exists. [2010/20m/7a]

  24. The equation x2+ax+b=0 has two real roots α and β. Show that the iterative method given by : xk+1=−(axk+b)/xk,k=0,1,2,…… is convergent near x=α, if |α|>|β|. [2009/6m/5c(i)]

  25. Develop an algorithm for Regula-Falsi method to find a root of f(x)=0 starting with two initial iterates x0 and x1 to the root such that sign (f(x0))≠ sign (f(x1)). Take n as the maximum number of iterations allowed and eps be the prescribed error. [2009/30m/7a]

  26. Find the smallest positive root of equation xex−cosx=0 using regula-falsi method. Do three iterations. [2008/12m/5c]

  27. Apply Gauss-Seidel method to calculate x, y, z from the system: −x−y+6z=426x−y−z=11.33−x+6y−z=32 with initial values (4.67,7.62,9.05). Carry out computations for two iterations. [2008/15m/7a(ii)]

  28. Draw a flow chart for solving equation F(x)=0 correct to five decimal places by Newton-Raphson method. [2008/30m/7b]

6.2] Interpolation

13 questions

  1. Find the unique polynomial of degree 2 or less which fits the following data : x013f(x)1355 Also obtain the bound on the truncation error. [2025/15m/7b]

  2. Using Newton’s forward difference formula for interpolation, estimate the value of f(2.5) from the following data : x123456f(x)0182764125 [2024/15m/8b]

  3. Derive Newton’s backward difference interpolation formula and also do error analysis. [2021/15m/8b]

  4. Write the three point Lagrangian interpolating polynomial relative to the points x0, x0+ε and x1. Then by taking the limit ε→0, establish the relation f(x)=(x1−x)(x+x1−2x0)(x1−x0)2f(x0)+(x−x0)(x1−x)(x1−x0)f′(x0)+(x−x0)2(x1−x0)f(x1)+E(x) where E(x)=16(x−x0)2(x−x1)f‴(ξ) is the error function and min.(x0,x0+ε,x1)<ξ<max.(x0,x0+ε,x1) [2020/15m/8b]

  5. Using Newton’s forward difference formula find the lowest degree polynomial ux when it is given that u1=1, u2=9, u3=25, u4=55 and u5=105. [2018/10m/5b]

  6. For given equidistant values u−1, u0, u1 and u2, a value is interpolated by Lagrange’s formula. Show that it may be written in the form ux=yu0+xu1+y(y2−1)3!Δ2u−1+x(x2−1)3!Δ2u0, where x+y=1. [2017/15m/6b]

  7. Let f(x)=e2xcos3x, for x∈[0,1]. Estimate the value of f(0.5) using Lagrange interpolating polynomial of degree 3 over the nodes x=0, x=0.3, x=0.6 and x=1. Also, compute the error bound over the interval [0,1] and the actual error E(0.5). [2016/20m/6c]

  8. Find the Lagrange interpolating polynomial that fits the following data : x−1234f(x)−1113169 Find f(1.5). [2015/20m/6c]

  9. In an examination, the number of students who obtained marks between certain limits were given in the following table : Marks30−4040−5050−6060−7070−80No. of Students3142513531 Using Newton forward interpolation formula, find the number of students whose marks lie between 45 and 50. [2013/10m/5c]

  10. Find dydx at x=0.1 from the following data : x0.10.20.30.4y0.99750.99000.97760.9604 [2012/20m/7a]

  11. Draw a flow chart for Lagrange’s interpolation formula. [2011/20m/7c]

  12. Using Lagrange interpolation formula, calculate the value of f(3) from the following table of values of x and f(x) : x012456f(x)114155619 [2009/15m/7b]

  13. The following values of the function f(x)=sinx+cosx are given: x10∘20∘30∘f(x)1.15851.28171.3360 Construct the quadratic interpolating polynomial that fits the data. Hence calculate f(π12). Compare with exact value. [2008/15m/7a(i)]

6.3] Numerical integration

16 questions

  1. Evaluate the integral ∫00.8f(x)dx, where f(x)=0.2+25x−200x2+675x3−900x4+400x5 by using single application of Simpson’s 38 rule. [2026/15m/7b]

  2. Find the constant p and error term for the quadrature formula ∫x0x1f(x)dx=h2(f0+f1)+ph2(f0′−f1′) where x0+h=x1, f0=f(x0), f1=f(x1) and prime (′) represents derivative with respect to x. Hence deduce the composite rule for integrating ∫abf(x)dx,a=x0<x1<⋯<xN=b [2025/15m/8b]

  3. Integrate f(x)=5x3−3x2+2x+1 from x=−2 to x=4 using (i) Simpson’s 38 rule with width h=1, and (ii) Trapezoidal rule with width h=1. [2024/15m/7b]

  4. The velocity of a train which starts from rest is given by the following table, the time being reckoned in minutes from the start and the velocity in km/hour : t(minutes)2468101214161820v(km/hour)1628.84046.451.23217.683.20 Using Simpson’s 13rd rule, estimate approximately in km the total distance run in 20 minutes. [2022/15m/7b]

  5. Find a quadrature formula ∫01f(x)dxx(1−x)=α1f(0)+α2f(12)+α3f(1) which is exact for polynomials of highest possible degree. Then use the formula to evaluate ∫01dxx−x3 (correct up to three decimal places). [2020/20m/7b]

  6. Draw a flow chart and write a basic algorithm (in FORTRAN/C/C++) for evaluating y=∫06dx1+x2 using Trapezoidal rule. [2019/10m/5e]

  7. Time (Minutes)2468101214161820Speed (Km/h)10182529322011528.5 Starting from rest in the beginning, the speed (in Km/h) of a train at different times (in minutes) is given by the above table : Using Simpson’s 13rd rule, find the approximate distance travelled (in Km) in 20 minutes from the beginning. [2018/10m/5d]

  8. Find the values of the constants a, b, c such that the quadrature formula ∫ohf(x)dx=h[af(o)+bf(h3)+cf(h)] is exact for polynomials of as high degree as possible, and hence find the order of the truncation error. [2018/15m/7b]

  9. Derive the formula ∫abydx=3h8[(y0+yn)+3(y1+y2+y4+y5+⋯+yn−1)+2(y3+y6+⋯+yn−3)]. Is there any restriction on n? State that condition. What is the error bound in the case of Simpson’s 38 rule? [2017/20m/7b]

  10. For an integral ∫−11f(x)dx, show that the two-point Gauss quadrature rule is given by ∫−11f(x)dx=f(13)+f(−13). Using this rule, estimate ∫242xexdx. [2016/15m/7c]

  11. Use five subintervals to integrate ∫01dx1+x2 using trapezoidal rule. [2014/10m/5c]

  12. Draw a flowchart for Simpson’s one-third rule. [2014/15m/7b]

  13. The velocity of a train which starts from rest is given in the following table. The time is in minutes and velocity is in km/hour. t2468101214161820v1628.84046.451.232.017.683.20 Estimate approximately the total distance run in 30 minutes by using composite Simpson’s 13 rule. [2013/15m/7c]

  14. Calculate ∫210dx1+x (upto 3 places of decimal) by dividing the range into 8 equal parts by Simpson’s 13rd Rule. [2011/12m/5c]

  15. A solid of revolution is formed by rotating about the x-axis, the area between the x-axis, the line x=0 and x=1 and a curve through the points with the following co-ordinates : x.00.25.50.751y1.9896.9589.9089.8415 Find the volume of the solid. [2011/20m/7a]

  16. Find the value of the integral ∫15log10xdx by using Simpson’s 13-rule correct up to 4 decimal places. Take 8 subintervals in your computation. [2010/20m/7b]

Cover of UPSC Prelims Topic-wise PYQs eBook with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ eBook covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from.

View the BookDownload Free Sample

6.4] Numerical solution of ODEs

9 questions

  1. Consider the initial value problem : dydx=1+yx, y(1)=1, h=1 (Step-size) (i) Apply the classical fourth order Runge-Kutta method to approximate the solution y(2). (ii) Use Euler’s method to find y(2) and y(3). [2026/15m/8b]

  2. Given dydx=y2−xy2+x with initial condition y=1 at x=0. Find the value of y for x=0.4 by Euler’s method, correct to 4 decimal places, taking step length h=0.1. [2023/10m/5b]

  3. Using Runge-Kutta method of fourth order, solve the differential equation dydx=x+y2 with y(0)=1, at x=0.2. Use four decimal places for calculation and step length 0.1. [2022/15m/8b]

  4. Using Runge-Kutta method of fourth order, solve dydx=y2−x2y2+x2 with y(0)=1 at x=0.2. Use four decimal places for calculation and step length 0.2. [2019/10m/5d]

  5. Solve the initial value problem dydx=x(y−x), y(2)=3 in the interval [2,2.4] using the Runge-Kutta fourth-order method with step size h=0.2. [2015/15m/7b]

  6. Use Runge-Kutta formula of fourth order to find the value of y at x=0.8, where dydx=x+y, y(0.4)=0.41. Take the step length h=0.2. [2014/20m/6c]

  7. Use Euler’s method with step size h=0.15 to compute the approximate value of y(0.6), correct up to five decimal places from the initial value problem y′=x(y+x)−2y(0)=2 [2013/15m/7b]

  8. Provide a computer algorithm to solve an ordinary differential equation dydx=f(x,y) in the interval [a,b] for n number of discrete points, where the initial value is y(a)=α, using Euler’s method. [2012/12m/5c]

  9. Find the value of y(1.2) using Runge-Kutta fourth order method with step size h=0.2 from the initial value problem : y′=xy,y(1)=2. [2009/15m/7c]

6.5] Number systems and representation

12 questions

  1. Find the decimal equivalent of the following floating point 10-bit numbers with 5 bits as fractional part : 1010111011 and 0100101010. [2026/8m/6b(i)]

  2. Evaluate (11001.1011)10+(33.24)8+(101101)2 and convert the final result in hexadecimal system. [2026/7m/6b(ii)]

  3. (i) Convert the number (3479)10 into binary system and the number (7AE.9F)16 into decimal system. (ii) Determine the truth table for the Boolean function F(x,y,z)=(x+y+z′)(x′+y′) Also derive the full disjunctive normal form of F(x,y,z) from the truth table. [2025/10m/5c]

  4. (i) Determine the decimal equivalent in sign magnitude form of (8D)16 and (FF)16. (ii) Determine the decimal equivalent of (9B2.1A)16. [2024/10m/5c]

  5. Evaluate, using the binary arithmetic, the following numbers in their given system : (i) (634.235)8−(132.223)8 (ii) (7AB.432)16−(5CA.D61)16 [2023/10m/5c]

  6. (i) Convert the number (1093.21875)10 into octal and the number (1693.0628)10 into hexadecimal systems. (ii) Express the Boolean function F(x,y,z)=xy+x′z in a product of maxterms form. [2022/10m/5c]

  7. (i) Convert (3798.3875)10 into octal and hexadecimal equivalents. (ii) Obtain the principal conjunctive normal form of (¬P→R)∧(Q⇄P). [2021/10m/5c]

  8. Find the equivalent numbers given in a specified number to the system mentioned against them : (i) Integer 524 in binary system. (ii) 101010110101.101101011 to octal system. (iii) decimal number 5280 to hexadecimal system. (iv) Find the unknown number (1101.101)8→(?)10. [2019/15m/6b]

  9. Find the equivalent of numbers given in a specified number system to the system mentioned against them. (i) (111011.101)2 to decimal system (ii) (1000111110000.00101100)2 to hexadecimal system (iii) (C4F2)16 to decimal system (iv) (418)10 to binary system. [2018/15m/6b]

  10. Convert the following decimal numbers to equivalent binary and hexadecimal numbers : (i) 4096 (ii) 0.4375 (iii) 2048.0625 [2016/10m/5d]

  11. (i) Compute (3205)10 to the base 8. (ii) Let A be an arbitrary but fixed Boolean algebra with operations ∧, ∨ and ′ and the zero and the unit element denoted by 0 and 1 respectively. Let x,y,z,…… be elements of A. If x,y∈A be such that x∧y=0 and x∨y=1 then prove that y=x′. [2011/12m/5d]

  12. Find the decimal equivalent of (357.32)8. [2009/6m/5d(ii)]

6.6] Computer systems, logic gates and Boolean algebra

25 questions

  1. Consider the logic circuit L : [Figure: logic circuit L with inputs A, B, C; the first AND gate takes A, B, C; the second AND gate takes A, B‾ (through a NOT gate) and C; the third AND gate takes A‾ (through a NOT gate) and B; the outputs of the three AND gates feed an OR gate whose output is Y] (i) Express Y as a Boolean expression. (ii) Write 8-bit special sequences for A, B and C. (iii) Find the truth table of L using 8-bit special sequences. [2026/10m/5c]

  2. (i) Convert the number (3479)10 into binary system and the number (7AE.9F)16 into decimal system. (ii) Determine the truth table for the Boolean function F(x,y,z)=(x+y+z′)(x′+y′) Also derive the full disjunctive normal form of F(x,y,z) from the truth table. [2025/10m/5c]

  3. Simplify the Boolean function F(x,y,z)=xyz+x′yz+xy′z+xyz′ and draw the corresponding GATE network. [2025/15m/6b]

  4. Draw the logical circuit for the Boolean expression Y=ABC‾+BC‾+A‾B. Also, obtain the output Y (truth table) for the three input bit sequences : A=10001111, B=00111100, C=11000100 [2024/15m/6b]

  5. (i) Find the conjunctive normal form (CNF) of the following Boolean function : f(x,y,z,t)=x⋅y⋅z+x‾⋅y⋅(t+z‾) \(ii\) Express the Boolean function f(x,y,z)=x+(x‾⋅y‾+x‾⋅z)¯+z in disjunctive normal form (DNF) and construct the truth table for the function. [2023/15m/7a]

  6. (i) Convert the number (1093.21875)10 into octal and the number (1693.0628)10 into hexadecimal systems. (ii) Express the Boolean function F(x,y,z)=xy+x′z in a product of maxterms form. [2022/10m/5c]

  7. Find a combinatorial circuit corresponding to the Boolean function f(x,y,z)=[x⋅(y‾+z)]+y and write the input/output table for the circuit. [2022/15m/6b]

  8. (i) Convert (3798.3875)10 into octal and hexadecimal equivalents. (ii) Obtain the principal conjunctive normal form of (¬P→R)∧(Q⇄P). [2021/10m/5c]

  9. Obtain the Boolean function F(x,y,z) based on the table given below. Then simplify F(x,y,z) and draw the corresponding GATE network : xyzF(x,y,z)11111101101110000111010000100000 [2021/15m/6b]

  10. Let g(w,x,y,z)=(w+x+y)(x+y‾+z)(w+y‾) be a Boolean function. Obtain the conjunctive normal form for g(w,x,y,z). Also express g(w,x,y,z) as a product of maxterms. [2020/10m/5c]

  11. Given the Boolean expression X=AB+ABC+AB‾C‾+AC‾ (i) Draw the logical diagram for the expression. (ii) Minimize the expression. (iii) Draw the logical diagram for the reduced expression. [2019/15m/8a]

  12. Simplify the boolean expression : (a+b)⋅(b‾+c)+b⋅(a‾+c‾) by using the laws of boolean algebra. From its truth table write it in minterm normal form. [2018/15m/8a]

  13. Write the Boolean expression z(y+z)(x+y+z) in its simplest form using Boolean postulate rules. Mention the rules used during simplification. Verify your result by constructing the truth table for the given expression and for its simplest form. [2017/10m/5c]

  14. Let A, B, C be Boolean variables, A‾ denote complement of A, A+B is an expression for A OR B and A⋅B is an expression for A AND B. Then simplify the following expression and draw a block diagram of the simplified expression, using AND and OR gates. A⋅(A+B+C)⋅(A‾+B+C)⋅(A+B‾+C)⋅(A+B+C‾). [2016/15m/8c]

  15. Find the principal (or canonical) disjunctive normal form in three variables p, q, r for the Boolean expression ((p∧q)→r)∨((p∧q)→−r). Is the given Boolean expression a contradiction or a tautology? [2015/10m/5c]

  16. Use only AND and OR logic gates to construct a logic circuit for the Boolean expression z=xy+uv. [2014/10m/5d]

  17. For any Boolean variables x and y, show that x+xy=x. [2014/15m/8b]

  18. (i) Compute (3205)10 to the base 8. (ii) Let A be an arbitrary but fixed Boolean algebra with operations ∧, ∨ and ′ and the zero and the unit element denoted by 0 and 1 respectively. Let x,y,z,…… be elements of A. If x,y∈A be such that x∧y=0 and x∨y=1 then prove that y=x′. [2011/12m/5d]

  19. Find the logic circuit that represents the following Boolean function. Find also an equivalent simpler circuit : xyzf(x,y,z)11111100101010000111010000100000 [2011/20m/7b]

  20. (i) Suppose a computer spends 60 per cent of its time handling a particular type of computation when running a given program and its manufacturers make a change that improves its performance on that type of computation by a factor of 10. If the program takes 100 sec to execute, what will its execution time be after the change ? (ii) If A⊕B=AB′+A′B, find the value of x⊕y⊕z. [2010/12m/5d]

  21. (i) Find the hexadecimal equivalent of the decimal number (587632)10 (ii) For the given set of data points (x1,f(x1)),(x2,f(x2)),……,(xn,f(xn)) write an algorithm to find the value of f(x) by using Lagrange’s interpolation formula. (iii) Using Boolean algebra, simplify the following expressions (i) a+a′b+a′b′c+a′b′c′d+…… (ii) x′y′z+yz+xz where x′ represents the complement of x. [2010/20m/7c]

  22. Find the values of two valued boolean variables A, B, C, D by solving the following simultaneous equations : A‾+AB=0AB=ACAB+AC‾+CD=C‾D where x‾ denotes the complement of x. [2009/6m/5c(ii)]

  23. Realize the following expression by using NAND gates only : g=(a‾+b‾+c)d‾(a‾+e)f where x‾ denotes the complement of x. [2009/6m/5d(i)]

  24. State the principle of duality in Boolean algebra and given the dual of the Boolean expressions (X+Y)⋅(X¯⋅Z¯)⋅(Y+Z) and X⋅X¯=0 [2008/6m/5d(i)]

  25. Represent (A¯+B¯+C¯)(A+B¯+C)(A+B+C¯) in NOR to NOR logic network. [2008/6m/5d(ii)]

6.7] Algorithms and flow charts

11 questions

  1. Draw a flow chart and write a basic algorithm (in FORTRAN/C/C++) for evaluating y=∫06dx1+x2 using Trapezoidal rule. [2019/10m/5e]

  2. Write down the basic algorithm for solving the equation : xex−1=0 by bisection method, correct to 4 decimal places. [2018/10m/5e]

  3. Write an algorithm in the form of a flow chart for Newton-Raphson method. Describe the cases of failure of this method. [2017/15m/8b]

  4. Draw a flowchart for Simpson’s one-third rule. [2014/15m/7b]

  5. Develop an algorithm for Newton — Raphson method to solve f(x)=0 starting with initial iterate x0, n be the number of iterations allowed, eps be the prescribed relative error and delta be the prescribed lower bound for f′(x). [2013/20m/7a]

  6. Provide a computer algorithm to solve an ordinary differential equation dydx=f(x,y) in the interval [a,b] for n number of discrete points, where the initial value is y(a)=α, using Euler’s method. [2012/12m/5c]

  7. In a certain examination, a candidate has to appear for one major and two minor subjects. The rules for declaration of results are : marks for major are denoted by M1 and for minors by M2 and M3. If the candidate obtains 75% and above marks in each of the three subjects, the candidate is declared to have passed the examination in first class with distinction. If the candidate obtains 60% and above marks in each of the three subjects, the candidate is declared to have passed the examination in first class. If the candidate obtains 50% or above in major, 40% or above in each of the two minors and an average of 50% or above in all the three subjects put together, the candidate is declared to have passed the examination in second class. All those candidates, who have obtained 50% and above in major and 40% or above in minor, are declared to have passed the examination. If the candidate obtains less than 50% in major or less than 40% in any one of the two minors, the candidate is declared to have failed in the examinations. Draw a flow chart to declare the results for the above. [2012/20m/7c]

  8. Draw a flow chart for Lagrange’s interpolation formula. [2011/20m/7c]

  9. (i) Find the hexadecimal equivalent of the decimal number (587632)10 (ii) For the given set of data points (x1,f(x1)),(x2,f(x2)),……,(xn,f(xn)) write an algorithm to find the value of f(x) by using Lagrange’s interpolation formula. (iii) Using Boolean algebra, simplify the following expressions (i) a+a′b+a′b′c+a′b′c′d+…… (ii) x′y′z+yz+xz where x′ represents the complement of x. [2010/20m/7c]

  10. Develop an algorithm for Regula-Falsi method to find a root of f(x)=0 starting with two initial iterates x0 and x1 to the root such that sign (f(x0))≠ sign (f(x1)). Take n as the maximum number of iterations allowed and eps be the prescribed error. [2009/30m/7a]

  11. Draw a flow chart for solving equation F(x)=0 correct to five decimal places by Newton-Raphson method. [2008/30m/7b]

Cover of UPSC Mains Topic-wise and Year-wise PYQs eBook (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ eBook (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often.

View the BookDownload Free Sample

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error

« Previous: Partial Differential Equations  |  Next: Mechanics and Fluid Dynamics »

Back to: Mathematics Optional PYQs – Topic-wise | Also see: Mathematics Optional year-wise question papers

Last updated: 30 October 2026