would you please answer this questions? Please answer asap. Thanks in advance.
QUESTION 2 When the following code is executed, for about how many seconds will the message "You won!" be displayed? from livewires import games, color games.init (screen width 640, screen_height = 480, fps = 50) x = won message games. Message (value "You won!", size 100, color color.red, games.screen.width/2, y = games.screen.height/2, lifetime = 2000, after_death games.screen.quit) games.screen.add (won_message) games.screen.mainloop() O 10 O 20 O 30 O 40 جام
QUESTION 3 What Sprite object property represents the object's velocity from left to right? Ο Χ Oy dx O dy QUESTION 4 What Sprite object method is called automatically, every graphics screen update? O mainloop() O destroy() O sync() O update() QUESTION 5 What must you pass to the constructor of a new widget object? 0 its slave its dimensions O its alias O its master
QUESTION 6 What is the method that begins a GUI program's event loop? O eventloop() O mainloop() O loop() O begin() QUESTION 7 Which of the following widgets can hold other widgets? O label button text entry frame QUESTION 8 In the following code, what does fps stand for? 640, screen height = 480, fps 50) games.init (screen widt O frames per second O first person shooter O focal point system O floating point system
QUESTION 10 What screen method closes the graphics window? O close () O end() O quit() O terminate() QUESTION 11 What method sets the size of a root window? O geometry() O size () O dimensions () O height_and_width()
QUESTIUN TZ Given that the following code is the update () method of a moving Sprite object, what will the object do when it reaches the edge of the graphics screen? def update (self): if self.right > games.screen.width or self.left < 0 or self.bottom > games.screen.height or self.top < 0: self.dx = 0 self.dy = 0 bounce stop O disappear O None of these QUESTION 13 Given that the following code is the update () method of a moving Sprite object, what will the object do when it reaches the edge of the graphics screen? def update (self): if self.right > games.screen.width or self.left < 0: self. dx = -self.dx = if self.bottom > games.screen.height or self.top < 0: self.dy -self.dy O bounce O stop O disappear O None of these A
would you please answer this questions? Please answer asap. Thanks in advance.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
would you please answer this questions? Please answer asap. Thanks in advance.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!