← 수업 제작 도구
홈 › Components › Challenge Creator (챌린지 크리에이터) › 화면 1

화면 1. Challenge Creator.preventSubmissionReason [Sink]

원본: Computation Layer 문서(Challenge Creator (챌린지 크리에이터)) · Try It (원본 화면)

화면 번호1 / 6
문서 항목 설명 (원문)preventSubmissionReason: Can the student submit this challenge? Provide an error message if not, empty string if so.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 1 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1master CL
(화면 전체)
SCREEN
subtitle: "NOTE: This is a partial activity. For the completed version of this activity visit: 
https://teacher.desmos.com/activitybuilder/custom/631113fe5a3760f46d5b0b82"
▶ 화면 제목 아래에 표시할 부제목(subtitle)은 "NOTE: This is a partial activity. For the completed version of this activity visit:"(참고: 이 활동은 일부만 담고 있다. 이 활동의 완성본은 다음 주소를 보시오:)와 완성본 주소 https://teacher.desmos.com/activitybuilder/custom/631113fe5a3760f46d5b0b82로 한다.
2레이블 없는 챌린지 크리에이터챌린지 크리에이터
# Enable students to submit their response if a multiple choice option has been selected. 
# Otherwise disable the “Submit Response” button and display the message “Make a selection.”
▷ 객관식 보기가 하나라도 선택되었으면 학생이 응답을 제출할 수 있게 한다. 그렇지 않으면 "Submit Response"(응답 제출) 버튼을 비활성화하고 "Make a selection."(하나를 선택하시오.)이라는 메시지를 보여 준다.
preventSubmissionReason: 
  when mcCC2.isSelected(1) or mcCC2.isSelected(2) or mcCC2.isSelected(3) ""
  otherwise "Make a selection."
▶ 제출을 막는 이유(preventSubmissionReason)는 mcCC2의 1번, 2번, 3번 보기 중 하나라도 선택되었으면 빈 글자, 아니면 "Make a selection."(하나를 선택하시오.)로 한다.
isSelected(번호)는 객관식 구성요소에서 그 번호의 보기가 선택되었는지를 참 또는 거짓으로 알려 주고, or는 둘 중 하나라도 참이면 참이며, when은 조건을 차례로 확인해 처음 맞는 값을 쓴다.