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

You got 6 of 15 possible points.
Your score: 40%
Question 1

abs(int(-5.5))

Score: 0 of 1
Your answerChoiceScoreCorrect answer

5

0
Should have chosen

-5

0
Selected

5.5

0
Question 2

Η εντολή

print float('5')

δε μπορεί να εκτελεστεί αφού το '5' είναι συμβολοσειρά

 

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

float(int(5.2))

Score: 0 of 1
Your answerChoiceScoreCorrect answer

5.0

0
Should have chosen

5

0
Selected

5.2

0
Question 4

str(float(int(5.99)))
 

Score: 1 of 1
Your answerChoiceScoreCorrect answer

5

0

'5.99'

0
Selected

'5.0'

1
Should have chosen
Question 5

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

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

int(str(1)*3)+2

Score: 0 of 1
Your answerChoiceScoreCorrect answer

5

0

113

0
Should have chosen
Selected

'1112'

0
Question 7

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

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

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

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

Score: 1 of 1
Your answerChoiceScoreCorrect answer

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

0
Selected

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

1
Should have chosen

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

0
Question 9

int(5/float(2))

Score: 1 of 1
Your answerChoiceScoreCorrect answer

2.5

0
Selected

2

1
Should have chosen
Question 10

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

Score: 0.57142857142857 of 1
Your answerChoiceScoreCorrect answer
'55'str(5)+'5'1'55'
55int(5.0*11)155
'55'abs(5-55)050
6str(1)+str(2)+str(3)0'123'
6int(1.0)+int(2.0)+int(3.0)16
6float(6)06.0
6pow(2,3)08
Question 11

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

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

str(1)*5
 

Score: 0 of 1
Your answerChoiceScoreCorrect answer

5

0

'15'

0
Selected

'55555'
 

0

'11111'

0
Should have chosen
Question 13

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

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

str(1)+str(1)

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

'2'

0

'11'

0
Should have chosen
Question 15

abs(-5+4)

Score: 0 of 1
Your answerChoiceScoreCorrect answer

1

0
Should have chosen
Selected

-1

0