comp-think / 2020-2021

The GitHub repository containing all the material related to the Computational Thinking and Programming course of the Digital Humanities and Digital Knowledge degree at the University of Bologna (a.a. 2020/2021).
14 stars 9 forks source link

Lecture "Programming languages", exercise 1 #10

Open essepuntato opened 4 years ago

essepuntato commented 4 years ago

What is the boolean value of not (not True or False and True) or False?

SarahTew commented 4 years ago

True

Work: not (not True or False and True) or False not (False or False and True) or False not (False or False) or False not (False) or False True or False True

edoardodalborgo commented 4 years ago

not(((not T) or F) and T) or F -> not((F or F) and T) or F -> not( F and T) or F ->not F or F -> T or F -> T

giorgiasampo commented 4 years ago

The Value is TRUE because: -not TRUE is FALSE - not (False or False and True) or False -FALSE and TRUE is FALSE - not (False or False) or False -FALSE or FALSE is FALSE - not (False) or False -Not FALSE is TRUE - True or False -TRUE or FALSE states TRUE

ChiaraCati commented 4 years ago

not (not True or False and True) or False -> not (False or False and True) or False -> not (False or False) or False -> not False or False -> True or False -> True

fcagnola commented 4 years ago

Given the statement: not (not True or False and True) or False

the order of operation as I understood it should be not->and->or, and parentheses before everything else, so: not (False or False and True) or False not (False or False) or False not False or False True or False True

dbrembilla commented 4 years ago

The boolean value is True Procedure: not (not True or False and True) or False not (False or False and True) or False not (False or False) or False not False or False True or False True

vanessabonanno commented 4 years ago

As my colleagues answered before I believe the answer is True:

not(not True or False and True) or False not(False or False and True) or False not(False and True) or False not(False) or False True or False True

AlessandraFa commented 4 years ago

The boolean value should be True:

not (not True or False and True) or False not (False or False and True) or False not (False or False) or False not False or False True or False True

gabrielefiorenza commented 4 years ago

True: not(not True or False and True) or False not(False or False and True) or False not(False or False) or False not False or False True or False True

LuisAmmi commented 4 years ago

The boolean value is TRUE. The method followed is checking the values on the table 1 and replacing terms with the corresponding boolean values.

Not (not-True or False-and-True) or False Not (False or False) or False Not (False) or False True o False True

samuelespotti commented 4 years ago

not (not True or False and True) or False

lauratravaglini commented 4 years ago

no(not True or False and True) or False

not(False or False and True) or False not(False or False) or False not False or False True or False True

GiuliaMenna commented 4 years ago

not (not True or False and True) or False?

not (F or F and T) or F not (F or F) or F not (F) or F not F or F T or F = TRUE

SusannaPinotti commented 4 years ago

The boolean value resulting from this expression is True.

yunglong28 commented 4 years ago

not (not True or False and True) or False not (False or False) or False True or False True

laurentfintoni commented 4 years ago

the Boolean value is True.

We start with the operations between (). not True gives us False. False or False and True gives us False because the and operation requires both values to match and the or operation requires one value to be True. So now we have not (False), which is True. And the final is True or False, which is True.

penelopelask commented 4 years ago

not (not True or False and True) or False

not (False or False) or False

not (False) or False

True or False

True.

AleRosae commented 4 years ago

The answer is True. Here is the procedure:

not (not True or False and True) or False

not (False or False and True) or False

not (False or False) or False

not (False) or False

True or False

True

IlaRoss commented 4 years ago

not (not true or false and true) or false not (false or false and true) or false not (false or false) or false not false or false true or false true