Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added experiment/images/que1.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added experiment/images/que1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 4 additions & 8 deletions experiment/posttest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[{
"question": "What is the output of the following code?",
"code": "class customer:\n def __init__(self, id):\n self.id = str(id)\nid = '2010'\nobj = customer(2567)\nprint(obj.id)",
"question": "What is the output of the following code <br><img src='images/que1.PNG>'",
"answers": {
"a": "2567",
"b": "Error",
Expand All @@ -9,8 +8,7 @@
},
"correctAnswer": "a"
}, {
"question": "What is the output when the following code is executed?",
"code": "str1 = 'virtualpythonla'\nprint(str1)",
"question": "What is the output when the following code is executed? <br>str1='virtualpythonla'",
"answers": {
"a": "dlrowolleh",
"b": "hello",
Expand All @@ -19,8 +17,7 @@
},
"correctAnswer": "a"
}, {
"question": "What is the output of the following Python program?",
"code": "text = 'Python is high-level programming language'\nwords = text.split()\nl = len(words)\nprint('Number of words of the text: %d' % l)",
"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)",
"answers": {
"a": " Error",
"b": " 5",
Expand All @@ -29,8 +26,7 @@
},
"correctAnswer": "b"
}, {
"question": "What is the output of the following code?",
"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'))",
"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')) ",
"answers": {
"a": "Syntax Error",
"b": "this is the string",
Expand Down