A: The program has an error display function doesn’t have parameters
B: “Hello World” is displayed
C: Nothing is displayed
D: The program has an error because constructor can’t have default arguments
举一反三
- What will be the output of the following Python code? ( )[img=430x205]17d5ffff4a8d9fe.png[/img] A: Runs normally, doesn’t display anything B: Displays 0, which is the automatic default value C: Reports error as one argument is required while creating the object D: Reports error as display function requires additional argument
- What will be the output of the following Python code? ( )[img=430x205]17da65746ac0efc.png[/img] A: Reports error as display function requires additional argument B: Reports error as one argument is required while creating the object C: Runs normally, doesn’t display anything D: Displays 0, which is the automatic default value
- What will be the output of the following Python code? ( )[img=464x290]17da65747e8eecd.png[/img] A: 0 0 B: 0 1 C: Error because class B inherits A but variable x isn’t inherited D: Error, the syntax of the invoking method is wrong
- What will be the output of the following Python code? ( )[img=301x161]17da6573e3914ba.png[/img] A: 13x B: 13 C: x D: Error
- The output of the following program is? ( )[img=333x163]17d5fffe07908f4.png[/img] A: None B: t C: python D: Python
内容
- 0
The output of the following program is? ( )[img=333x163]17da6574a3a8c14.png[/img] A: Python B: t C: python D: None
- 1
What will be the output of the following Python code? ( )[img=329x140]17da65734f63053.png[/img] A: 4 12 B: 4 15 C: 12 4 D: Error
- 2
What will be the output of the following Python code? ( )[img=400x159]17da6574f6fb8aa.png[/img] A: [1, -2, -3] B: Error C: [1, 4, 5 ] D: [-2, -3]
- 3
What will be the output of the following Python code? ( )[img=431x107]17da65739c183fd.png[/img] A: HelloWorldWorldWorldWorldWorld B: HelloWorld,World,World,World,World C: HelloHelloHelloHelloHelloHello D: HelloWorld 5
- 4
What does Sally do in the supermarket Why doesn’t Tom like his job A: Because he doesn’t earn very much money. B: Because he has to work for quite a long time. C: Because he doesn’t have time for lunch. D: Because sometimes he has to work under bad weather.