Python test

Python test

University

5 Qs

quiz-placeholder

Similar activities

2.4 Reka Bentuk Elektronik

2.4 Reka Bentuk Elektronik

1st Grade - University

10 Qs

Variablen und Vergleiche

Variablen und Vergleiche

University

10 Qs

Quiz by Mycomputerguide

Quiz by Mycomputerguide

3rd Grade - University

10 Qs

DAP215 Module 06 Quiz

DAP215 Module 06 Quiz

University

10 Qs

Java Control Flow statements

Java Control Flow statements

University

10 Qs

Node.js

Node.js

University

10 Qs

GL/FRS and XBRL Activity

GL/FRS and XBRL Activity

University

10 Qs

Python test

Python test

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Гулбаршын Утеген

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Укажите правильное объявление функций

def pow_func(x, y):

return p

def (x, y):

return p

pow_func(x, y):

return p

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def max_of_two( x, y ):

if x > y:

return x

return y

def max_of_three( x, y, z ):

return max_of_two( x, max_of_two( y, z ) )

print(max_of_three(3, 6, -5))

Что возвращает данная функция

3

6

-5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def sum(numbers):

total = 0 for x in numbers:

total += x

return total print(sum((8, 2, 3, 0, 7)))

Что возвращает данная функция?

8

20

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def func1(numbers):

total = 1 for x in numbers:

total *= x

return total

print(func1((8, 2, 3, -1, 7)))

Что возвращает данная функция?

умножение чисел

сумму всех чисел

печатает все числа

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def string_func(str1):

rstr1 = ''

index = len(str1)

while index > 0:

rstr1 += str1[ index - 1 ]

index = index - 1

return rstr1

print(string_func('1234abcd'))

Что выводит данная программа

длину строки

выводит символы строки отдельно

выводит строку в обратном порядке

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?

Discover more resources for Computers