Skip to content

Commit 7c0514b

Browse files
authored
Merge pull request #6 from virtual-labs/dev
Dev
2 parents 6dd00ac + 3200fc1 commit 7c0514b

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

experiment/posttest.json

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
[{
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?",
3+
"code": "class customer:\n def __init__(self, id):\n self.id = str(id)\nid = '2010'\nobj = customer(2567)\nprint(obj.id)",
34
"answers": {
4-
"a": "2567",
5-
"b": "Error",
6-
"c": "2010",
7-
"d": "None"
8-
},
5+
"a": "2567",
6+
"b": "Error",
7+
"c": "2010",
8+
"d": "None"
9+
},
910
"correctAnswer": "a"
1011
}, {
11-
"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)",
1214
"answers": {
1315
"a": "dlrowolleh",
1416
"b": "hello",
@@ -17,16 +19,18 @@
1719
},
1820
"correctAnswer": "a"
1921
}, {
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": {
2225
"a": " Error",
2326
"b": " 5",
2427
"c": "6",
2528
"d": " None of these "
2629
},
2730
"correctAnswer": "b"
2831
}, {
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'))",
3034
"answers": {
3135
"a": "Syntax Error",
3236
"b": "this is the string",

0 commit comments

Comments
 (0)