Question PSC-COND-0031
EasyWhat does the following pseudocode print?
Integer x = -12
if (x < 0)
x = -x
end if
Print x
- A.
24
- B.
-12
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Conditionals question
What does the following pseudocode print?
Integer x = -12
if (x < 0)
x = -x
end if
Print x
24
-12
Sign up free to see the answer and a step-by-step explanation.
0
12