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

You got 11 of 17 possible points.
Your score: 65%
Question 1

(9 ** 8 - 7 ** 6 + 5 ** 2 // 665 == 5) and (4 / 2 == 3)

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

(9 ** 8 - 7 ** 6 + 5 ** 2 // 665 == 5) and (4 / 2 == 3) άρα οτιδήποτε and (2 == 3) άρα οτιδήποτε and False άρα False

Question 2

3-3*2**2/4//5

Score: 0 of 1
Your answerChoiceScoreCorrect answer

3

0
Should have chosen

0

0
Selected

2

0
Question 3

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

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

A or B and not C

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

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

Question 4

ένας αριθμός α που διαιρείται με το τρία μπορεί να αναπαρασταθεί με την ακόλουθη έκφραση:

a % 3 == 0

αν δοθεί ως α η τιμή 16, τότε η παραπάνω παράσταση είναι:

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

a % 3 == 0 άρα 16 % 3 == 0 άρα 1 == 0 άρα False

Question 5

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

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

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

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

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

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

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

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

Question 6

10 + 4**2 * 2**2 < 6 % 16 // 6 * 6

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

10 + 4**2 * 2**2 < 6 % 16 // 6 * 6 ή 10 + 16 * 4 < 6 // 6 *6  ή  10 + 64 < 1 * 6 ή 74 < 6 ή False

Question 7

10 - 10 % 11 <= (10 -10) % 10

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

10 - 10 % 11 <= (10 -10) % 10 ή 10 - 10 <= 0 % 10 ή 0 <= 0 ή True

Question 8

4 + 4 / 4 - 4 % 4 == 4

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

4 + 4 / 4 - 4 % 4 == 4 ή 4 + 1 - 0 == 4 ή 5 == 4 ή False

Question 9

Η βαθμολογία ενός μαθητή για να μην περάσει ένα μάθημα είναι από 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 10

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

Σιγά, μια αλλαγή σε παράνθεση θα αλλάξει το αποτέλεσμα;

Δηλαδή η παράσταση 3 + 2 ** 2 - 2 + 3 / (3.0 +3)  είναι διαφορετική με την (3 + 2) ** 2 - 2 + 3 / (3.0 +3) και την 3 + 2**2 - 2 + 3 / 3.0 +3 ;

Score: 2 of 3
Your answerChoiceScoreCorrect answer
93 + 2 ** 2 - 2 + 3 / (3.0 +3)05.5
23.5(3 + 2) ** 2 - 2 + 3 / (3.0 +3)123.5
93 + 2**2 - 2 + 3 / 3.0 +319

Είδες, μια παρένθεση επηρεάζει το αποτέλεσμα, μπορεί όμως να τύχει να μη συμβεί κάτι τέτοιο! χμμμ...

Question 12

5<=2+3

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

True, είναι η απάντηση αφού θα προηγηθεί η πρόσθεση 5<=5
 

Question 13

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

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

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

Question 14

15 % 6

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

2

0

3

0
Should have chosen
Question 15

8 / 2 ** 2 + 2 <= 5

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

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

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

για 

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

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

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