-
Notifications
You must be signed in to change notification settings - Fork 0
/
python.json
46 lines (46 loc) · 1.34 KB
/
python.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[{
"topic": "Python",
"subtopic": "Syntax",
"type": "MCQ",
"question": "How do you make a single line comment in Python?",
"options": ["#", "//", "!", "/"],
"answer": 0,
"difficulty": "Easy"
},
{
"topic": "Python",
"subtopic": "Basics",
"type": "MCQ",
"question": "How do you represent a raised to b in Python?",
"options": ["a**b", "a^b", "a^^b", "a^*b"],
"answer": 0,
"difficulty": "Easy"
},
{
"topic": "Python",
"subtopic": "String",
"type": "MCQ",
"question": "How do you remove all the whitespaces from a string?",
"options": ["string.replace(' ','')","string.strip()","string.lstrip()","string.rstrip()"],
"answer": 0,
"difficulty": "Easy"
},
{
"topic": "Python",
"subtopic": "List",
"type": "MCQ",
"question": "Element at Index 2 of List: myList = [16, False, 38.345, 23, 55, 'hello world'] is?",
"options": ["16", "True", "38.345", "hello World"],
"answer": 3,
"difficulty": "Easy"
},
{
"topic": "Python",
"subtopic": "List",
"type": "MCQ",
"question": "Which of these function calls will create a list of numbers from 3 to 15 (inclusive) in Python 3?",
"options": ["list(range(3,15))", "range(3,15)", "range(2,11)", "list(range(3,16))"],
"answer": 4,
"difficulty": "Easy"
}
]