Βασικές συναρτήσεις

You got 10 of 15 possible points.
Your score: 67%
Question 1

float(int(5.2))

Score: 0 of 1
Your answerChoiceScoreCorrect answer

5.2

0

5.0

0
Should have chosen
Selected

5

0
Question 2

int(10.0/3)

Score: 1 of 1
Your answerChoiceScoreCorrect answer

3.33

0
Selected

3

1
Should have chosen
Question 3

int(5/float(2))

Score: 0 of 1
Your answerChoiceScoreCorrect answer

2

0
Should have chosen
Selected

2.5

0
Question 4

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

Score: 1 of 1
Your answerChoiceScoreCorrect answer
5.0float(5)15.0
5int(5.99)15
'5'str(5)1'5'
6abs(-6)16
8pow(2,3)18
(6 ,0)divmod(60,10)1(6 ,0)
(0,6)divmod(6,10)1(0,6)
Question 5

str(1)*5
 

Score: 1 of 1
Your answerChoiceScoreCorrect answer

'15'

0

'55555'
 

0
Selected

'11111'

1
Should have chosen

5

0
Question 6

int(str(1)*3)+2

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

'1112'

0

113

0
Should have chosen

5

0
Question 7

Η εντολή

 a=float('δέκα')

θα μετατρέψει το 'δέκα' σε αριθμό, άρα  η μεταβλητή a θα έχει την τιμή 10.0

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

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

Score: 1 of 1
Your answerChoiceScoreCorrect answer
True7 == 7.01True
Falsestr(7)==str(7.0)1False
Question 9

str(float(int(5.99)))
 

Score: 1 of 1
Your answerChoiceScoreCorrect answer

'5.99'

0
Selected

'5.0'

1
Should have chosen

5

0
Question 10

abs(int(-5.5))

Score: 1 of 1
Your answerChoiceScoreCorrect answer

-5

0

5.5

0
Selected

5

1
Should have chosen
Question 11

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

Score: 0.85714285714286 of 1
Your answerChoiceScoreCorrect answer
11abs(-5-6)111
2pow(2,1)12
(2,0)divmod(2,1)1(2,0)
1.5float(3/2)01.0
1.53/float(2)11.5
4int(float(9)/2)14
4int(5/float(2)) + float(int(5/2.0))04.0
Question 12

Για την 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'
6.0int(1.0)+int(2.0)+int(3.0)06
6.0float(6)16.0
8pow(2,3)18
Question 13

a, b = divmod (pow(3, 2) , int(3.9))

ποιες οι τιμές για τα a και b;

Score: 0 of 1
Your answerChoiceScoreCorrect answer

a θα είναι 3 και b θα είναι 0

0
Should have chosen
Selected

a θα είναι 0 και b θα είναι 3

0

a θα είναι 2 και b θα είναι 2

0
Question 14

Τι θα εμφανίσει;

a, b = divmod (11, 5)

print pow(a,b)

Score: 1 of 1
Your answerChoiceScoreCorrect answer

1

0
Selected

2

1
Should have chosen

χμμμ... error

0

4

0
Question 15

pow(int(8.0/3),3)

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

8

1
Should have chosen

9

0