20개

  1. 변수 - 2

    [
    	{
            "title": "두 변수를 곱하는 문제",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "변수",
            "difficulty": ,
            "problemContent": {
                "content": "변수 x와 y를 곱한 결과를 저장하고 출력하세요.\nx = 3\ny = 4\nz = $blank1$ * y\nprint($blank2$)",
                "numberOfBlanks": 2
            },
            "problemChoices": [
                {
                    "choiceText": "x"
                },
                {
                    "choiceText": "12"
                },
                {
                    "choiceText": "5"
                },
                {
                    "choiceText": "8"
                }
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "x"
                    },
                    "correctAnswerText": null
                },
                {
                    "blankPosition": 2,
                    "correctChoice": {
                        "choiceText": "12"
                    },
                    "correctAnswerText": null
                }
            ]
        },
        {
            "title": "두 변수를 더하는 문제",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "변수",
            "difficulty": ,
            "problemContent": {
                "content": "변수 b와 c를 더한 값을 출력하세요.\na = 10\nb = a + 5\nc = b * 2\nprint($blank1$ + $blank2$)",
                "numberOfBlanks": 2
            },
            "problemChoices": [
                {
                    "choiceText": "b"
                },
                {
                    "choiceText": "c"
                },
                {
                    "choiceText": "a"
                },
                {
                    "choiceText": "5"
                }
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "b"
                    },
                    "correctAnswerText": null
                },
                {
                    "blankPosition": 2,
                    "correctChoice": {
                        "choiceText": "c"
                    },
                    "correctAnswerText": null
                }
            ]
        },
    ]
    
  2. 자료형 - 2

    [
    	{
            "title": "실수형으로 변환",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "자료형",
            "difficulty": ,
            "problemContent": {
                "content": "변수 x와 y의 합을 실수형으로 변환하여 출력하세요.\nx = 10\ny = 3.14\nz = $blank1$(x + y)\nprint(z)",
                "numberOfBlanks": 1
            },
            "problemChoices": [
                {
                    "choiceText": "float"
                },
                {
                    "choiceText": "int"
                },
                {
                    "choiceText": "str"
                },
                {
                    "choiceText": "bool"
                }
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "float"
                    },
                    "correctAnswerText": null
                }
            ]
        },
        {
            "title": "문자열로 변환",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "자료형",
            "difficulty": ,
            "problemContent": {
                "content": "이름과 나이를 문자열로 변환하여 출력하세요.\n이름 = 'Alice'\n나이 = 25\n정보 = '이름: ' + $blank1$ + ', 나이: ' + $blank2$(age)\nprint(info)",
                "numberOfBlanks": 2
            },
            "problemChoices": [
                {
                    "choiceText": "name"
                },
                {
                    "choiceText": "str"
                },
                {
                    "choiceText": "age"
                },
                {
                    "choiceText": "int"
                }
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "name"
                    },
                    "correctAnswerText": null
                },
                {
                    "blankPosition": 2,
                    "correctChoice": {
                        "choiceText": "str"
                    },
                    "correctAnswerText": null
                }
            ]
        },
    ]
    
  3. 연산자 - 2

    [
    	{
            "title": "두 수의 합",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "연산자",
            "difficulty": ,
            "problemContent": {
                "content": "변수 x와 y의 합을 출력하세요.\nx = 5\ny = 2\nz = x $blank1$ y\nprint(z)",
                "numberOfBlanks": 1
            },
            "problemChoices": [
                {
                    "choiceText": "+"
                },
                {
                    "choiceText": "-"
                },
                {
                    "choiceText": "*"
                },
                {
                    "choiceText": "/"
                }
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "+"
                    },
                    "correctAnswerText": null
                }
            ]
        },
        {
            "title": "두 수의 나눗셈",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "연산자",
            "difficulty": ,
            "problemContent": {
                "content": "변수 x와 y의 나눈 값과 나머지를 출력하세요.\nx = 10\ny = 3\nz = x $blank1$ y\n나머지 = 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
                }
            ]
        }
    ]
    
  4. 표준입출력 - 1

    [
    	{
        "title": "사용자로부터 입력받아 인사하기",
        "problemType": "FILL_IN_THE_BLANK",
        "category": "표준입출력",
        "difficulty": ,
        "problemContent": {
            "content": "# 사용자로부터 이름을 입력받아 인사말을 출력하는 코드를 완성하세요.\nname = $blank1$\nprint('Hello,', name)",
            "numberOfBlanks": 1
        },
        "problemChoices": [
            {
                "choiceText": "input()"
            },
            {
                "choiceText": "read()"
            },
            {
                "choiceText": "scan()"
            },
            {
                "choiceText": "get()"
            }
        ],
        "problemAnswers": [
            {
                "blankPosition": 1,
                "correctChoice": {
                    "choiceText": "input()"
                },
                "correctAnswerText": null
            }
        ]
    }
    
    ]
    
  5. 파일입출력 - 0

  6. 반복문 - 2

    [
    	{
            "title": "1부터 5까지 숫자 출력하기",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "반복문",
            "difficulty": ,
            "problemContent": {
                "content": "1부터 5까지의 숫자를 출력하는 코드를 완성하세요.\nfor i in $blank1$(1, $blank2$):\n    print(i)",
                "numberOfBlanks": 2
            },
            "problemChoices": [
                {
                    "choiceText": "range"
                },
                {
                    "choiceText": "6"
                },
                {
                    "choiceText": "1"
                },
                {
                    "choiceText": "5"
                }
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "range"
                    },
                    "correctAnswerText": null
                },
                {
                    "blankPosition": 2,
                    "correctChoice": {
                        "choiceText": "6"
                    },
                    "correctAnswerText": null
                }
            ]
        },
        {
            "title": "리스트의 모든 요소 출력하기",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "반복문",
            "difficulty": ,
            "problemContent": {
                "content": "주어진 리스트의 모든 요소를 출력하는 코드를 완성하세요.\nfruits = ['apple', 'banana', 'cherry']\nfor $blank1$ in $blank2$:\n    print(fruit)",
                "numberOfBlanks": 2
            },
            "problemChoices": [
                {
                    "choiceText": "fruit"
                },
                {
                    "choiceText": "fruits"
                },
                {
                    "choiceText": "i"
                },
                {
                    "choiceText": "range"
                }
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "fruit"
                    },
                    "correctAnswerText": null
                },
                {
                    "blankPosition": 2,
                    "correctChoice": {
                        "choiceText": "fruits"
                    },
                    "correctAnswerText": null
                }
            ]
        }
    ]
    
  7. 조건문 - 1

    [
    	{
            "title": "양수인지 음수인지 판별하는 조건문",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "조건문",
            "difficulty": ,
            "problemContent": {
                "content": "입력된 숫자가 양수인지 음수인지 판별하는 조건문을 완성하세요.\nnum = int(input('숫자를 입력하세요: '))\nif num > 0:\n    print('$blank1$')\nelse:\n    print('$blank2$')",
                "numberOfBlanks": 2
            },
            "problemChoices": [
                {
                    "choiceText": "'양수'"
                },
                {
                    "choiceText": "'음수'"
                },
                {
                    "choiceText": "'0'"
                },
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "'양수'"
                    },
                    "correctAnswerText": null
                },
                {
                    "blankPosition": 2,
                    "correctChoice": {
                        "choiceText": "'음수'"
                    },
                    "correctAnswerText": null
                }
            ]
        }
    ]
    
  8. 1차원 리스트 - 2

    [
    	{
            "title": "1차원 리스트에서 첫 번째 요소 출력",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "1차원 리스트",
            "difficulty": ,
            "problemContent": {
                "content": "주어진 리스트의 첫 번째 요소를 출력하는 코드를 완성하세요.\nfruits = ['apple', 'banana', 'cherry']\nprint($blank1$[0])",
                "numberOfBlanks": 1
            },
            "problemChoices": [
                {
                    "choiceText": "fruits"
                },
                {
                    "choiceText": "fruit"
                },
                {
                    "choiceText": "0"
                },
                {
                    "choiceText": "'apple'"
                }
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "fruits"
                    },
                    "correctAnswerText": null
                }
            ]
        },
        {
            "title": "1차원 리스트에 요소 추가하기",
            "problemType": "FILL_IN_THE_BLANK",
            "category": "1차원 리스트",
            "difficulty": ,
            "problemContent": {
                "content": "fruits 리스트에 'cherry'를 추가하는 코드를 완성하세요.\nfruits = ['apple', 'banana']\nfruits.$blank1$('$blank2$')\nprint(fruits)",
                "numberOfBlanks": 2
            },
            "problemChoices": [
                {
                    "choiceText": "append"
                },
                {
                    "choiceText": "'cherry'"
                },
                {
                    "choiceText": "insert"
                },
                {
                    "choiceText": "'orange'"
                }
            ],
            "problemAnswers": [
                {
                    "blankPosition": 1,
                    "correctChoice": {
                        "choiceText": "append"
                    },
                    "correctAnswerText": null
                },
                {
                    "blankPosition": 2,
                    "correctChoice": {
                        "choiceText": "'cherry'"
                    },
                    "correctAnswerText": null
                }
            ]
        },
    ]