Skip to content

Commit 219fee4

Browse files
authored
Merge pull request #7 from virtual-labs/dev
Dev
2 parents 7c0514b + 2ac3dc6 commit 219fee4

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

experiment/images/que1.JPG

7.4 KB
Loading

experiment/images/que1.PNG

5.72 KB
Loading

experiment/posttest.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[{
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)",
2+
"question": "What is the output of the following code <br><img src='images/que1.PNG>'",
43
"answers": {
54
"a": "2567",
65
"b": "Error",
@@ -9,8 +8,7 @@
98
},
109
"correctAnswer": "a"
1110
}, {
12-
"question": "What is the output when the following code is executed?",
13-
"code": "str1 = 'virtualpythonla'\nprint(str1)",
11+
"question": "What is the output when the following code is executed? <br>str1='virtualpythonla'",
1412
"answers": {
1513
"a": "dlrowolleh",
1614
"b": "hello",
@@ -19,8 +17,7 @@
1917
},
2018
"correctAnswer": "a"
2119
}, {
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)",
20+
"question": "What is the output of the 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)",
2421
"answers": {
2522
"a": " Error",
2623
"b": " 5",
@@ -29,8 +26,7 @@
2926
},
3027
"correctAnswer": "b"
3128
}, {
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'))",
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')) ",
3430
"answers": {
3531
"a": "Syntax Error",
3632
"b": "this is the string",

0 commit comments

Comments
 (0)