Jak w Pythonie definiuje się funkcję?
Funkcje w języku Python

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Grzegorz Gołębiewski
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
def function_name:
function function_name():
def function_name():
define function_name()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Co zwróci funkcja bez jawnej instrukcji return?
0
False
None
'' - (pusty ciąg znaków)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Co oznacza termin "argument pozycyjny" w kontekście funkcji?
Argumenty przekazywane w formie listy.
Argumenty przekazywane zgodnie z ich pozycją w definicji funkcji.
Argumenty przekazywane z nazwami.
Argumenty przekazywane z wartościami domyślnymi.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Jak nazywamy argument, który ma przypisaną wartość domyślną w definicji funkcji?
Argument pozycyjny
Argument nazwany
Argument z wartością domyślną
Argument kluczowy
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Co oznacza przekazywanie argumentów przez wartość?
Argumenty są kopiowane i modyfikacje nie wpływają na oryginalne dane.
Argumenty są przekazywane jako referencje do zmiennych.
Argumenty są przekazywane jako łańcuchy znaków.
Argumenty są konwertowane na wartości domyślne.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Które z poniższych typów są przekazywane przez referencję w Pythonie?
Zmienne proste (np. int, float)
Listy i słowniki
Stałe (np. tuple)
Wszystkie typy zmiennych
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Która z poniższych składni wywołuje funkcję z użyciem argumentu nazwanego?
function(5)
function(arg1=5)
function(arg1, 5)
function 5
Create a free account and access millions of resources
Similar Resources on Quizizz
22 questions
Python podstawy

Quiz
•
10th Grade
20 questions
EXCEL

Quiz
•
9th Grade
20 questions
PYTHON

Quiz
•
9th - 12th Grade
20 questions
Quzi python- Szymon A

Quiz
•
9th - 12th Grade
20 questions
Python turtle year 8 assessment

Quiz
•
7th - 9th Grade
20 questions
Python turtle

Quiz
•
8th - 9th Grade
20 questions
Procedures and Functions

Quiz
•
10th Grade
30 questions
Algorytmy na liczbach całkowitych i tekstach

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University