[
{
"title": "상수와 변수의 차이점",
"problemType": "MULTIPLE_CHOICE",
"category": "변수",
"difficulty": 1,
"problemContent": {
"content": "다음 중 상수와 변수의 차이점에 대한 설명으로 올바른 것은 무엇입니까?",
"numberOfBlanks": 0
},
"problemChoices": [
{
"choiceText": "상수는 값을 변경할 수 없고, 변수는 값을 변경할 수 있다."
},
{
"choiceText": "상수는 값을 변경할 수 있고, 변수는 값을 변경할 수 없다."
},
{
"choiceText": "상수와 변수는 모두 값을 변경할 수 없다."
},
{
"choiceText": "상수와 변수는 모두 값을 변경할 수 있다."
}
],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": {
"choiceText": "상수는 값을 변경할 수 없고, 변수는 값을 변경할 수 있다."
},
"correctAnswerText": null
}
]
},
{
"title": "2차원 리스트 요소 접근",
"problemType": "MULTIPLE_CHOICE",
"category": "2차원 리스트",
"difficulty": 3,
"problemContent": {
"content": "2차원 리스트에서 첫 번째 행의 두 번째 요소에 접근하는 올바른 방법은 무엇입니까?",
"numberOfBlanks": 0
},
"problemChoices": [
{
"choiceText": "list[0][1]"
},
{
"choiceText": "list[1][2]"
},
{
"choiceText": "list[1][1]"
},
{
"choiceText": "list[0, 1]"
}
],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": {
"choiceText": "list[0][1]"
},
"correctAnswerText": null
}
]
},
{
"title": "명시적 형변환",
"problemType": "FILL_IN_THE_BLANK",
"category": "자료형",
"difficulty": 2,
"problemContent": {
"content": "다음 코드는 문자열을 정수로 변환하는 코드입니다. 빈칸에 알맞은 내용을 채워서 코드를 완성하세요.\n\nnum_str = '123'\nnum_int = $blank1$(num_str)\nprint('Integer value:', num_int)\n",
"numberOfBlanks": 1
},
"problemChoices": [
{
"choiceText": "int"
},
{
"choiceText": "float"
},
{
"choiceText": "floor"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "int"
},
"correctAnswerText": null
}
]
},
{
"title": "두 수의 나눗셈",
"problemType": "FILL_IN_THE_BLANK",
"category": "연산자",
"difficulty": 2,
"problemContent": {
"content": "변수 x와 y의 나눈 값과 나머지를 출력하세요.\nx = 10\ny = 3\nz = x $blank1$ y\nremainder = x $blank2$ y\nprint(z, remainder)",
"numberOfBlanks": 2
},
"problemChoices": [
{
"choiceText": "/"
},
{
"choiceText": "%"
},
{
"choiceText": "+"
},
{
"choiceText": "-"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "/"
},
"correctAnswerText": null
},
{
"blankPosition": 2,
"correctChoice": {
"choiceText": "%"
},
"correctAnswerText": null
}
]
},
{
"title": "조건문 문제",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "조건문",
"difficulty": 1,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nx = 10\ny = 20\nif x < y:\n print('1')\nelse:\n print('2')",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "1"
}
]
},
{
"title": "딕셔너리 값 접근 문제",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "자료형",
"difficulty": 1,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nstudent = {'name': 'Alice', 'age': 20, 'grade': 'A'}\nprint(student['grade'])",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "A"
}
]
}
]