1) Operators used to compare values such as: ==, >, <, <=, >=, != a) Relational operator b) Logical operator 2) Operators which result in either true or false such as: or and not a) Relational operator b) Logical operator 3) Combines else and if, allows you to add more than one a) If statement b) Elif statement 4) Selection/decision statement used to choose the code blocks to run a) If-else statement b) If statement 5) A reference to a location in memory for data storage a) Variable b) Data type 6) Can we write if/else into one line in python? a) Yes b) No c) if/else not used in python d) None of the above 7) What is the result of the condition passed in the if block in Python? a) “Boolean Output” b) Numerical Output” c) ”Both based on the scenario” d) ”None of these” 8) What keyword would you use to add an alternative condition to an if statement? a) else if b) elseif c) elif d) None of the above 9) Which one of the following is a invalid Python if statement : a) if a>=2 : b) if (a >= 2): c) if (a => 22): d) none of the above: 10) Does python have switch case statement? a) True b) False c) Python has switch statement but we can not use it. d) None of the above
0%
Python If statements
공유
공유
공유
만든이
Nn87
콘텐츠 편집
인쇄
퍼가기
더보기
할당
순위표
더 보기
접기
이 순위표는 현재 비공개입니다.
공유
를 클릭하여 공개할 수 있습니다.
자료 소유자가 이 순위표를 비활성화했습니다.
옵션이 자료 소유자와 다르기 때문에 이 순위표가 비활성화됩니다.
옵션 되돌리기
게임쇼 퀴즈
(은)는 개방형 템플릿입니다. 순위표에 올라가는 점수를 산출하지 않습니다.
로그인이 필요합니다
비주얼 스타일
글꼴
구독 필요
옵션
템플릿 전환하기
모두 표시
액티비티를 플레이할 때 더 많은 포맷이 나타납니다.
결과 열기
링크 복사
QR 코드
삭제
자동 저장된
게임을 복구할까요?