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. Skype offers a service that allows you to make a phone call from a PC to an ordinary phone. This means that the voice call mu
monitta

Answer: A. Voice over Internet Protocol

B. It reduces the delay for all objects requested by a user.

Explanation:

Voice over Internet Protocol is used to transfer voice communication and multimedia over the internet. It converts voice into a digital signal, transfers it over the internet and then reconverts it to voice when it reaches its destination.

Web Caching stores the data from a web page for reuse at a later time, this helps to reduce the tasks the server carries out and reduces delay. Because some objects are cached, more resources can be focused on objects that are not thereby reducing delay for all objects requested by a user.

6 0
4 years ago
Question #8
White raven [17]

Answer:

The other person is correct the answer is 7

Explanation:

I got it right on edge

3 0
3 years ago
Why now days 3D images are used in cartoons? What are the drawbacks of 2D image?
antoniya [11.8K]

Answer:

There are no drawbacks

Explanation:

People just think 3D is more modern-ish. I liked 2D better, but whatever- things are changing.

5 0
3 years ago
Read 2 more answers
Which of the following combinations of keys is used as a short for saving a document on a computer
Masja [62]

ctrl+s  

is used to save

Hope this helped

-scav

7 0
3 years ago
What is a back door?
V125BC [204]

Answer:

A backdoor is a typically covert method of bypassing normal authentication or encryption in a computer, product, embedded device, or its embodiment. Backdoors are most often used for securing remote access to a computer, or obtaining access to plaintext in cryptographic systems.

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • How many steps are there on Mail Merge Task Pane? List them.​
    9·1 answer
  • More Loops: All versions of foods.py in this section have avoided using for loops when printing to save space. Choose a version
    13·1 answer
  • What is the difference between operating systems and application software?
    5·1 answer
  • Which of the following configuration files would you document
    6·1 answer
  • PLEASE HELP! 2D Animation!
    12·1 answer
  • Explain the significance of the loss of direct, hands-on access to business data that end users experienced with the advent of c
    14·1 answer
  • To exclude members of a group from the basic permissions for a folder, which type of permission would you assign? Deny Allow Mod
    13·1 answer
  • Write a couple of paragraphs about the usefulness of computer​
    5·1 answer
  • These operating systems use a graphical user interface.
    8·1 answer
  • What is an insertion point?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!