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

You got 9 of 15 possible points.
Your score: 60%
Question 1

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

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

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

3, 3, 3

0
Selected

τίποτα

1
Should have chosen

3

0
Question 2

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

for i in range(0):

     print i 

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

τίποτα

1
Should have chosen

0

0
Question 3

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

for i in range( -1 , 1):

         print i

Score: 0 of 1
Your answerChoiceScoreCorrect answer

-1

0
Selected

0

0

-1

0

1

0

-1

0

0
Should have chosen
Question 4

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

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 5

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

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

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

τίποτα

1
Should have chosen

10, 8, 6, 4

0

10, 7, 4

0
Question 6

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

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

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer

10

0

22, 19, 16, 13

0
Selected

τίποτα

1
Should have chosen
Question 7

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

for i in range(-2,2):

    print i

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

τίποτα

0

2, 1, 0

0

-2, -1, 0, 1

0
Should have chosen
Question 8

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

for i in range(10):

    print 10-i

Είχε δίκιο;

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

Σωστά

1
Should have chosen

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

0

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

0
Question 9

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

for i in range(1):

     print 'Python'

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

0

0

Python

0
Should have chosen
Question 10

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

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

    print i

Score: 0 of 1
Your answerChoiceScoreCorrect answer

-6, -3, 0, 3, 6

0
Selected

τίποτα

0

3, 6

0

-6, -3, 0, 3

0
Should have chosen
Question 11

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

for i in range(1,4):

        print i ** i

Score: 0 of 1
Your answerChoiceScoreCorrect answer

1

4

8

0

1

4

27

0
Should have chosen
Selected

1

4

9

0
Question 12

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

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

    print i

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

5

8

11

14

1
Should have chosen

5

8

11

14

17

0

8

11

14

0
Question 13

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

for i in range(7,9):

     print i

print i

Score: 0 of 1
Your answerChoiceScoreCorrect answer

7

8

9

0
Selected

7

8

0

7

8

8

0
Should have chosen
Question 14

Τι θα εμφανίσει, αν ο χρήστης πληκτρολογήσει τον αριθμό -5;

a=input(' Δώσε αριθμό')

for i in range(a):

     print i 

Score: 1 of 1
Your answerChoiceScoreCorrect answer

-1, -2 ,-3, -4, -5

0

-5, -4, -3, -2, -1

0
Selected

τίποτα

1
Should have chosen
Question 15

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

for i in range(-3, 0):

     print i + 3

Score: 1 of 1
Your answerChoiceScoreCorrect answer

2

1

0

0

-1

-2

-3

0

-3

-2

-1

0
Selected

0

1

2

 

1
Should have chosen