
Python test

Quiz
•
Computers
•
University
•
Hard
Гулбаршын Утеген
Used 2+ times
FREE Resource
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'))
Что выводит данная программа
длину строки
выводит символы строки отдельно
выводит строку в обратном порядке
Similar Resources on Wayground
10 questions
Python Workshop 4 Review

Quiz
•
University
10 questions
5-函数

Quiz
•
University
10 questions
J277 - 2.2 - Functions in Python

Quiz
•
10th Grade - University
10 questions
Programacion

Quiz
•
University
9 questions
The Ruby Erudite Saga Quiz

Quiz
•
University
10 questions
GDSC Android Bootcamp [Kotlin Quiz]

Quiz
•
University
10 questions
ED-U1.4 Classes

Quiz
•
University
8 questions
простой тест программирование

Quiz
•
1st Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University