Question: Q 4 ) Consider the following if statement in a program. Suppose this is the last statement and it will be executed. The other statements
Q Consider the following if statement in a program. Suppose this is the last statement and it will be executed. The other statements are not known.
if marks
print pass
Which of the following can be inferred?
a If the text pass is printed on the console, the marks is greater than
b If the marks is greater than then the text pass will be printed
c If the text fail is printed on the console, then the marks is less than or equal to
d If the text fail is printed on the console, then the marks is less than
Q How many rows are there in a truth table with propositional variables?
a
b
c
d Cannot be dettermined
Q p q r is equivalent to hint: check precedence
a p q r
b pq r
c p q r
dp q r
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
