Syntax Error: A student creates a Python function to calculate the area of a circle. When she runs it, the IDE highlights the line containing radius = input("Enter radius") with an error message: "SyntaxError: invalid syntax"., A game developer forgets to close a string with quotation marks in the dialogue script. The IDE flags the line and stops the program from compiling., A programmer writes code with an incorrect indent in a for-loop. The IDE highlights the issue with: "IndentationError: expected an indented block"., A web developer forgets to include a colon at the end of a def statement. The IDE shows: "SyntaxError: expected ':'"., Logical Error: A programmer writes a loop to add numbers from 1 to 5. However, the program prints 15 even though it was expected to print 10. There are no error messages., A developer writes code to multiply two numbers but accidentally uses the + operator instead of *. The program runs but produces incorrect results., A calculator app works for most functions, but when subtracting a larger number from a smaller one, it gives a positive result instead of a negative one., Runtime Error: When testing a finance app, a user enters a loan period of 0 years. The app crashes and shows the message: "ZeroDivisionError: division by zero"., A student writes a program to open a file and read its content. When the program is run without the file being present, it crashes with: "FileNotFoundError: [Errno 2] No such file or directory"., A weather app crashes when the temperature data from the web is not a number, and the code tries to convert it to an integer.,
0%
Identifying types of programming errors
공유
공유
공유
만든이
Optimaosvitaeng
Computer science
콘텐츠 편집
인쇄
퍼가기
더보기
할당
순위표
더 보기
접기
이 순위표는 현재 비공개입니다.
공유
를 클릭하여 공개할 수 있습니다.
자료 소유자가 이 순위표를 비활성화했습니다.
옵션이 자료 소유자와 다르기 때문에 이 순위표가 비활성화됩니다.
옵션 되돌리기
속도 정렬
(은)는 개방형 템플릿입니다. 순위표에 올라가는 점수를 산출하지 않습니다.
로그인이 필요합니다
비주얼 스타일
글꼴
구독 필요
옵션
템플릿 전환하기
모두 표시
액티비티를 플레이할 때 더 많은 포맷이 나타납니다.
결과 열기
링크 복사
QR 코드
삭제
자동 저장된
게임을 복구할까요?