You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: experiment/posttest.json
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,16 @@
1
1
[{
2
-
"question": "What is the output of the following code?[A]class customer: <br> def__init__(self, id): self.id = str(id)id='2010'obj=customer(2567)print(obj.id) ",
2
+
"question": "What is the output of the following code?",
"question": "what will be output of following code ? str1='helloworld'<br> str1[::-1]",
12
+
"question": "What is the output when the following code is executed?",
13
+
"code": "str1 = 'virtualpythonla'\nprint(str1)",
12
14
"answers": {
13
15
"a": "dlrowolleh",
14
16
"b": "hello",
@@ -17,16 +19,18 @@
17
19
},
18
20
"correctAnswer": "a"
19
21
}, {
20
-
"question": "What is the output of following Python program?<br>text='Python is high-level programming language'words=text.split()l=len(words)print('Number of words of the text:%d'% l)",
21
-
"answers": {
22
+
"question": "What is the output of the following Python program?",
23
+
"code": "text = 'Python is high-level programming language'\nwords = text.split()\nl = len(words)\nprint('Number of words of the text: %d' % l)",
24
+
"answers": {
22
25
"a": " Error",
23
26
"b": " 5",
24
27
"c": "6",
25
28
"d": " None of these "
26
29
},
27
30
"correctAnswer": "b"
28
31
}, {
29
-
"question": "What is the output of the following code?<br> def changement(str1): char = str1[0] str1 = str1.replace(char, '&') str1 = char + str1[1:] returnstr1 print(changement('this is the string')) ",
32
+
"question": "What is the output of the following code?",
33
+
"code": "def changement(str1):\n char = str1[0]\n str1 = str1.replace(char, '&')\n str1 = char + str1[1:]\n return str1\n\nprint(changement('this is the string'))",
0 commit comments