python answers


1) Which of the following items are present in the function header? A. function name B. parameter list C. return value D. Both A and B *
1/1
2) What is called when a function is defined inside a class? A. class B. function C. method D. module *
1/1
3) Which of the following function headers is correct? A. def fun(a = 2, b = 3, c) B. def fun(a = 2, b, c = 3) C. def fun(a, b = 2, c = 3) D. def fun(a, b, c = 3, d) *
1/1
4) Which one of the following is the correct way of calling a function? A. function_name() B. call function_name() C. ret function_name() D. function function_name() *
1/1
5. Which of the following would result in an error? *
1/1
Captionless Image
6. What will be the output of the following Python code? *
1/1
Captionless Image
7) *
1/1
Captionless Image
8) *
1/1
Captionless Image
9) *
1/1
Captionless Image
10) *
1/1
Captionless Image
11) *
1/1
Captionless Image
12) *
0/1
Captionless Image
Correct answer
13) *
1/1
Captionless Image
14) *
1/1
Captionless Image
15) Which of the following statements is used to create an empty set? a) { } b) set() c) [ ] d) ( ) *
0/1
Correct answer
16 *
1/1
Captionless Image
17) *
1/1
Captionless Image
18) *
1/1
Captionless Image
19) *
1/1
Captionless Image
20) *
1/1
Captionless Image

Post a Comment

0 Comments