while σε for, υπό προϋποθέσεις...

You got 8 of 8 possible points.
Your score: 100%
Question 1

Μπορεί να μετατραπεί η ακόλουθη while σε for;

i=30

while i>19:

    print i

    i=i-2

Score: 1 of 1
Your answerChoiceScoreCorrect answer

 

for i in range(19, 30, -2):

    print i

0

for i in range(30, 17, -2):

    print i

 

0
Selected

for i in range(30, 19, -2):

    print i

1
Should have chosen
Question 2

Μπορεί να μετατραπεί η ακόλουθη while σε for;

i=3

while i < 20:

    print i

    i=i+4

Score: 1 of 1
Your answerChoiceScoreCorrect answer

for i in range(20, 4):

    print i

0
Selected

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

    print i

1
Should have chosen

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

    print i

0
Question 3

Μπορεί να μετατραπεί η ακόλουθη while σε for;

i=10

while i < 25:

    print i

    i=i+5

Score: 1 of 1
Your answerChoiceScoreCorrect answer

for i in range(25, 10, 5):

    print i

0
Selected

for i in range(10, 25, 5):

    print i

1
Should have chosen

for i in range(10, 26, 5):

    print i

0
Question 4

Μπορεί να μετατραπεί η ακόλουθη while σε for;

i=10

while i>2:

    print i

    i=i-3

Score: 1 of 1
Your answerChoiceScoreCorrect answer

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

    print i

0
Selected

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

    print i

1
Should have chosen

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

    print i

0
Question 5

Μπορεί να μετατραπεί η ακόλουθη while σε for;

i=18

while i>8:

    print i

    i=i-2

Score: 1 of 1
Your answerChoiceScoreCorrect answer

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

    print i

0
Selected

for i in range(18, 9, -2):

    print i

1
Should have chosen

for i in range(16, 8, -2):

    print i

 

0
Question 6

Μπορεί να μετατραπεί η ακόλουθη while σε for;

i=0

while i<50:

    print i

    i=i+1

Score: 1 of 1
Your answerChoiceScoreCorrect answer
Selected

for i in range(50):

    print i

1
Should have chosen

η while σε for; Are you sure?

0

for i in range(1,51):

    print i

0
Question 7

Μπορεί να μετατραπεί η ακόλουθη while σε for;

i=10

while i < 25:

    print i

    i=i+5

Score: 1 of 1
Your answerChoiceScoreCorrect answer

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

    print i

0

for i in range(10, 26, 5):

    print i

0
Selected

for i in range(10, 21, 5):

    print i

1
Should have chosen
Question 8

Μπορεί να μετατραπεί η ακόλουθη while σε for;

i=100

while i>10:

    print i

    i=i-10

Score: 1 of 1
Your answerChoiceScoreCorrect answer

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

    print i

0
Selected

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

    print i

1
Should have chosen

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

    print i

0