Question 1 1 pts Which of the following are absolutely required in an if statement? O parentheses around the test condition O a test condition an else clause all of the above O none of the above
Question 2 1 pts What will be displayed by the following code: 3 C-2 X= if a > C: X = x + 1 elif b< c: X = X + 2 else: X = X + 4 print (x) 01 02 04 05
Question 3 1 pts What will be displayed by the following code: b = 3 C= 2 X = @ if a > c: x = x + 1 if b<c: x = x + 2 else: X=X+ 4 print (x) 01 02 04 05
Question 4 1 pts What are the values of the two variables after these statements are executed? a = 7 > 34 b = "7" > "34" O both are false both are true O a false, btrue O a true, bfalse
Question 5 1 pts One line on the following truth table is WRONG. Which one? A B A or B line 1 false false false line 2 false true false line 3 true false true line 4 true true true O line 1 O line 2 O line 3 line 4
Question 1 1 pts Which of the following are absolutely required in an if statement? O parentheses around the test condit
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Question 1 1 pts Which of the following are absolutely required in an if statement? O parentheses around the test condit
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!