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

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

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

i=18

while i>8:

    print i

    i=i-2

Score: 0 of 1
Your answerChoiceScoreCorrect answer

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

    print i

0
Should have chosen

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

    print i

0
Selected

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

    print i

 

0
Question 2

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

i=0

while i<50:

    print i

    i=i+1

Score: 0 of 1
Your answerChoiceScoreCorrect answer

for i in range(1,51):

    print i

0

for i in range(50):

    print i

0
Should have chosen
Selected

η while σε for; Are you sure?

0
Question 3

Μπορεί να μετατραπεί η ακόλουθη 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

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

    print i

0
Selected

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

    print i

1
Should have chosen
Question 4

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

i=30

while i>19:

    print i

    i=i-2

Score: 0 of 1
Your answerChoiceScoreCorrect answer
Selected

 

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

    print i

0

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

    print i

 

0

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

    print i

0
Should have chosen
Question 5

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

i=10

while i < 25:

    print i

    i=i+5

Score: 1 of 1
Your answerChoiceScoreCorrect answer

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

    print i

0
Selected

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

    print i

1
Should have chosen

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

    print i

0
Question 6

Μπορεί να μετατραπεί η ακόλουθη 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 7

Μπορεί να μετατραπεί η παρακάτω while σε ισοδύναμη for;

i=4

while i>0:

    i=i-1

    print i

 

Score: 0 of 1
Your answerChoiceScoreCorrect answer

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

    print i

0
Should have chosen

for i in range(4,0,-1):

    print i

0
Selected

Με τίποτα!

0
Question 8

Μπορεί να μετατραπεί η παρακάτω while σε ισοδύναμη for;

i=4

while i>15:

    print i

     i=i-1

 

Score: 0 of 1
Your answerChoiceScoreCorrect answer

χμμ... μάταιος κόπος, i=4

 

0
Should have chosen

for i in range(4,15):

    print i

0
Selected

for i in range(15,4,-1):

    print i

0