[Edhesive] 6.2 lesson practice [Questions shown with pictures]
Question 1
Examine the c...
![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 13.11.2020 17:40, cody1097
[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
![answer](/tpl/images/cats/otvet.png)
Answers: 2
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 10:20, chonawilson4
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 14:00, ratpizza
Which describes careers that have similar education requirements but different qualifications? product safety engineers and materials engineers industrial safety engineers and industrial health engineers quality control systems managers and inspectors industrial safety and health engineers and hand packers
Answers: 3
Do you know the correct answer?
Questions in other subjects:
![Konu](/tpl/images/cats/istoriya.png)
History, 18.12.2019 00:31
![Konu](/tpl/images/cats/geografiya.png)
![Konu](/tpl/images/cats/en.png)
English, 18.12.2019 00:31
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 18.12.2019 00:31
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 18.12.2019 00:31