130 lines
3.6 KiB
JSON
130 lines
3.6 KiB
JSON
{
|
|
"examId": "python-easy-v1",
|
|
"subject": "python",
|
|
"title": "Python Fundamentals - Easy Level",
|
|
"difficulty": "easy",
|
|
"durationMinutes": 45,
|
|
"sections": [
|
|
{
|
|
"id": "sec-mcq",
|
|
"title": "Multiple Choice Questions",
|
|
"questions": [
|
|
{
|
|
"id": "q1",
|
|
"type": "single_choice",
|
|
"prompt": "Which of the following is the correct way to create a list in Python?",
|
|
"choices": [
|
|
{ "key": "A", "text": "[1, 2, 3]" },
|
|
{ "key": "B", "text": "(1, 2, 3)" },
|
|
{ "key": "C", "text": "{1, 2, 3}" },
|
|
{ "key": "D", "text": "<1, 2, 3>" }
|
|
],
|
|
"answer": "A",
|
|
"points": 5
|
|
},
|
|
{
|
|
"id": "q2",
|
|
"type": "single_choice",
|
|
"prompt": "What is the output of: print(type('hello'))?",
|
|
"choices": [
|
|
{ "key": "A", "text": "<class 'int'>" },
|
|
{ "key": "B", "text": "<class 'str'>" },
|
|
{ "key": "C", "text": "<class 'list'>" },
|
|
{ "key": "D", "text": "<class 'dict'>" }
|
|
],
|
|
"answer": "B",
|
|
"points": 5
|
|
},
|
|
{
|
|
"id": "q3",
|
|
"type": "single_choice",
|
|
"prompt": "Which keyword is used to define a function in Python?",
|
|
"choices": [
|
|
{ "key": "A", "text": "function" },
|
|
{ "key": "B", "text": "def" },
|
|
{ "key": "C", "text": "func" },
|
|
{ "key": "D", "text": "define" }
|
|
],
|
|
"answer": "B",
|
|
"points": 5
|
|
},
|
|
{
|
|
"id": "q4",
|
|
"type": "single_choice",
|
|
"prompt": "What does the len() function return?",
|
|
"choices": [
|
|
{ "key": "A", "text": "The length of an object" },
|
|
{ "key": "B", "text": "The type of an object" },
|
|
{ "key": "C", "text": "The value of an object" },
|
|
{ "key": "D", "text": "The memory address" }
|
|
],
|
|
"answer": "A",
|
|
"points": 5
|
|
},
|
|
{
|
|
"id": "q5",
|
|
"type": "single_choice",
|
|
"prompt": "Which of these is a valid variable name in Python?",
|
|
"choices": [
|
|
{ "key": "A", "text": "2myvar" },
|
|
{ "key": "B", "text": "my-var" },
|
|
{ "key": "C", "text": "my_var" },
|
|
{ "key": "D", "text": "my var" }
|
|
],
|
|
"answer": "C",
|
|
"points": 5
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sec-tf",
|
|
"title": "True or False Questions",
|
|
"questions": [
|
|
{
|
|
"id": "q6",
|
|
"type": "true_false",
|
|
"prompt": "Python is case-sensitive.",
|
|
"answer": true,
|
|
"points": 5
|
|
},
|
|
{
|
|
"id": "q7",
|
|
"type": "true_false",
|
|
"prompt": "Lists in Python are immutable.",
|
|
"answer": false,
|
|
"points": 5
|
|
},
|
|
{
|
|
"id": "q8",
|
|
"type": "true_false",
|
|
"prompt": "The 'print()' function is used to display output in Python.",
|
|
"answer": true,
|
|
"points": 5
|
|
},
|
|
{
|
|
"id": "q9",
|
|
"type": "true_false",
|
|
"prompt": "Python uses curly braces {} to define code blocks.",
|
|
"answer": false,
|
|
"points": 5
|
|
},
|
|
{
|
|
"id": "q10",
|
|
"type": "true_false",
|
|
"prompt": "You can use # for comments in Python.",
|
|
"answer": true,
|
|
"points": 5
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"createdAt": "2025-10-20T18:30:00Z",
|
|
"version": "1.0.0",
|
|
"author": "AI Tutor",
|
|
"totalPoints": 50,
|
|
"autoScored": true
|
|
}
|
|
}
|
|
|