Consider the following two C++ programs P​1​ and P2​ and two statements S1​…

UGC NET 2018

Consider the following two C++ programs P​1​ and P2​ and two statements S1​ and S2​ about the programs :

S1: P1 prints out 3
S2: P2 prints out 4 2

What can you say about the statements S1​ and S2​ ?

  1. A.

    Only S​1​ is true

  2. B.

    Only S​2​ is true

  3. C.

    Both S​1 and S2​ are true

  4. D.

    Neither S​1​ nor S2​ is true

Attempted by 69 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…