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
20 questions
Процедура және функция

Quiz
•
10th Grade
22 questions
Python podstawy

Quiz
•
10th Grade
28 questions
Test próbny EE.09 (JavaScript)

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

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

Quiz
•
8th - 9th Grade
28 questions
Excel_kl2

Quiz
•
12th Grade
20 questions
Quiz słowa kluczowe w języku C++

Quiz
•
10th Grade
20 questions
excel podstawy

Quiz
•
9th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade