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

You got 14 of 15 possible points.
Your score: 93%
Question 1

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

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

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

-5

0

5

0
Selected

-5

0

 

1
Should have chosen

0

0

5

0

-5

0
Question 2

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

for i in range(10):

    print 10-i

Είχε δίκιο;

Score: 0 of 1
Your answerChoiceScoreCorrect answer

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

0

Σωστά

0
Should have chosen
Selected

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

0
Question 3

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

for i in range(0):

     print i 

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

τίποτα

1
Should have chosen

0

0
Question 4

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

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

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

4, 2

0
Selected

2, 4

1
Should have chosen

2, 4, 6

0
Question 5

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

for i in range(10):

     print i+1

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

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

1
Should have chosen

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

0
Question 6

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

for i in range(5,3):

     print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

5

4

0

3

4

5

0

3

4

0
Selected

τίποτα

1
Should have chosen
Question 7

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

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

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

3

0
Selected

τίποτα

1
Should have chosen

3, 3, 3

0
Question 8

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

for i in range(-3, 0):

     print i + 3

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

0

1

2

 

1
Should have chosen

2

1

0

0

-1

-2

-3

0

-3

-2

-1

0
Question 9

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

for i in range(2,-2):

     print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

2

0

2

1

0

-1

0

-2

-1

0

1

0
Selected

τίποτα
 

1
Should have chosen
Question 10

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

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

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

5

1
Should have chosen

τίποτα

0

5, 10

0
Question 11

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

for i in range(-10, -2, 2):

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

-10

-8

-6

-4

-2

0
Selected

-10

-8

-6

-4

 

1
Should have chosen

-10

-12

-14

- άπειρο

0

-8

-6

-4

 

0
Question 12

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

for i in range(5,5):

     print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

0

0

5

0

55

0
Selected

τίποτα
 

1
Should have chosen
Question 13

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

for i in range(100, 10, -50):

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

100, 50, 0

0
Selected

100, 50

1
Should have chosen

10, 60

0
Question 14

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

for i in range(3):

        print i ** 3

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

0

1

8

1
Should have chosen

0

1

2

0

0

1

4

0
Question 15

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

for i in range(5):

     print 'Καλημέρα'

Score: 1 of 1
Your answerChoiceScoreCorrect answer

ΚΑΛΗΜΕΡΑ

ΚΑΛΗΜΕΡΑ

ΚΑΛΗΜΕΡΑ

ΚΑΛΗΜΕΡΑ

ΚΑΛΗΜΕΡΑ

0
Selected

Καλημέρα

Καλημέρα

Καλημέρα

Καλημέρα

Καλημέρα

1
Should have chosen

0

1

2

3

4

Καλημέρα

0

Καλημέρα*5

0