Answer: executable
COM file is a type of simple executable file.
Answer:
Upper bound means the algorithm will not use more time than this.
Since there n sorted sequence and having n distinct keys, the upper bound will be :
O(n^2logn) using Min Heap, n^2 because there will be the output of array size n*n
Explanation:
<span>The answer is The keyboard shortcut Ctrl + Right Arrow. To navigate and go to the rightmost cell that is not blank, press these two keys together. </span>
Answer: A) It is directly accessible only in B1
Explanation: In the given chunk of code, Class B1 is a base class. Class B2 is derived class of class B1. Class B3 is derived class of B2. As you can see class B1 has two members or instance variables i and j. Instance variable cannot be directly accessible by both B2 and B3. If you see this statement of the given code private int j; the keyword private is used with the variable j. This keyword is called access specifier. Access specifiers specifies how the members of a class can be accessed. These members are attributes and methods of that class. Any member of a class that are declared private cannot be inherited by derived classes of that class. Additionally these private members cannot be accessed from within any method inside derived class. So j is directly accessible only in B1. You can access a private instance variable from within the same class or can access it through the methods of class.
Answer:
speed(0)
penup()
setposition(-200,-200)
pendown()
def draw_square_row():
color_value = 0
for i in range (10):
if color_value %2 == 0:
begin_fill()
color("red")
for i in range (4):
forward(40)
left(90)
forward(40)
color_value = color_value + 1
end_fill()
elif color_value %2 == 1:
begin_fill()
color("black")
for i in range (4):
forward(40)
left(90)
forward(40)
color_value = color_value + 1
end_fill()
def draw_square_row_2():
color_value = 1
for i in range (10):
if color_value %2 == 0:
begin_fill()
color("red")
for i in range (4):
forward(40)
left(90)
forward(40)
color_value = color_value + 1
end_fill()
elif color_value %2 == 1:
begin_fill()
color("black")
for i in range (4):
forward(40)
left(90)
forward(40)
color_value = color_value + 1
end_fill()
def move_up_a_row():
left(90)
forward(40)
right(90)
backward(400)
for i in range (5):
draw_square_row()
move_up_a_row()
draw_square_row_2()
move_up_a_row()
Explanation:
tell me if you get it right