{ "examId": "python-easy-15q-v1", "title": "Python Fundamentals - Easy Level (15 Questions)", "subject": "Python", "difficulty": "beginner", "durationMinutes": 30, "passingScore": 70, "sections": [ { "id": "basics", "title": "Python Basics", "questions": [ { "id": "q1", "type": "single_choice", "prompt": "What is the correct way to create a variable in Python?", "choices": [ { "key": "A", "text": "int x = 5" }, { "key": "B", "text": "x = 5" }, { "key": "C", "text": "var x = 5" }, { "key": "D", "text": "declare x = 5" } ], "answer": "B", "allowIDK": true, "points": 5 }, { "id": "q2", "type": "true_false", "prompt": "Python is a case-sensitive language.", "answer": true, "allowIDK": true, "points": 5 }, { "id": "q3", "type": "multiple_choices", "prompt": "Which of the following are valid Python data types? (Select all that apply)", "choices": [ { "key": "A", "text": "int" }, { "key": "B", "text": "string" }, { "key": "C", "text": "float" }, { "key": "D", "text": "bool" } ], "answer": ["A", "C", "D"], "partialCredit": true, "allowIDK": true, "points": 10 }, { "id": "q4", "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", "allowIDK": true, "points": 5 }, { "id": "q5", "type": "true_false", "prompt": "In Python, indentation is used to define code blocks.", "answer": true, "allowIDK": true, "points": 5 } ] }, { "id": "data_structures", "title": "Data Structures", "questions": [ { "id": "q6", "type": "multiple_choices", "prompt": "Which of the following are mutable data structures in Python? (Select all that apply)", "choices": [ { "key": "A", "text": "list" }, { "key": "B", "text": "tuple" }, { "key": "C", "text": "dict" }, { "key": "D", "text": "set" } ], "answer": ["A", "C", "D"], "partialCredit": true, "allowIDK": true, "points": 10 }, { "id": "q7", "type": "single_choice", "prompt": "How do you create an empty list in Python?", "choices": [ { "key": "A", "text": "list = {}" }, { "key": "B", "text": "list = []" }, { "key": "C", "text": "list = ()" }, { "key": "D", "text": "list = <>" } ], "answer": "B", "allowIDK": true, "points": 5 }, { "id": "q8", "type": "true_false", "prompt": "A tuple in Python can be modified after creation.", "answer": false, "allowIDK": true, "points": 5 }, { "id": "q9", "type": "single_choice", "prompt": "What is the output of: print(type([1, 2, 3]))", "choices": [ { "key": "A", "text": "" }, { "key": "B", "text": "" }, { "key": "C", "text": "" }, { "key": "D", "text": "" } ], "answer": "B", "allowIDK": true, "points": 5 }, { "id": "q10", "type": "multiple_choices", "prompt": "Which methods can be used to add elements to a list? (Select all that apply)", "choices": [ { "key": "A", "text": "append()" }, { "key": "B", "text": "add()" }, { "key": "C", "text": "insert()" }, { "key": "D", "text": "extend()" } ], "answer": ["A", "C", "D"], "partialCredit": true, "allowIDK": true, "points": 10 } ] }, { "id": "control_flow", "title": "Control Flow", "questions": [ { "id": "q11", "type": "true_false", "prompt": "The 'elif' keyword in Python is used for else-if conditions.", "answer": true, "allowIDK": true, "points": 5 }, { "id": "q12", "type": "single_choice", "prompt": "Which loop is used to iterate over a sequence in Python?", "choices": [ { "key": "A", "text": "foreach" }, { "key": "B", "text": "for" }, { "key": "C", "text": "loop" }, { "key": "D", "text": "iterate" } ], "answer": "B", "allowIDK": true, "points": 5 }, { "id": "q13", "type": "multiple_choices", "prompt": "Which statements are valid loop control keywords in Python? (Select all that apply)", "choices": [ { "key": "A", "text": "break" }, { "key": "B", "text": "continue" }, { "key": "C", "text": "pass" }, { "key": "D", "text": "exit" } ], "answer": ["A", "B", "C"], "partialCredit": true, "allowIDK": true, "points": 10 }, { "id": "q14", "type": "true_false", "prompt": "Python supports switch-case statements like C or Java.", "answer": false, "allowIDK": true, "points": 5 }, { "id": "q15", "type": "single_choice", "prompt": "What does the 'range(5)' function return?", "choices": [ { "key": "A", "text": "A list [0, 1, 2, 3, 4]" }, { "key": "B", "text": "A range object representing 0 to 4" }, { "key": "C", "text": "A list [1, 2, 3, 4, 5]" }, { "key": "D", "text": "A range object representing 1 to 5" } ], "answer": "B", "allowIDK": true, "points": 5 } ] } ], "metadata": { "version": "1.0.0", "createdAt": "2025-10-20T20:15:00Z", "createdBy": "system", "tags": ["python", "fundamentals", "beginner", "auto-graded"] } }