Python test

Python test

University

5 Qs

quiz-placeholder

Similar activities

CS100||MsWord

CS100||MsWord

University

10 Qs

DSA quiz 3 set 1

DSA quiz 3 set 1

University

10 Qs

Quiz - CSE

Quiz - CSE

University

10 Qs

2024 - Struktur Data Quiz 1

2024 - Struktur Data Quiz 1

University

10 Qs

Python Week 1 & 2

Python Week 1 & 2

University

10 Qs

Kuis Informatika

Kuis Informatika

University

10 Qs

Fun and Interesting Facts about Technology

Fun and Interesting Facts about Technology

University - Professional Development

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