Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

8 If a 1 is true and a2 is false, then which of the following expression are tru

ID: 3564915 • Letter: 8

Question

8 If a 1 is true and a2 is false, then which of the following expression are true?

a) a1 && a2

b) a1 || a2

c) ! (a1 || a2)

d) !a1 && a2

Problem 11 through 13 refer to the following statement:

11. What would you see on the screen if these statements are executed?

a) sum = 0

b) sum = 4

c) sum = 8

d) no output

12. What is the value of count after execution of these statements?

a) 0

b) 4

c) 5

d) an unpredictable interger

13. How many times is the statement sum += count ; executed?

a) 0

b) 1

c) 2

d) 4

Explanation / Answer

8) If a 1 is true and a2 is false

a) a1 && a2 ==> false

b) a1 || a2==>true

c) ! (a1 || a2) ==>false

d) !a1 && a2 ==>false

data is requred to answer the remaining questions

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote