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
Alex
3 years ago
11

Edhesive 7.6 lesson practice python

Computers and Technology
1 answer:
spayn [35]3 years ago
6 0

Answer:

(a) The output is -1

(b) The output is 32

Explanation:

Given: The above code

Solving (a): The output when 1, 1 and 1 is passed to the function

From the question, we have: print(mystery(x))

This means that only the value of x (which in this case is 1) will be passed to the mystery function

(a, b = 8, c = -6) will then be seen as: (a = 1, b = 8, c = -6)

2 * b + a + 3 * c = 2 * 8 + 1 + 3 * -6

2 * b + a + 3 * c = -1

<em>The output is -1</em>

Solving (b): The output when 8, 6 and 4 is passed to the function

From the question, we have: print(mystery(x,y,z))

This means that values passed to the function are: x = 8, y = 6 and z = 4

(a, b = 8, c = -6) will then be seen as: (a = 8, b = 6, c = 4)

2 * b + a + 3 * c = 2 * 6 + 8 + 3 * 4

2 * b + a + 3 * c = 32

<em>The output is 32</em>

You might be interested in
A cell reference =SUM(sheet1.A1,sheet 2.A2) will place the results in which of the following, the current worksheet, worksheet 1
kozerog [31]

Answer:

the current worksheet

Explanation:

However, the syntax mentioned is incorrect. It should be

=SUM(sheet1!A1,sheet2!A2)

The above is the correct syntax, And this will print the sum in the sheet that we are in currently. And hence, the correct option for this question is certainly the current worksheet. Hence, the option mentioned in the answer section is the correct one.

3 0
4 years ago
What data type would best hold the numeric value?
zaharov [31]

Explanation:

I think option b. integer data type is the suitable answer.

7 0
3 years ago
You can change the ____ or position of text within a document's margins.
ahrayia [7]

Answer:

Alignment

Explanation:

That should be correct

7 0
3 years ago
Can you tell me what to put in these line please!
Harman [31]

Answer:

I know nothing about this

3 0
3 years ago
Access Office Equipment has shifted to sales and service of laptops and PCs, where it has the potential to triple the number of
AleksAgata [21]

Answer:

Access Office Equipment is implementing a growth strategy.

Explanation:

Growth strategy can be defined as the strategy whose goal is to win market shares in a greater quantity. The earnings in growth strategy might be short-termed. The common growth strategies include:

  • product expansion
  • market expansion
  • market penetration
  • acquisition and diversification

I hope it will help you!

4 0
4 years ago
Other questions:
  • Which spreadsheet operation does a look function perform?
    5·1 answer
  • a one-two paragraph summary on the Running Queries and Reports tutorials. Apply critical thinking and an academic writing style
    6·1 answer
  • How many bytes are in a yottabyte. (don't look it up)
    10·1 answer
  • If a drastic change in environmental conditions results in a prolonged drought, how would the total population of ferns be affec
    14·2 answers
  • A network technician has created a network consisting of an external internet connection, a DMZ,
    14·1 answer
  • Given the variable ip, already declared as a pointer to an integer, write the code to dynamically allocate memory for a single i
    15·1 answer
  • Find the smallest value of n such that LCM of n is 15 is 45​
    5·1 answer
  • What type of system is associated with weather that has lots of clouds and thunderstorms with the possibility of tornadoes?
    10·1 answer
  • Monster Collector
    7·1 answer
  • ‘’AZ’’ is an example of a __.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!