After this program is executed, the value of numc is 10. Choose the connective that completes the program.

numA = 2
numB = 3
if numA == 2 (or,and,not) numB = 2:
numC = 30
elif numA == 2 and numB == 3:
numC = 10

Respuesta :

Using logical operators, it is found that the connective that completes the program is and.

What are the logical operators?

The and operator between multiple conditions is true if all of them are true.

The or operator between multiple conditions is true if at least one of them is true.

In this problem:

The variable numC will be attributed a value of 10 if the else clause is called.

The else clause is called if numA == 2 (or,and,not) numB = 2 is false. We have that numA = 2, numB = 3, hence one of the clauses is true and the other is false. Since we want the clause to be false, the and operation has to be called, which means that and is the connective that completes the program.

You can learn more about logical operators at https://brainly.com/question/13382096

ACCESS MORE