1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lubov Fominskaja [6]
4 years ago
15

• Why does a lunar eclipse last longer than a solar eclipse?

Computers and Technology
1 answer:
Wittaler [7]4 years ago
5 0
The shadow cast by the earth is quite a bit larger than the moon
You might be interested in
A) How could you modify Shelve with a technique discussed in class so that you can create Shelve instances that contain // Tools
Kay [80]

Answer:

See explanation

Explanation:

A “shelf” is a dictionary-like object. A shelf is an arbitrary Python objects, that is; anything that the pickle module can handle. This includes recursive data types and objects containing lots of shared sub-objects. It must be noted that the keys are ordinary strings.

(A). modification to Shelve can be done by following this instructions;

(1). Do not redefine built-in functions,(2). grab shelved item, mutate item, write mutated item back to shelf.

The number (2) instructions is during iteration over shelved items.

(B). CREATING FUNCTIONS THAT TAKES IN TWO SHELVES;

import shelve

d = shelve.open(filename) # open -- file may get suffix added by low-level

# library

d[key] = data # store data at key (overwrites old data if

# using an existing key)

data = d[key] # retrieve a COPY of data at key (raise KeyError if no

# such key)

del d[key] # delete data stored at key (raises KeyError

# if no such key)

flag = key in d # true if the key exists

klist = list(d.keys()) # a list of all existing keys (slow!)

# or, d=shelve.open(filename,writeback=True) would let you just code

# d['xx'].append(5) and have it work as expected, BUT it would also

# consume more memory and make the d.close() operation slower.

d.close() # close it

3 0
4 years ago
PYTHON Write a grade program using a function called computegrade that takes a score as its parameter and return a grade as a st
makvit [3.9K]

def computeGrade(float grade, str a){

a = "A" if a > 0.9 else a = "B" if a > 0.8 else "C"

return a;

}

print(a)

3 0
4 years ago
Write query to get the max and min salary of job_id 101​
taurus [48]

Answer:

SELECT  MAX(salary), MIN(salary) FROM salaries WHERE job_id=101

Explanation:

Assumptions were made on the column and table names...

5 0
3 years ago
4. Refer to the following code the answer the remaining questions. loop: load r1, r5, 40 ; r1  data_memory[r5 + 40] add r1, r1,
Anni [7]

Answer:

See explaination

Explanation:

Loop Unrolling

Assembly code

loop:

load r1, r5, 40 //r1 = Mem[r5 + 40]

load r6, r5, 36 //r6 = Mem[r5 + 36]

add r7, r6, r2 //r7 = r6 + r2

store r7, r5, 36 //Mem[r5 + 36] = r7

add r1, r1,r2 //r1 = r1 + r2

store r1, r5, 40 //Mem[r5 + 40] = r1

addi r5, r5, -8 //r5 = r5 -8

bne r5, 0, loop //if(r5 != 0)branch to loop

4 0
4 years ago
What is the purpose of the " + " in the code labeled // line 2 below ?
UkoKoshka [18]

Answer:

To illustrate addition operation

Explanation:

Given

The above code segment

Required

Determine the purpose of "+" in label line 2

In line 2, num1 = 3  and num2 = 2 in line 3.

sum = 2 + 3 = 5 in line 4

From the given code segment, the plus sign is used as a string literal (i.e. "+").

This means that, the print statement will output: <em>3 + 2 = 5</em>

The "+" is printed in between 3 and 2.

So, the purpose of the "+" is to show the function of the program and the function of the program is to illustrate an addition operation between two variables

7 0
3 years ago
Other questions:
  • Which best explains the process he would follow?​
    13·1 answer
  • Develop an sec (single error correction) code for a 16-bit data word. generate the code for the data word 0101000000111001. show
    6·2 answers
  • Which of the following Office Online apps is most effective for creating spreadsheets?
    14·2 answers
  • What is the symbol for the relational operator 'equal to'?
    8·1 answer
  • What is ‘Software Testing’?
    13·1 answer
  • Which of the following is NOT one of the four steps preparing for sales forecast ?
    10·1 answer
  • 4.2 Code Practice: Question 2​
    14·1 answer
  • What are the three types of networks?
    13·2 answers
  • Peter has recently bought a media player and a digital camera. He wants to buy a memory card for these devices. Which memory dev
    11·1 answer
  • As data travels further over a wavelength or frequency, what goes down?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!