题目
单项选择题
Question at position 2 Which of the following lines of code has an error? Circle(200, 200, 50, fill='black', border=None)Rect(30, 30, 100, 200, fill=None)Polygon(100, 100, 100, 100, 100, 100)Line(10, 10, 100, lineWidth=101)
选项
A.Circle(200, 200, 50, fill='black', border=None)
B.Rect(30, 30, 100, 200, fill=None)
C.Polygon(100, 100, 100, 100, 100, 100)
D.Line(10, 10, 100, lineWidth=101)
查看解析
标准答案
Please login to view
思路分析
Question: Which of the following lines of code has an error?
Option A: Circle(200, 200, 50, fill='black', border=None)
- This looks like a standard constructor call for a circle, with center coordinates (200, 200), radius 50, and optional styling parameters. The arguments appear to be in a typical, accepted form, so there is no obvious syntax or parameter-name issue here. This option seems correctly formed.
Option B: Rect(30, 30, 100, 200, fill=None)
- Here, a rectangle is cr......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Given the following code snippet, what is considered an argument(s)?def mystery(num1, num2) : result = num1 ** num2 return resultmystery(10, 2)
Given the following code snippet, what is considered an argument(s)? def mystery(num1, num2) : result = num1 ** num2 return result mystery(10, 2)
A list cannot be passed as an argument to a function.
Which one of the following statements about inbuilt functions and arguments is true?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!