Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Which of the following statements draws a Circle centered at (50,50), of radius

ID: 3702085 • Letter: W

Question

Which of the following statements draws a Circle centered at (50,50), of radius 100, using the canvas variable self.canvas ?

Select one:

a. self.canvas.create_oval(-50, -50, 100, 100)

b. self.canvas.create_oval(0, 0, 100, 100)

c. self.canvas.create_oval(-50, -50, 150, 150)

d. self.canvas.create_oval(50, 50, 100)

Which of the following code snippets show the button save inside the window?

Select one:

a.
window = Tk()
save = Button(window, text="Save", command=processSave) .pack()

b.
window = Tk()
save = Button(window, text="Save", command=processSave)
save.pack()

c.
window = Tk()
Button(window, text="Save", command=processSave)

d.
window = Tk()
save = Button(frame1, text="Save", command=processSave

Explanation / Answer

1.

Option b correct

draws a Circle centered at (50,50), of radius 100, using the canvas variable self.canvas

oval(0, 0, 100, 100)

Here x1=0 , y1=0, x2=100 y2=100

2.

Option b correct

window = Tk()
save = Button(window, text="Save", command=processSave) // Button declaration
save.pack() // It creates button

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote