1) What does a variable store in a program? a) Only numbers b) Data that can change c) Only text d) A fixed value 2) What is an algorithm? a) A type of data type b) A step-by-step set of instructions c) A programming error d) A variable name 3) Which of the following is NOT a data type in Python? a) Integer b) String c) Real d) Fraction 4) What does the operator == do in Python? a) Assigns a value b) Adds numbers c) Compares two values d) Checks for inequality 5) What is the purpose of an if statement? a) To repeat code b) To make a decision c) To define a function d) To create a list 6) What keyword is used to start a loop that repeats a fixed number of times? a) while b) repeat c) for d) loop 7) What is a syntax error? a) When the code runs forever b) When the program crashes during use c) When the code breaks programming rules d) When output is wrong 8) What does the command input() do? a) Outputs text b) Ends the program c) Adds two numbers d) Gets text from the user 9) What is a Boolean value? a) True or False b) Yes or No c) 1 or 0 d) All of the above 10) What symbol starts a comment in Python? a) // b) # c) /* d) -- 11) What is a constant? a) A value that stays the same b) A variable that changes c) A loop name d) A function name 12) What is a data type? a) Type of computer b) Type of input device c) Type of data a variable can hold d) Type of loop 13) What does print() do in Python? a) Receives input b) Displays output c) Adds numbers d) Creates a list 14) What happens when you use input() in Python? a) Program ends b) Data is printed c) A list is created d) User is asked to type something 15) What is a data value? a) The actual piece of information stored in memory b) The name of a variable c) A function d) The syntax of a statement 16) What does the not operator do? a) Checks if both are true b) Reverses a condition c) Joins two conditions d) Adds numbers 17) What keyword lets you add another condition after an if? a) elif b) else if c) also d) if 18) What keyword runs code if no other condition is true? a) if b) elif c) else d) endif
0%
Programming Fundamentals
공유
공유
공유
만든이
Hvalli
콘텐츠 편집
인쇄
퍼가기
더보기
할당
순위표
더 보기
접기
이 순위표는 현재 비공개입니다.
공유
를 클릭하여 공개할 수 있습니다.
자료 소유자가 이 순위표를 비활성화했습니다.
옵션이 자료 소유자와 다르기 때문에 이 순위표가 비활성화됩니다.
옵션 되돌리기
날아다니는 과일
(은)는 개방형 템플릿입니다. 순위표에 올라가는 점수를 산출하지 않습니다.
로그인이 필요합니다
비주얼 스타일
글꼴
구독 필요
옵션
템플릿 전환하기
모두 표시
액티비티를 플레이할 때 더 많은 포맷이 나타납니다.
결과 열기
링크 복사
QR 코드
삭제
자동 저장된
게임을 복구할까요?