[
{
"title": "문자열 슬라이싱 문제",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "자료형",
"difficulty": 1,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\ns = 'Python Programming'\nprint(s[0:6])",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "Python"
}
]
},
{
"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": "1차원 리스트",
"difficulty": 1,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [10, 20, 30, 40, 50]\nprint(sum(numbers))",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "150"
}
]
},
{
"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"
}
]
},
{
"title": "리스트와 반복문 사용",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "1차원 리스트",
"difficulty": 2,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [1, 2, 3, 4, 5]\nsum = 0\nfor num in numbers:\n sum += num\nprint(sum)",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "15"
}
]
},
{
"title": "리스트 기본 접근",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "1차원 리스트",
"difficulty": 1,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nfruits = ['apple', 'banana', 'cherry']\nprint(fruits[0])",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "apple"
}
]
},
{
"title": "리스트 합",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "1차원 리스트",
"difficulty": 1,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [1, 2, 3]\nprint(sum(numbers))",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "6"
}
]
},
{
"title": "리스트 최소값",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "1차원 리스트",
"difficulty": 2,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [3, 1, 4, 1, 5, 9]\nprint(min(numbers))",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "1"
}
]
},
{
"title": "리스트 최대값",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "1차원 리스트",
"difficulty": 2,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [3, 1, 4, 1, 5, 9]\nprint(max(numbers))",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "9"
}
]
},
{
"title": "리스트 합",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "조건문",
"difficulty": 2,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\neven_sum = 0\nfor num in numbers:\n if num % 2 == 0:\n even_sum += num\nprint(even_sum)",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "30"
}
]
},
{
"title": "리스트 합",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "조건문",
"difficulty": 2,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [10, 15, 20, 25, 30, 35, 40]\nfive_multiple_sum = 0\nfor num in numbers:\n if num % 5 == 0:\n five_multiple_sum += num\nprint(five_multiple_sum)",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "175"
}
]
},
{
"title": "리스트 합",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "조건문",
"difficulty": 2,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [-5, -3, -1, 2, 4, 6, -8, 10]\nnegative_sum = 0\nfor num in numbers:\n if num < 0:\n negative_sum += num\nprint(negative_sum)",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "-17"
}
]
},
{
"title": "리스트 합",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "조건문",
"difficulty": 3,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [1, 3, 6, 9, 12, 15, 18, 21]\nthree_multiple_sum = 0\nfor num in numbers:\n if num % 3 == 0:\n three_multiple_sum += num\nprint(three_multiple_sum)",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "84"
}
]
},
{
"title": "리스트 합",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "조건문",
"difficulty": 3,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]\neven_index_sum = 0\nfor i in range(len(numbers)):\n if i % 2 == 0:\n even_index_sum += numbers[i]\nprint(even_index_sum)",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "250"
}
]
},
{
"title": "리스트 합",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "조건문",
"difficulty": 3,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]\nodd_index_sum = 0\nfor i in range(len(numbers)):\n if i % 2 != 0:\n odd_index_sum += numbers[i]\nprint(odd_index_sum)",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "300"
}
]
},
{
"title": "리스트 합",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "조건문",
"difficulty": 3,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]\neven_index_sum = 0\nfor i in range(len(numbers)):\n if i % 2 == 0:\n even_index_sum += numbers[i]\nprint(even_index_sum)",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "50"
}
]
},
{
"title": "리스트 합",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "조건문",
"difficulty": 3,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\nnumbers = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]\nodd_index_sum = 0\nfor i in range(len(numbers)):\n if i % 2 != 0:\n odd_index_sum += numbers[i]\nprint(odd_index_sum)",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "60"
}
]
},
{
"title": "문자열 슬라이싱",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "자료형",
"difficulty": 2,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\ntext = 'Programming'\nprint(text[-4:])",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "ming"
}
]
},
{
"title": "문자열 슬라이싱",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "자료형",
"difficulty": 2,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\ntext = 'Python Programming'\nprint(text[:5])",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "Pytho"
}
]
},
{
"title": "문자열 슬라이싱",
"problemType": "SHORT_ANSWER_QUESTION",
"category": "자료형",
"difficulty": 2,
"problemContent": {
"content": "# 다음 코드를 실행했을 때 출력될 값을 적으시오.\ntext = 'SSAFY'\nprint(text[::-1])",
"numberOfBlanks": 0
},
"problemChoices": [],
"problemAnswers": [
{
"blankPosition": null,
"correctChoice": null,
"correctAnswerText": "YFASS"
}
]
}
]