Search Header Logo

8 դաս for while ցիկլեր

Authored by Gayane Hayrapetyan

Computers

8th Grade

Used 6+ times

8 դաս for while ցիկլեր
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Ինչի՞ համար է օգտագործվում for ցիկլը Python-ում։

  • Փոփոխականներ հայտարարգելու համար

  • Միայն մեկ անգամ գործողություն կատարելու համար

  • Միայն երկու պայմանների համեմատության համար

  • Միևնույն գործողությունը բազմիցս կատարելու համար

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Ո՞րն է ճիշտ for ցիկլի գրության ձևը Python-ում։

  • for i in range(5): print(i)

  • for (i = 0; i < 5; i++) { print(i); }

  • foreach i in range(5) do print(i)

  • loop i in range(5) print(i)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Ի՞նչ կարտածի հետևյալ for ցիկլը:

  • for i in range(2, 7, 2):

    print(i, end=" ")

  • 2 3 4 5 6

  • 2 4 6

  • 2 6

  • Error

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Ինչպե՞ս կարելի է ընդհատել while ցիկլի աշխատանքը։

  • continue հրամանի միջոցով

  • break հրամանի միջոցով

  • exit հրամանի միջոցով

  • stop հրամանի միջոցով

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ի՞նչ կլինի հետևյալ while ցիկլի դեպքում:

x = 5 while x > 0: print(x) x -= 1

  • Կարտածի 5 4 3 2 1 և կավարտվի

  • Կարտածի 5 4 3 2 1 0

  • Անվերջ կաշխատի

  • Սխալ կգեներացվի

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ինչի՞ համար է օգտագործվում while ցիկլը։

  • Միևնույն գործողությունը բազմիցս կատարելու համար, քանի դեռ պայմանը ճիշտ է

  • Միայն ֆունկցիաներ հայտարարելու համար

  • Միայն ցուցակների հետ աշխատելու համար

  • Միայն մեկ անգամ գործողություն կատարելու համար

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ո՞րն է ճիշտ while ցիկլի գրության ձևը Python-ում։

  • while x > 0: print(x); x--

  • while (x > 0) { print(x); x--; }

  • while x > 0: print(x); x -= 1

  • while x > 0 { print(x); x -= 1 }

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?