1) Which Python keyword makes an if run only when every test is True? a) AND b) OR 2) Which Python keyword makes an if run only when either test is True? a) AND b) OR 3) Fill the blank so the test keeps a number inside 1-9: if value > 0 ___ value < 10: a) AND b) OR 4) Given num = 10, what would be the ouput? a) Inside b) Outside c) True d) False 5) Given num = 6, what would be the ouput? a) Inside b) Outside c) True d) False 6) Which line is a valid Python test using Boolean operators? a) if value > 0 and < 10: b) if value>0 and value < 10: c) if value > 0 < 10: d) if 0 > value < 10: 7) True OR False evaluates to… a) True b) False 8) True AND False evaluates to… a) True b) False 9) Given age = 14 - ticket =no - money =yes what would be the output a) Allowed b) Not Allowed c) allowed d) Not allowed 10) Given age = 15 - ticket =no - money =yes what would be the output a) Allowed b) Not Allowed c) allowed d) Not allowed 11) Given temp=24 what would be the output a) Extreme Weather b) Ideal Room Temp c) Medium d) Ideal room temp 12) Given temp=30 what would be the output a) Extreme Weather b) Ideal Room Temp c) Medium d) Ideal room temp 13) Given temp=0 what would be the output a) Extreme Weather b) Ideal Room Temp c) Medium d) Ideal room temp 14) Given age=12 and adult ==no what would be the output a) Ride not approved b) Ride approved c) False d) True 15) How could this program be improved? a) Use more IF statements b) Only ask "Are you with an adult (yes/no)? " if age is between 12 and 18 c) Display "Ride not approved" immediately if age is less than 12 d) All of these
0%
Python Boolean
공유
공유
공유
만든이
Thossain24
콘텐츠 편집
인쇄
퍼가기
더보기
할당
순위표
더 보기
접기
이 순위표는 현재 비공개입니다.
공유
를 클릭하여 공개할 수 있습니다.
자료 소유자가 이 순위표를 비활성화했습니다.
옵션이 자료 소유자와 다르기 때문에 이 순위표가 비활성화됩니다.
옵션 되돌리기
퀴즈
(은)는 개방형 템플릿입니다. 순위표에 올라가는 점수를 산출하지 않습니다.
로그인이 필요합니다
비주얼 스타일
글꼴
구독 필요
옵션
템플릿 전환하기
모두 표시
액티비티를 플레이할 때 더 많은 포맷이 나타납니다.
결과 열기
링크 복사
QR 코드
삭제
자동 저장된
게임을 복구할까요?