subject

[Edhesive] 6.2 lesson practice [Questions shown with pictures] Question 1

Examine the code below. When this program runs, what size will the text be when printed on the screen?

import simplegui

def draw(canvas):

for i in range (10):

canvas. draw_text("Hello", (10, 25 + 20*i), 20, "red")

frame = simplegui. create_frame("Testing", 400, 400)

frame. set_draw_handler(draw)

frame. start()

A. 10

B. 20 * i

C. 400

D. 20

Question 2

Examine the code below. When this program runs, how many times will the word "Hello" be printed?

import simplegui

def draw(canvas):

for i in range (10):

canvas. draw_text("Hello", (10, 25 + 20*I), 20, "red")

frame = simplegui. create_frame("Testing", 400, 400)

frame. set_draw_handler(draw)

frame. start()

A. 20

B. 1

C. 10

D. 9

Question 3

Examine the code below. When this program runs, what value of x will be output?

x = 3

for i in range(3):

x = x * 2

print(x)

A. 24

B. 3

C. 6

D. 12


[Edhesive] 6.2 lesson practice [Questions shown with pictures]

Question 1 Examine the code below.
[Edhesive] 6.2 lesson practice [Questions shown with pictures]

Question 1 Examine the code below.
[Edhesive] 6.2 lesson practice [Questions shown with pictures]

Question 1 Examine the code below.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 08:30, Bradgarner772
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
image
Computers and Technology, 24.06.2019 16:00, achsahjosey
This isn't about school but every time it tells me to watch an ad to unlock the answer to a question it prompts a survey and it just keeps loading. so i haven't been able to get answers for my tests in like a week.
Answers: 2
image
Computers and Technology, 24.06.2019 16:30, laureanogabriel
What is the item which could be matched with a statement below? software installed on a computer that produces pop-up ads using your browser an example of social engineering malware loads itself before the os boot is complete type of spyware that tracks your keystrokes, including passwords windows key + l the practice of tricking people into giving out private information or allowing unsafe programs into the network or computer when someone who is unauthorized follows the employee through a secured entrance to a room or building a type of malware that tricks you into opening it by substituting itself for a legitimate program a computer that has been hacked, and the hacker is using the computer to run repetitive software in the background without the user's knowledge an infestation designed to copy itself repeatedly to memory, on drive space, or on a network
Answers: 1
image
Computers and Technology, 25.06.2019 04:50, mlinares776
Your program should prompt the user for the dimensions of the two squares matrices, making sure that the user input is greater than or equal to 4.[ yes, an example would be a4x4matrix]2.if the above is not met, prompt the user for a new value.3.now generate random integernumbers to fill both matrices.4.display these two matrices on the screen.5.multiply the two matrices and display the result on the scre
Answers: 2
You know the right answer?
[Edhesive] 6.2 lesson practice [Questions shown with pictures] Question 1

Examine the c...

Questions in other subjects:

Konu
Mathematics, 14.09.2020 17:01
Konu
Mathematics, 14.09.2020 17:01
Konu
Mathematics, 14.09.2020 17:01
Konu
Mathematics, 14.09.2020 17:01
Konu
Mathematics, 14.09.2020 17:01
Konu
English, 14.09.2020 17:01
Konu
Biology, 14.09.2020 17:01
Konu
English, 14.09.2020 17:01
Konu
Mathematics, 14.09.2020 17:01
Konu
History, 14.09.2020 17:01