In C++, what is the output of the following code ? int x = 5; int& ref = x; ref = 10 cout << x;
Asked in TPSC Junior System Engineer 2026
Answer under review: our editors are checking this question. Try the other TPSC Prelims previous year questions questions meanwhile.
More TPSC Prelims previous year questions questions
- Which of the following correctly describes ‘Abstract Class’ in OOP ?
- In OMT (Object Modeling Technique) methodology, which of the following models captures system behavior over time ?
- What is the key difference between OOA (Object-Oriented Analysis) and OOD (Object-Oriented Design) ?
- In C, what is the output of: printf("%d", sizeof(‘A’)) ; ?
- Which of the following is a characteristic of a pure function in functional programming ?
- In Object-Oriented Testing, which technique tests individual methods and classes in isolation ?
- Which coupling type is considered most undesirable in structured programming ?
- The recurrence T(n) = 2T(n/2) + n log n, solved using the Master Theorem, gives