Search Header Logo

Python 150-200

Authored by Инжу Максутова

Mathematics

5th Grade

Used 4+ times

Python 150-200
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 

151. Келесі программа нәтижесінде не шығарылады?

               a=[1, -1, 2, 5, 1, -3, 8, -6]

               for i in range(len(a)):

if a[i] < 3:

                                   print(a[i])

                       else: break

 

A) 1, -1, 2, 1, -3, -6

 

B) 8

 

D) 5, 8

 

 

E) 1,-1, 2

 

C) 0, 1, 2

 

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

152. Программаның  орындалу нәтижесін көрсетіңіз.

ab=”Ok”

print(“ab”*3)

 

E) okokok

A) ababab

B) “ababab”

C) aaabbb

D) ok

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

153. Программа нәтижесін анықтаңыз:

     def sum(*n):

         s=0

         for a in n:

              s=s+a

    print(sum(3,5,7)

    print(sum(1,2,3,4,5)

32 32

A) 28  24

E) 16  28

B) 32  28

15 15

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

154. List=[10,20,30,40]

Print(List.pop())

10

20

40

30

100

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

155. Программа нәтижесін анықтаңыз:

tupl=(5,1,3,5,2,12,7,4)

n=tupl.count(5)

a=tupl*n

print(a)

compile error

(5, 1, 3, 5, 12, 7, 4, 5, 1, 3, 5, 12, 7, 4)

16

(5, 1, 3, 5, 12, 7, 4)

(5 ,1, 3, 5, 2)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Массивтің элементтерінің көбейтіндісін тап.

P=0 for i in range(0,n):  P*=A[i].

P=n for i in range(0,n):  P*=A[i].

P=0 for i in range(1,n):  P*=A[i].

P=1 for i in range(1,n):  P*=A[i].

P=1 for i in range(0,n):  P*=A[i].

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Программаның  орындалу нәтижесін көрсетіңіз.

name = "Python"

print('Hello  %s'  % name)

"Hello, "

“python”

"Hello  Python" 

"Hello, name"

compile  error

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?