LawMint Sign in

Telangana SET (TG SET) Programming Languages and Computer Graphics Previous Year Questions

Try the preview and open any solution for a worked explanation.

Telangana SET (TG SET) practice pack

The practice pack for Telangana SET (TG SET) is coming soon to LawMint.

Question 1

Which one of the following statements about a static member function in C++ is correct?

Select one answer

Question 2

Consider the object-oriented programming (OOP) features listed in List I and their corresponding primary benefits listed in List II.

List I
(Object-Oriented Programming Feature)
List II
(Primary Benefit)
a. Encapsulationi. Reduces complexity by exposing only essential features
b. Abstractionii. Promotes code reuse
c. Inheritanceiii. Provides a uniform interface through dynamic binding
d. Polymorphismiv. Hides implementation details and protects data

Which one of the following gives the correct matching?

Select one answer

Question 3

Which one of the following line clipping algorithms repeatedly subdivides a line segment and uses region codes to determine the visible portion of the line efficiently?

Select one answer

Question 4

A graphics system applies the following sequence of geometric transformations to an object:
I. Scale by a factor of 2.
II. Rotate by 90°
III. Translate by (5, 3)
Which one of the following statements is correct?

Select one answer

Question 5

Consider the Computer Graphics Curves listed in List I and their corresponding mathematical basis in List II.

List I (Curve )List II (Mathematical basis)
a. Bezier Curvei. Defined by linear segments joining consecutive vertices; has zero curvature and no smoothness at the vertices.
b. Interpolatingii. Represented using piecewise cubic polynomials (e.g., cubic splines).
c. Splineiii. Defined by two end points and the tangent vectors at those points.
d. Polygonal Curveiv. Constructed using Bernstein polynomials as blending functions.

Which one of the following gives the correct matching?

Select one answer

Question 6

Which of the following transformations cannot be represented using a (2 × 2) matrix alone but requires homogeneous coordinates?

Select one answer

Question 7

In C++, consider the following code:

Base *p = new Derived();
p->display();

Under which of the following conditions will the call to display() invoke Derived::display() at run time?

Select one answer

Question 8

A software company is developing a graphics editor in which each shape (such as Circle, Rectangle, and Triangle) provides its own implementation of the draw() method. The design should also allow new shapes to be added without modifying the existing code. Which object-oriented programming (OOP) principle best supports this requirement?

Select one answer

Question 9

Consider the following C++ program. Assume pre-C++17 semantics with no compiler optimizations or copy elision of temporaries and return values.

class Box {
public:
    Box() { }
    Box(const Box&);   // Copy constructor
};
Box test(Box b)
{
    Box a(b);
    Box c = a;
    return c;
}
int main()
{
    Box d;
    Box e = test(test(d));
}

How many times is the copy constructor invoked during the execution of the program?

Select one answer

Question 10

Consider the following C expressions, where A is declared as an array of integers. Assume that * denotes the dereference (indirection) operator and & denotes the address-of operator.
I. A[1]
II. &A
III. *A
IV. *(A + 1)
Which of the following expressions are l-values (i.e., expressions that designate memory locations)?

Select one answer

Continue practising

The practice pack for Telangana SET (TG SET) is coming soon to LawMint.

Telangana SET (TG SET) practice pack

The practice pack for Telangana SET (TG SET) is coming soon to LawMint.