Τελεστές-Μεταβλητές-Βασικές Συναρτήσεις-print

You got 33 of 35 possible points.
Your score: 94%
Question 1

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 2

type('Καλή επιτυχία')

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

str

1
Should have chosen

καλή επιτυχία

0
Question 3

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

Ποιος είναι γρηγορότερος,ο άνθρωπος ή ο υπολογιστής στο παρακάτω αριθμητικό πρόβλημα;

5 / 4 ** 1111111111111111111111111

Αν το βρεις σε λιγότερο από ένα λεπτό τότε σίγουρα ο άνθρωπος είναι

Για δοκίμασε και το χρόνο που θα κάνει ο υπολογιστής σου (αν αργήσει δοκίμασε ctr+alt+del και τερμάτισε την python)!

 

 

Score: 1 of 1
Your answerChoiceScoreCorrect answer

Ο υπολογιστής θα το υπολογίσει γρηγορότερα και το αποτέλεσμα είναι 0

0

Ο άνθρωπος θα το υπολογίσει γρηγορότερα και το αποτέλεσμα είναι 1

0

Ο υπολογιστής θα το υπολογίσει γρηγορότερα και το αποτέλεσμα είναι 2345234691782643876

 

0
Selected

Ο άνθρωπος θα το υπολογίσει γρηγορότερα και το αποτέλεσμα είναι 0

1
Should have chosen
Question 5

Ποια από τα παρακάτω ονόματα  μεταβλητών είναι αποδεκτά στην  Python;

Score: 1 of 1
Your answerChoiceScoreCorrect answer
NAIVathmos_me_keno1NAI
ΟΧΙVathmos_1@1ΟΧΙ
Question 6

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 7

Τύποι δεδομένων

Σε ποιο τύπο δεδομένων στη γλώσσα προγραμματισμού Python 2.7 αντιστοιχούν οι τιμές της αριστερής στήλης του παρακάτω πίνακα.
Να συνδέσετε κατάλληλα τις τιμές της αριστερής στήλης με το σωστό τύπο δεδομένων της δεξιάς στήλης.

Score: 1 of 1
Your answerChoiceScoreCorrect answer
int(ακέραια)15/61int(ακέραια)
float (κινητής υποδιαστολής)18.0/61float (κινητής υποδιαστολής)
str(συμβολοσειρά)'18/6'1str(συμβολοσειρά)
bool (λογική)type(15>3)1bool (λογική)
Question 8

18+20/2

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

28

1
Should have chosen

19

0
Question 9

για το παρακάτω τμήμα προγράμματος, ποια έντολή θα επιλέγατε ώστε να εμφανίζει το μήνυμα:
Ποιο socket επιλέγεις για ______ πυρήνες; π.χ. αν ο χρήστης δώσει 4, θα εμφανίζει: Ποιο socket επιλέγεις για 4 πυρήνες;
cores=input('Πόσους πυρήνες διαθέτει ο επεξεργαστής; ')
socket=______________________

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

socket=input('Ποιο socket επιλέγεις για ' + str(cores) + ' πυρήνες')

1
Should have chosen

socket=input('Ποιο socket επιλέγεις για ' +cores+ ' πυρήνες')

0

socket=input('Ποιο socket επιλέγεις για ' ,cores, ' πυρήνες')

0
Question 10

3 + 3 * 3 - 3 / 3 ** 3 == 3 * 3 + 3

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

3 + 3 * 3 - 3 / 3 ** 3 == 3 * 3 + 3   άρα 3 + 9 - 3 / 27 == 9 + 3 άρα 3 + 9 - 0 == 9 + 3 άρα 12 == 12 άρα True

Question 11

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

Score: 1 of 1
Your answerChoiceScoreCorrect answer

Δε γίνεται

0
Selected

0

1
Should have chosen

5

0
Question 12

Ποια από τα παρακάτω ονόματα  μεταβλητών είναι αποδεκτά στην  Python;

Score: 1 of 1
Your answerChoiceScoreCorrect answer
ΟΧΙprint1ΟΧΙ
ΝΑΙpali_tha_milame_gia_vathmous1ΝΑΙ
Question 13

(3 / 3) ** 3 < 3 + 3 / 3

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

(3 / 3) ** 3 < 3 + 3 / 3 ή 1 ** 3 < 3 + 1 ή 1 < 4 True

Question 14

τι θα εμφανιστεί; print 'Γεια σας' * 5

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

