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

You got 13 of 15 possible points.
Your score: 87%
Question 1

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

a % 3 == 0

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

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

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

Question 2

15 % 20

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

15

1
Should have chosen

20

0

0

0
Question 3

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 4

3 * 3 + 3 > 3 ** 3 - 3

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

3 * 3 + 3 > 3 ** 3 - 3 άρα 9 + 3 > 27 - 3 άρα 12 > 24 άρα False

Question 5

15 % 6

Score: 1 of 1
Your answerChoiceScoreCorrect answer

2

0
Selected

3

1
Should have chosen
Question 6

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

5<=2+3

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

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

Question 8

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

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 10

6 + 1 - 3 % 4 == 2 ** 2

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

6 + 1 - 3 % 4 == 2 ** 2 άρα 6 + 1 - 3 == 4 άρα 4==4 άρα True

Question 11

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

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

υπολογίστε: 7 + 5 ** 2 // 2

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

19

1
Should have chosen

χμμ.. 12 στο τετράγωνο διά 2

0

16

0
Question 13

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

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

(12 > 11) or (3 ** 3 + 4 // 16 + 8 ** 2 * 5 - 4 == 4)

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

(12 > 11) or (3 ** 3 + 4 // 16 + 8 ** 2 * 5 - 4 == 4) άρα True or οτιδήποτε θα είναι True. (Δε χρειάζεται άλλη απόδειξη)

Τυπικά:  True or (27 + 0 + 320 - 4 == 4)  άρα True or (343==4) άρα True or Fasle άρα True