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

You got 13 of 16 possible points.
Your score: 81%
Question 1

10 // 2 + 5 == math.sqrt (100)

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

10 // 2 + 5 == math.sqrt (100) άρα 5+5 == 10 άρα 10 == 10 άρα True

Question 2

Για την Python 2.7, αντιστοιχείστε τα στοιχεία της στήλης Α με αυτά της στήλης Β

Score: 1 of 2
Your answerChoiceScoreCorrect answer
False7 == 7.00True
Falsestr(7)==str(7.0)1False

7 == 7.0  Συγκρίνονται δύο αριθμητικές τιμές, όχι οι τύποι των αριθμών, άρα είναι True

str(7)==str(7.0)  Συγκρίνονται τα δύο str-κείμενα  '7' == '7.0' , που δεν είναι ίδια, άρα False

Question 3

15 % 20

Score: 1 of 1
Your answerChoiceScoreCorrect answer

20

0
Selected

15

1
Should have chosen

0

0
Question 4

(3 + 4 / 2**2  >= 4 ) and (5 * 2 -10 // 2 == 0)
 

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

(3 + 4 / 2**2  >= 4 ) and (5 * 2 -10 // 2 == 0) ή (3+4/4>=4)  and (10-5==0) ή (4>=4) and (5==0) ή True and False ή False

Question 5

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 6

(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

Question 7

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

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

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

Υπολογίστε:
10 % (234**23423540982)

Score: 1 of 1
Your answerChoiceScoreCorrect answer

0

0
Selected

10

1
Should have chosen

Αδύνατο

0
Question 10

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

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

3

1
Should have chosen

2

0

0

0
Question 11

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

Question 12

(17-1- 4**2) % 5

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

0

1
Should have chosen

5

0

Δε γίνεται

0
Question 13

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

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