1) Which is a loop structure? a) return b) for c) def d) if-else 2) What does 'return' do in a function? a) Defines function b) Starts loop c) Ends loop d) Returns value 3) How to return two values? a) return a b b) return a + b c) return a, b d) return (a) 4) What is a parameter? a) Loop variable b) Function input c) Return value d) String method 5) Which is a conditional statement? a) if b) def c) for d) while 6) What keyword defines a function? a) def b) return c) if d) loop 7) Which is not a loop? a) for b) while c) if d) do-while 8) What is a default parameter? a) Return type b) No value c) Loop counter d) Predefined value 9) How to call a function? a) function() b) return function c) call function d) def function 10) If a function is defined to return two distinct values, such as an integer and a string, and the result is assigned to a single variable, what will that variable contain? a) Only the first value (the integer), with the second value being discarded. b) Only the second value (the string), with the first value being discarded. c) A tuple containing both values, which allows the single variable to hold a sequence of multiple items. d) A list containing both values in the order they were returned.
0%
Control Structures and Functions in Python
공유
공유
공유
만든이
Ligonangel
콘텐츠 편집
인쇄
퍼가기
더보기
할당
순위표
더 보기
접기
이 순위표는 현재 비공개입니다.
공유
를 클릭하여 공개할 수 있습니다.
자료 소유자가 이 순위표를 비활성화했습니다.
옵션이 자료 소유자와 다르기 때문에 이 순위표가 비활성화됩니다.
옵션 되돌리기
게임쇼 퀴즈
(은)는 개방형 템플릿입니다. 순위표에 올라가는 점수를 산출하지 않습니다.
로그인이 필요합니다
비주얼 스타일
글꼴
구독 필요
옵션
템플릿 전환하기
모두 표시
액티비티를 플레이할 때 더 많은 포맷이 나타납니다.
결과 열기
링크 복사
QR 코드
삭제
자동 저장된
게임을 복구할까요?