What is the value of x and w at the output? a) x = 1 and w = -1 b) x = 2 and w =
ID: 3834195 • Letter: W
Question
What is the value of x and w at the output? a) x = 1 and w = -1 b) x = 2 and w = 0 c) x = 2 and w = -1 d) x = 1 and w = 0 What is the result of the following statement? a) -6 b) -7 c) -5 d) -8 What is the value of y if the integer value of x changes from -2 to 3 (x = -2 -1 0 1 2 3) a) 4 0 1 5 0 0 b) 4 0 1 0 0 0 c) 4 -1 1 5 9 0 d) -4 0 0 0 0 0 Under which conditions, the following loop is terminated? a) grade smaller than four and larger than 0 b) grade smaller than four or larger than 0 c) grade larger than four and smaller than 0 d) grade larger than four or smaller than 0 What is the correct order of the methodology for problem solving? a) 1, 5, 2, 4, 3 b) 1, 2, 5, 4, 3 c) 1, 3, 5, 2, 4 d) 1, 2, 3, 4, 5 What is the value of variable sum after execution of the following code? a) -5 b) -9 c) 0 d) 5Explanation / Answer
19 Ans) c
Explanation:- The value of 'x' will increment after the execution of statement because it is post increment operator.
20 Ans) d
Explanation:- floor(pow(-2,3)+0.6*ceil(3.9)+floor(-1.2))
=floor(-8+2.4-2)
=floor(-7.6)
=-8
21 Ans) a
Explanation:- If a switch condition does not satisfy any case, then the default statements executes.
22 Ans) a
Explanation:- The loop terminates when the condition does not satisfy
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.