comp-think / 2023-2024

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. 2023/2024).
14 stars 0 forks source link

Lecture "Programming languages", exercise 1 #10

Open essepuntato opened 11 months ago

essepuntato commented 11 months ago

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

vattelalberto commented 11 months ago

True

qwindici commented 11 months ago

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

FranciscoWu commented 11 months ago

True

annapasetto0 commented 11 months ago

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

Asemica-me commented 11 months ago

null (7) According to brackets and rules for application order, the boolean value of not (not True or False and True) or False is True.

frammenti commented 11 months ago
not ((not True) or (False and True)) or False
not (False or False) or False
not False or False
True or False
True
alicepiazzi commented 11 months ago
Schermata 2023-10-21 alle 12 29 39
Liber-R commented 11 months ago

True

Chiaramartina commented 11 months ago

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

rufferbaraldi commented 11 months ago

True

matildepassafaro commented 11 months 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

saramadonia commented 11 months ago

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

ThIheb commented 11 months 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

valentinabertelli commented 11 months 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

AnnaNicoletti commented 11 months ago

image

MariaFrancesca6 commented 11 months ago

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

Correct way to solve it:

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

enricabruno commented 11 months ago
Screenshot 2023-10-22 alle 23 45 09
elena2notti commented 11 months ago

True

essepuntato commented 11 months ago

Hi all, thanks for your take. It is important to remember that boolean operators must be applied with a particular priority among them, i.e. first not, then and and finally or.

Kaosaier commented 11 months ago

not True is False. not False is True. False and True is False. not (not True or False and True) is not (False or False), which is equivalent to not False, which is True. True or False is True. Therefore, is True.

saramadonia commented 11 months ago

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

edit: 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

simocasaz commented 11 months ago

IMG_20231025_193635.jpg

parkful commented 11 months 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

CarlaMenegat commented 10 months ago

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