Λογικοί Τελεστές

You got 8 of 10 possible points.
Your score: 80%
Question 1

(15 > 20 / 2) or (3**123*3132+2987-2354/2354265<=238293-23213*23)

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected
True1
Should have chosen
False0

(15 > 20 / 2) or (3**123*3132+2987-2354/2354265<=238293-23213*23) άρα (15 > 10) or (οτιδήποτε) άρα True or (οτιδήποτε ) άρα True

True or οτιδήποτε είναι True 

Question 2

(2 + 2 ** 2 >= 2 * 3) and ( 3 * 2 - 2 / 3 == 6 ** 2 / 6)
 

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected
True1
Should have chosen
False0

(2 + 2 ** 2 >= 2 * 3) and ( 3 * 2 - 2 / 3 == 6 ** 2 / 6) άρα (2 + 4 >= 6) and ( 6 - 0 == 36 / 6) άρα ( 6 >= 6) and (6 == 6) άρα True and True άρα True

Question 3

10 + 1 % 11 == 110/10

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected
True1
Should have chosen
False0

10 + 1 % 11 == 110/10 άρα 10 + 1 == 11 άρα 11 == 11 άρα True

Question 4

Η βαθμολογία ενός μαθητή για να μην περάσει ένα μάθημα είναι από 0 έως 9.5.

Η παρακάτω λογική έκφραση:

not ( vath >= 9.5 and vath <=20)

τι λογική τιμή θα πάρει αν ο βαθμός είναι 15;

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected
True0
False0
Should have chosen

not ( vath >= 9.5 and vath <=20) άρα not ( 15>=9.5 and 15<=20) άρα not (True and True) άρα not True άρα False

Question 5

( 4 >= 4 / 4 ** 4 ) and ( 2 >= 2 * 2 / 2 ** 2)

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected
True1
Should have chosen
False0

( 4 >= 4 / 4 ** 4 ) and ( 2 >= 2 * 2 / 2 ** 2) άρα ( 4 >= 0) and ( 2 >= 2 * 2 / 4) άρα (4>=0) and (2 >=1) άρα True and True άρα True

Σκέψου: 4 / 4 ** 4 είναι 4 / (αριθμός μεγαλύτερος του 4) άρα 0 ( στην Python 2.7)

Question 6

Για τις τιμές στις λογικές μεταβλητές ή εκφράσεις, Α=True, B=False, C=True,

να επιλέξετε τη απάντηση True ή False στην παρακάτω λογική πρόταση:

A or B and not C

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected
True1
Should have chosen
False0

A or B and not C = True or False and not True =  True or False and False = True or False = True

Question 7

Για τις τιμές στις λογικές μεταβλητές ή εκφράσεις, Α=False, B=True, C=True,

να επιλέξετε τη απάντηση True ή False στην παρακάτω λογική πρόταση

not(A or B) and C

Score: 1 of 1
Your answerChoiceScoreCorrect answer
True0
Selected
False1
Should have chosen

not(A or B) and C = not(False or True) and True = notTrue and True = False and True = False

Question 8

(5 > 2) and (4 <= 4)

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected
True1
Should have chosen
False0

(5 > 2) and (4 <= 4) άρα True and True άρα True

Question 9

a % 3 == 0 or a % 5 == 0

αν δοθεί ως a η τιμή 12, ποια θα είναι η λογική τιμή της παραπάνω λογικής έκφρασης;

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected
True1
Should have chosen
False0

a % 3 == 0 or a % 5 == 0 άρα 12 % 3 == 0 or 12 % 5 == 0 άρα 0 == 0 or 2 == 0 άρα True or False άρα True

Question 10

(8 > 2 ** 3) and True

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected
True0
False0
Should have chosen

(8 > 2 ** 3) and True άρα (8 > 8) and True άρα False and True άρα False

Μάλλον χρειάζεται να ξαναδείς τις λεπτομέρειες Λογικοί Τελεστές 

Δοκίμασε και : Αριθμητικοί Τελεστές

                 ή     Συγκριτικοί Τελεστές