|
1 | 1 | [{
|
2 |
| - "question": "A class is instantiated by:", |
| 2 | + "question": "_is used to create an object:", |
3 | 3 | "answers": {
|
4 |
| - "a": "Calling the class object", |
5 |
| - "b": "Creating the class object", |
6 |
| - "c": "Declaring the class", |
7 |
| - "d": "None of the mentioned," |
| 4 | + "a": "class", |
| 5 | + "b": "constructor", |
| 6 | + "c": "User-defined functions", |
| 7 | + "d": "In-built functions" |
8 | 8 | },
|
9 |
| - "correctAnswer": "a" |
| 9 | + "correctAnswer": "b" |
10 | 10 | }, {
|
11 | 11 | "question": "Which among the following is not a class method?",
|
12 | 12 | "answers": {
|
|
17 | 17 | },
|
18 | 18 | "correctAnswer": "b"
|
19 | 19 | }, {
|
20 |
| - "question": "For declaration a = Employee(), which of the following statement is correct.", |
| 20 | + "question": "<img src='images/post_q.png'.", |
21 | 21 | "answers": {
|
22 |
| - "a": "You can assign an int value to a. ", |
23 |
| - "b": "contains an int value ", |
24 |
| - "c": "contains a reference to a Circle object", |
25 |
| - "d": " contains an object of the Circle type. " |
| 22 | + "a": "Error because function change can’t be called in the __init__ function", |
| 23 | + "b": "‘New’ is printed", |
| 24 | + "c": "‘Old’ is printed", |
| 25 | + "d": "Nothing is printed" |
26 | 26 | },
|
27 | 27 | "correctAnswer": "c"
|
28 | 28 | }, {
|
|
0 commit comments