Questions
Questions
Single choice

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)

Options
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)
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
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

Log in for full answers

We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!