Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started