1.
{
"title": "문자열 출력하기",
"problemType": "FILL_IN_THE_BLANK",
"category": "표준입출력",
"difficulty": ,
"problemContent": {
"content": "다음 파이썬 코드는 변수를 사용하여 문자열을 출력합니다.\n\nmessage = 'Hello, World!'\n$blank1$(message)\n\n보기 중 알맞은 방법을 선택하세요.",
"numberOfBlanks": 1
},
"problemChoices": [
{
"choiceText": "print"
},
{
"choiceText": "printf"
},
{
"choiceText": "console.log"
},
{
"choiceText": "printf"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "print"
},
"correctAnswerText": null
}
]
}
2.
{
"title": "암묵적 형변환",
"problemType": "FILL_IN_THE_BLANK",
"category": "자료형",
"difficulty": ,
"problemContent": {
"content": "다음 파이썬 코드의 실행 결과 2가 출력될 때, 빈칸에 들어갈 알맞은 보기를 선택하세요.\n\nprint(True + 1)",
"numberOfBlanks": 1
},
"problemChoices": [
{
"choiceText": "True"
},
{
"choiceText": "'1'"
},
{
"choiceText": "False"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "True"
},
"correctAnswerText": null
}
]
}
3.
{
"title": "연산자 문제",
"problemType": "FILL_IN_THE_BLANK",
"category": "연산자",
"difficulty": ,
"problemContent": {
"content": "다음 코드는 x를 y번 곱한 값을 출력합니다.\n\nx = 7\ny = 3\nresult = x $blank1$ y\nprint(result)\n\n빈칸에 들어갈 올바른 연산자를 선택하세요.",
"numberOfBlanks": 1
},
"problemChoices": [
{
"choiceText": "**"
},
{
"choiceText": "%"
},
{
"choiceText": "//"
},
{
"choiceText": "/"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "**"
},
"correctAnswerText": null
}
]
}
4.
{
"title": "홀수 짝수 판별문",
"problemType": "FILL_IN_THE_BLANK",
"category": "조건문",
"difficulty": ,
"problemContent": {
"content": "다음 코드는 사용자가 입력한 숫자가 짝수인지 홀수인지 확인하는 조건문입니다.\n\nnumber = int(input('Enter a number: '))\nif $blank1$ % 2 == 0:\n print('짝수')\nelse:\n print('홀수')\n\n빈칸에 알맞은 코드를 채우세요.",
"numberOfBlanks": 1
},
"problemChoices": [
{
"choiceText": "number"
},
{
"choiceText": "input"
},
{
"choiceText": "num"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "number"
},
"correctAnswerText": null
}
]
}
5.
{
"title": "반복문을 활용한 리스트의 합 구하기",
"problemType": "FILL_IN_THE_BLANK",
"category": "반복문",
"difficulty": ,
"problemContent": {
"content": "다음 파이썬 코드는 반복문을 통해 리스트 요소의 전체 합을 구합니다.\n\nsum = 0\nnumbers = [1, 2, 3, 4, 5]\nfor number in $blank1$:\n sum += number\nprint(sum)\n\n빈칸에 알맞은 내용을 채우세요.",
"numberOfBlanks": 1
},
"problemChoices": [
{
"choiceText": "numbers"
},
{
"choiceText": "number"
},
{
"choiceText": "sum"
},
{
"choiceText": "sum(numbers)"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "numbers"
},
"correctAnswerText": null
}
]
}
6.
{
"title": "변수와 자료형 문제",
"problemType": "FILL_IN_THE_BLANK",
"category": "변수",
"difficulty": ,
"problemContent": {
"content": "다음 코드는 두 변수의 값을 바꾸는 코드입니다. 빈칸에 알맞은 내용을 채워서 코드를 완성하세요.\n\nx = 5\ny = 10\nx, y = $blank1$, $blank2$\nprint('x:', x)\nprint('y:', y)\n\n빈칸에 들어갈 알맞은 내용을 채우세요.",
"numberOfBlanks": 2
},
"problemChoices": [
{
"choiceText": "y"
},
{
"choiceText": "x"
},
{
"choiceText": "10"
},
{
"choiceText": "5"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "y"
},
"correctAnswerText": null
},
{
"blankPosition": 2,
"correctChoice": {
"choiceText": "x"
},
"correctAnswerText": null
}
]
}
7.
{
"title": "리스트의 최대값",
"problemType": "FILL_IN_THE_BLANK",
"category": "1차원 리스트",
"difficulty": ,
"problemContent": {
"content": "다음 파이썬 코드는 리스트에서 최댓값을 찾는 코드를 보여줍니다.\n\nnumbers = [3, 6, 2, 8, 4]\nmax_value = $blank1$\nfor num in numbers:\n if num > max_value:\n max_value = $blank2$\nprint($blank3$)\n\n빈칸에 알맞은 내용을 채우세요.",
"numberOfBlanks": 3
},
"problemChoices": [
{
"choiceText": "numbers[0]"
},
{
"choiceText": "num"
},
{
"choiceText": "max_value"
},
{
"choiceText": "max"
},
{
"choiceText": "number"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "numbers[0]"
},
"correctAnswerText": null
},
{
"blankPosition": 2,
"correctChoice": {
"choiceText": "num"
},
"correctAnswerText": null
},
{
"blankPosition": 3,
"correctChoice": {
"choiceText": "max_value"
},
"correctAnswerText": null
}
]
}
8.
{
"title": "2차원 리스트 합 구하기",
"problemType": "FILL_IN_THE_BLANK",
"category": "2차원 리스트",
"difficulty": ,
"problemContent": {
"content": "다음 코드는 2차원 리스트에서 모든 요소를 순회하며 합을 구하는 반복문입니다.\n\nsum = 0\nmatrix = [[1, 2], [3, 4], [5, 6]]\nfor row in $blank1$:\n for element in $blank2$:\n sum += $blank3$\n\n빈칸에 알맞은 내용을 채우세요.",
"numberOfBlanks": 3
},
"problemChoices": [
{
"choiceText": "matrix"
},
{
"choiceText": "row"
},
{
"choiceText": "element"
},
{
"choiceText": "column"
},
{
"choiceText": "sum(row)"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "matrix"
},
"correctAnswerText": null
},
{
"blankPosition": 2,
"correctChoice": {
"choiceText": "row"
},
"correctAnswerText": null
},
{
"blankPosition": 3,
"correctChoice": {
"choiceText": "element"
},
"correctAnswerText": null
}
]
}
9.
{
"title": "연산자 문제",
"problemType": "FILL_IN_THE_BLANK",
"category": "연산자",
"difficulty": ,
"problemContent": {
"content": "다음 코드는 a를 b로 나눈 몫을 구하는 연산을 수행합니다. 빈칸에 알맞은 연산자를 채워서 코드를 완성하세요.\n\na = 20\nb = 6\nresult = a $blank1$ b\nprint('The quotient is:', result)\n\n빈칸에 들어갈 알맞은 연산자를 채우세요.",
"numberOfBlanks": 1
},
"problemChoices": [
{
"choiceText": "//"
},
{
"choiceText": "%"
},
{
"choiceText": "**"
},
{
"choiceText": "/"
}
],
"problemAnswers": [
{
"blankPosition": 1,
"correctChoice": {
"choiceText": "//"
},
"correctAnswerText": null
}
]
}
10.