Δομή επανάληψης: εντολή for

You got 7 of 10 possible points.
Your score: 70%
Question 1

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

for i in range(-2,2):

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

2, 1, 0

0

τίποτα

0
Selected

-2, -1, 0, 1

1
Should have chosen
Question 2

Ο μαθητής Νίκος είπε ότι ο παρακάτω κώδικας θα εμφανίσει τους αριθμούς από το 10 έως και το 1 ανάποδα

for i in range(10):

    print 10-i

Είχε δίκιο;

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

Λάθος θα εμφανίσει τους αριθμούς 10 έως και το 0
 

0

Κάνει λάθος, θα εμφανίσει τους αριθμούς 1 έως και 10
 

0

Σωστά

0
Should have chosen
Question 3

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

for i in range(5,9):

     print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

5, 6, 7, 8

1
Should have chosen

5, 6, 7, 8, 9

0
Question 4

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

for i in range(-6, 6, 3):

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

-6, -3, 0, 3, 6

0
Selected

-6, -3, 0, 3

1
Should have chosen

3, 6

0

τίποτα

0
Question 5

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

for i in range(-4,0):

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

τίποτα

0
Selected

-4, -3, -2, -1

1
Should have chosen

1, 2, 3, 4

0
Question 6

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

for i in range(4):

     print i -1

 

Score: 0 of 1
Your answerChoiceScoreCorrect answer

1, 2, 3, 4

0
Selected

0, 1, 2, 3

0

-1 , 0 , 1 , 2

0
Should have chosen
Question 7

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

for i in range(10):

     print i+1

Score: 1 of 1
Your answerChoiceScoreCorrect answer

0, 1, 2, 3, 4, 5, 6, 7, 8, 9

0
Selected

1, 2, 3, 4, 5, 6, 7, 8, 9, 10 

1
Should have chosen
Question 8

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

for i in range(5, 6, 5):

    print i

Score: 0 of 1
Your answerChoiceScoreCorrect answer

5

0
Should have chosen
Selected

τίποτα

0

5, 10

0
Question 9

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

for i in range(1):

     print 'Python'

Score: 1 of 1
Your answerChoiceScoreCorrect answer

0

0
Selected

Python

1
Should have chosen
Question 10

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

for i in range(10, 22, -3):

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

τίποτα

1
Should have chosen

10

0

22, 19, 16, 13

0