
Python test
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Гулбаршын Утеген
Used 2+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
A level Computer Science In-fix post-fix Reverse polish
Quiz
•
10th Grade - University
10 questions
Introduction of Computer Vision
Quiz
•
University
10 questions
Python Quiz
Quiz
•
University
10 questions
Kuis 3 - ASD (B)
Quiz
•
University
10 questions
Fondos CSS3
Quiz
•
University
10 questions
Amalan Pengkomputeran 4
Quiz
•
7th Grade - Professio...
9 questions
Jak dobrze znająsz MSP?
Quiz
•
1st Grade - University
10 questions
Quiz 1a NDJ30103
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
