Όλοι οι Τελεστές

You got 9 of 15 possible points.
Your score: 60%
Question 1

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

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

Score: 0 of 1
Your answerChoiceScoreCorrect answer
True0
Should have chosen
Selected
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 2

(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 3

8 / 2 ** 2 + 2 <= 5

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

Δηλαδή: 8 / 2 ** 2 + 2 <= 5 άρα 8 / 4 + 2 <= 5 άρα 2 +2 <=5 άρα 4 <=5 άρα True

Question 4

Υπολόγισε 2 ** 3 + 3 ** 2 / 3

Score: 1 of 1
Your answerChoiceScoreCorrect answer

9

0

8

0
Selected

11

1
Should have chosen
Question 5

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

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

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

Question 6

5 + 5 % (5 + 5 / 5) == 5 - 5 % 5 * 5 + 5

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

5 + 5 % (5 + 5 / 5) == 5 - 5 % 5 * 5 + 5 ή 5 + 5 % ( 5 + 1) == 5 - 0 * 5 + 5 ή 5 + 5 % 6 == 10 ή 10 == 10 ή True

Question 7

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

Score: 0 of 1
Your answerChoiceScoreCorrect answer
True0
Should have chosen
Selected
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 8

(18+20)/2

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

19

1
Should have chosen

28

0
Question 9

10-6/4 == 1

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

10-6/4 == 1,  δηλαδή 10-1 ==1 ή 9 == 1 ή False

 

Question 10

Για τις τιμές στις λογικές μεταβλητές ή εκφράσεις, Α=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 11

Ποια θα είναι η λογική τιμή για την παρακάτω λογική έκφραση;

124215 / 2354 ** 235423465 == 1 or 10>=10

Ο μαθητής Πέτρος είχε την παρακάτω απορία:

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

124215 / 2354 ** 235423465 == 1 or 10>=10 άρα οτιδήποτε or True άρα True 

χμμμ, ο φίλος μας ο υπολογιστής θα κουραζόταν άδικα και θα έκανε άσκοπα την ΓΙΓΑΝΤΙΑΑΑΑΑΑΑΑ ΠΡΑΞΗ πριν το or

την χρήσιμη αυτή  απορία τη διατύπωσε πολύ εύστοχα ο μαθητής Πέτρος,

ίσως οι υπολογιστές μας έχουν πολύ δρόμο ακόμα για να βελτιωθούν!!

Question 12

(2 + 2 ) ** 2 == (2 ** 2 ) ** 2

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

(2 + 2 ) ** 2 == (2 ** 2 ) ** 2  άρα 4 ** 2 == 4 ** 2 άρα 16 == 16 άρα True

Question 13

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

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

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

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

Score: 1 of 1
Your answerChoiceScoreCorrect answer
True0
Selected
False1
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 14

15 % 20

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

15

1
Should have chosen

0

0

20

0
Question 15

5 + 3 ** 2 - 3 >= 10 % 4 + 10

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

5 + 3 ** 2 - 3 >= 10 % 4 + 10 άρα 5 + 9 - 3 >= 2 + 10 άρα 11 >= 12 άρα False

Μάλλον χρειάζεται να ξαναδείς τις λεπτομέρειες:

για 

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

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

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