WGU C960
Western Governors University
All 2 results
Sort by
![WGU C960 Discrete Math 2, Questions and answers, 100% Accurate, VERIFIED | 153 Pages](/docpics/3892810/655fd9f090dba_3892810_121_171.jpeg)
-
WGU C960 Discrete Math 2, Questions and answers, 100% Accurate, VERIFIED | 153 Pages
- Exam (elaborations) • 153 pages • 2023
-
Preach
-
- $23.49
- + learn more
1.4.3: If-else-statement 
1) 
What is the value of abs after the following lines of code are run? 
x := 2 
If ( x > 0 ) 
abs := x 
Else abs := -x 
End-if 
2 
The condition ( x > 0 ) evaluates to true because the value of x is 2. The line abs := x is executed and the 
line abs := -x is skipped. Therefore the final value of abs is 2. 
1.4.3: If-else-statement 
2) 
What is the value of abs after the following lines of code are run? 
x := -2 
If ( x > 0 ) 
abs := xElse 
abs := -x 
End-if
![(2024/250 WGU C960 Discrete Math 2, Questions and answers, 100% Accurate, VERIFIED.](/docpics/3688961/6538237cbe88b_3688961_121_171.jpeg)
-
(2024/250 WGU C960 Discrete Math 2, Questions and answers, 100% Accurate, VERIFIED.
- Exam (elaborations) • 153 pages • 2023
- Available in package deal
-
PassPoint02
-
- $11.49
- 1x sold
- + learn more
WGU C960 Discrete Math 2, Questions 
and answers, 100% Accurate, VERIFIED. 
1.4.3: If-else-statement 
1) 
What is the value of abs after the following lines of code are run? 
x := 2 
If ( x > 0 ) 
abs := x 
Else abs := -x 
End-if 
2 
The condition ( x > 0 ) evaluates to true because the value of x is 2. The line abs := x is executed and the 
line abs := -x is skipped. Therefore the final value of abs is 2. 
1.4.3: If-else-statement 
2) 
What is the value of abs after the fo...
![Verkoop je kennis op stuvia](https://www.stuvia.com/hosted-imgs/app/stock-fotos/banner_seller_big.jpg)
Did you know that on average a seller on Stuvia earns $82 per month selling study resources? Hmm, hint, hint. Discover all about earning on Stuvia