Γεια σαςΓεια σαςΓεια σαςΓεια σαςΓεια σας

1
Should have chosen

SyntaxError

0

Γεια σας5

0
Question 15

Να καταγράψετε τι πιστεύετε ότι θα εμφανιστεί στην οθόνη μετά την εκτέλεση του παρακάτω τμήματος προγράμματος:

x=25

y=10

x+=2

y-=3

z=x/y

c=x%y

print z, c

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

3 6

1
Should have chosen

4 0
 

0

6 3

0
Question 16

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

8 + 3 ** 2 / 3 >= 11

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

Κοίτα: 8 + 3 ** 2 / 3 >= 11 άρα 8+9/3>=11 άρα 8+3>==1 άρα 11>=11 άρα True

Question 18

Τι θα εμφανιστεί;
x=5
x=x+3
x+=4
print x

Score: 1 of 1
Your answerChoiceScoreCorrect answer

9

0
Selected

12

1
Should have chosen

8

0
Question 19

float(int(5.2))

Score: 1 of 1
Your answerChoiceScoreCorrect answer

5

0

5.2

0
Selected

5.0

1
Should have chosen
Question 20

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 21

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

2 % 2 <= 2 - 2

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

2 % 2 <= 2 - 2 ή 0 <= 0 ή True

Question 23

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

τι θα εμφανιστεί στην οθόνη;

a=5

b=10

print a,b

a,b=b,a

print a,b

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

5    10

10    5

1
Should have chosen

10   5

5    10

0
Question 25

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

Score: 1 of 1
Your answerChoiceScoreCorrect answer
'55'str(5)+'5'1'55'
55int(5.0*11)155
50abs(5-55)150
'123'str(1)+str(2)+str(3)1'123'
6int(1.0)+int(2.0)+int(3.0)16
6.0float(6)16.0
8pow(2,3)18
Question 26

Σε ποιο τύπο δεδομένων στη γλώσσα προγραμματισμού Python αντιστοιχούν οι τιμές της αριστερής στήλης του παρακάτω πίνακα. Να συνδέσετε κατάλληλα τις τιμές της αριστερής στήλης με το σωστό τύπο δεδομένων της δεξιάς στήλη

Score: 1 of 1
Your answerChoiceScoreCorrect answer
float (κινητής υποδιαστολής)float(15%4)1float (κινητής υποδιαστολής)
str (συμβολοσειρά)'15/4.0'1str (συμβολοσειρά)
int (ακέραιος)10/31int (ακέραιος)
Question 27

2 * 4 / 3**2 + 6 <= 7- 2**2 / 2 * 2

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

2 * 4 / 3**2 + 6 <= 7- 2**2 / 2 * 2 ή 8 / 9 + 6 <= 7- 4 / 2 * 2 ή 0 + 6 <= 7 - 2 * 2 ή 6<= 7- 4 ή 6 <= 3 ή False

Question 28

Ποια από τα παρακάτω ονόματα  μεταβλητών είναι αποδεκτά στην  Python;

Score: 1 of 1
Your answerChoiceScoreCorrect answer
ΟΧΙ1vathmos1ΟΧΙ
ΝΑΙVathmos11ΝΑΙ
Question 29

Έστω το παρακάτω τμήμα προγράμματος:

a=20

b=19

mo=( ___  +____ )/2

print '  Ο μέσος όρος των αριθμών είναι: ', mo

Για την Python 2.7, Τι θα επιλέγατε για να υπολογιστεί με ακρίβεια ο μέσος όρος, δλαδή 19.5 και όχι 19;

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

mo=float(a + b )/2

1
Should have chosen

mo=( a + b)/2

0

mo=( a + b )/2

mo=float(mo)

0
Question 30

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

τι θα εμφανιστεί;
x=5
x*=2
print x
x+=10
print x

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

10
20

1
Should have chosen

10
15

0

5
10

0
Question 32

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 33

15 % 20

Score: 1 of 1
Your answerChoiceScoreCorrect answer

0

0

20

0
Selected

15

1
Should have chosen
Question 34

abs(-5+4)

Score: 1 of 1
Your answerChoiceScoreCorrect answer

-1

0
Selected

1

1
Should have chosen
Question 35

8 ** 2 / 2 + 2 <= 34

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

8 ** 2 / 2 + 2 <= 34 άρα 64 / 2 + 2 <=34 άρα 32+2<=34 άρα 34<=34 άρα True