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?
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. Encapsulation | i. Reduces complexity by exposing only essential features |
| b. Abstraction | ii. Promotes code reuse |
| c. Inheritance | iii. Provides a uniform interface through dynamic binding |
| d. Polymorphism | iv. Hides implementation details and protects data |
Which one of the following gives the correct matching?
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?
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?
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 Curve | i. Defined by linear segments joining consecutive vertices; has zero curvature and no smoothness at the vertices. |
| b. Interpolating | ii. Represented using piecewise cubic polynomials (e.g., cubic splines). |
| c. Spline | iii. Defined by two end points and the tangent vectors at those points. |
| d. Polygonal Curve | iv. Constructed using Bernstein polynomials as blending functions. |
Which one of the following gives the correct matching?
Question 6
Which of the following transformations cannot be represented using a (2 × 2) matrix alone but requires homogeneous coordinates?
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?
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?
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?
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)?
Previous papers with Programming Languages and Computer Graphics questions
Telangana SET (TG SET) practice pack
The practice pack for Telangana SET (TG SET) is coming soon to LawMint.