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

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

str(float(int(5.99)))
 

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

'5.99'

0

5

0

'5.0'

0
Should have chosen
Question 2

str(1)*5
 

Score: 1 of 1
Your answerChoiceScoreCorrect answer

'55555'
 

0

'15'

0

5

0
Selected

'11111'

1
Should have chosen
Question 3

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

a, b = divmod (11, 5)

print pow(a,b)

Score: 0 of 1
Your answerChoiceScoreCorrect answer

4

0
Selected

χμμμ... error

0

2

0
Should have chosen

1

0
Question 4

pow (4, 2) == pow (2 ,4)

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

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

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

Score: 0 of 1
Your answerChoiceScoreCorrect answer

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

0

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

0
Should have chosen
Selected

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

0
Question 6

abs(-5+4)

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

-1

0

1

0
Should have chosen
Question 7

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

Score: 0.14285714285714 of 1
Your answerChoiceScoreCorrect answer
5float(5)05.0
(6 ,0)int(5.99)05
6str(5)0'5'
5abs(-6)06
5.0pow(2,3)08
'5'divmod(60,10)0(6 ,0)
8divmod(6,10)0(0,6)
Question 8

int(10.0/3)

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

3.33

0

3

0
Should have chosen
Question 9

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

Score: 0.14285714285714 of 1
Your answerChoiceScoreCorrect answer
1.0abs(-5-6)011
1.0pow(2,1)02
2divmod(2,1)0(2,0)
1.5float(3/2)01.0
4.03/float(2)01.5
4int(float(9)/2)14
2int(5/float(2)) + float(int(5/2.0))04.0
Question 10

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

Score: 0 of 1
Your answerChoiceScoreCorrect answer
False7 == 7.00True
Truestr(7)==str(7.0)0False
Question 11

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

Score: 0.28571428571429 of 1
Your answerChoiceScoreCorrect answer
55str(5)+'5'0'55'
'55'int(5.0*11)055
50abs(5-55)150
50str(1)+str(2)+str(3)0'123'
8int(1.0)+int(2.0)+int(3.0)06
6.0float(6)16.0
6pow(2,3)08
Question 12

Ισοδύναμα ή όχι; divmod(5,12) με divmod(12,5)

Score: 0.5 of 1
Your answerChoiceScoreCorrect answer
(0,5)divmod(5,12) 1(0,5)
(0,5)divmod(12,5)0(2,2)
Question 13

int(str(1)*3)+2

Score: 0 of 1
Your answerChoiceScoreCorrect answer

113

0
Should have chosen

'1112'

0
Selected

5

0
Question 14

abs(int(-5.5))

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

-5

0

5

0
Should have chosen

5.5

0
Question 15

int(5/float(2))

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

2

1
Should have chosen

2.5

0