Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which.

Answers

Answer 1

Answer:

Example 1:

def function(num):  

   print(num*2)

Example 2:

function(5)

num = 2

function(num)

function(3-1)

Explanation:

Given:

See attachment for complete question

To start with Example (1)

def function(num):  

   print(num*2)

Note that; the above code segment which doubles the parameter, num could have been any other code

In Example (1), the parameter is num

For example (2):

We can call the function using:

#1. A value:

function(5)

In #1, the argument is 5; a value

#2. A Variable

num = 2

function(num)

In #2, the argument is num; a variable

#3. An Expression

function(3-1)

In #3, the argument is 3-1; an expression

Call Your Function From Example 1 Three Times With Different Kinds Of Arguments: A Value, A Variable,

Related Questions

Ok for whoever answers this, Ill wager 20 points...
Consider the following procedures.

PROCEDURE math (ans1, ans2)
{
a ← INPUT()
b ← INPUT()
c ← math2(a, b)
e ← a + ans1
f ← b + ans2
g ← math2(e, f)
h ← c + g
DISPLAY(h)
}

PROCEDURE math2 (res1, res2)
{
d ← res1 + res2
RETURN(d)
}
What is displayed as a result of executing the following program, if when prompted, the user enters a = 3 and b = 4?

math(1, 2)

Answers

Answer:

The display will be 17.

Explanation:

Tracing through the program:

At first, math is called and sent 1 and 2 - so 1 is stored to ans1 and 2 is stored to ans2.

If the user inputs 3 for a and 4 for b, the program then calls function math2 and passed values of 3 and 4.

So now inside of math2, 3 is stored to res1 and 4 is stored to res3. Inside of this function, res1 and res2 are added together - so then 7 is stored to d and then returned back to the original function.

So now 7 was stored back to the variable c. Then a and ans1 are added together (3 + 1 = 4) and b and ans2 are added together (4 + 2 = 6). Each of these values are stored back to e and f.

Then those values, e and f (4 and 6) are again sent to math2, which simply adds the values together and returns it back to the function. So 10 is sent back to math and stored to the value of g.

Then c (7) and g (10) are added together and displayed.

if i want a word to be keyed in all capital letters, which is the correct proofreader's mark?

Answers

----
----
---
Three lines under a lowercase letter mean to make it a capital.

Complete the statement below using the correct term.


One problem with _____
is that often many copies of the same document are made.

Answers

One problem with PRINTER is that often many copies of the same document are made.
printers or a printer !

Nathan is working in a graphics program and he can't remember how to select an item. What should Nathan do?

Visit the application's Help files and search for the answer.

Go to the Start menu and select Instructions.

Look in the taskbar for the user’s manual.

Call the customer service number.

Answers

Answer:

The answer is option B : "Go to the Start menu and select Instructions".

Which of the following does not demonstrate a harmful consequence of increased anonymity on the Internet?
A. Users can avoid targeted discrimination in an online forum.
B.People can create avatars to interact inappropriately with other users in
a forum
C.People can post hate speech in video comments without consequences.
D.People can easily create fake profiles to impersonate others online.

Answers

Answer: A. Users can avoid targeted discrimination in an online forum

Explanation:

Despite the many advantages that comes with social media, it also had it's own disadvantages and one of such is the increase in anonymity on the Internet.

Some of the consequences of the increase in anonymity is that people can make hate speech, create fake profiles to scam others or interact inappropriately, impersonation etc.

Therefore, the correct option will be option A"Users can avoid targeted discrimination in an online forum" as this isn't a harmful consequence of increased anonymity on the Internet.

Word processing software is used primarily by schools rather than businesses.
True or false

Answers

Answer:

False.

Explanation:

Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.

Generally, the Microsoft Word software is used by various businesses for processing and formatting text-based documents.

In Microsoft Word, formatting refers to the appearance of texts in a document.

Formatting a text involves performing tasks such as, bold, underline, italics, font-size, font-types, color etc. The commands to perform the above tasks are mainly found in the format menu of the Home tab.

Formatting a document is important and necessary because it makes the word document clear and easy to read.

Hence, Word processing software such as Microsoft Word, Notepad, etc., is used primarily by businesses rather than schools because most businesses deal with the creation and transfer of documents from one department to another or to other businesses.

This ultimately implies that, business firms or organizations are more inclined to use Word processing software to create paper documents for the day-to-day business activities they conduct unlike a school who rarely does.

Site specific situation wherein you have to write “Shortage Notations?

Answers

Answer:

Shortage Notations and the situation where you have to write down the Shortage Notations is explained below in complete detail with the situation.

Explanation:

Shortage Notations: If a portion of the shipment is missing, record the number of items shipped on the delivery slip and circle it. Then record down the number of articles missing and remark them as "short." The acquiring person is accountable for demanding the carrier to investigate the damaged goods and packaging.

It should be noted that a shortage notation occurs when the products delivered on a ship are incomplete when the ship gets to its destination.

It should be noted that shortage notation simply means when a portion of a shipment is missing, then an individual should record rte number of the items that are shipped on the delivery slip and then circle it.

Then, in such a situation, the owner of the good can then file a shortage claim later. This happens when the packaging isn't intact.

Learn more about shipping on:

https://brainly.com/question/758860

1. Is the function void or return
a. void
b. return
2. What is the result of the following expression: int r = 3; r%2 == 0;
a. it evaluates as true
b. it evaluates as false
c. nothing happens

Answers

Answer:

(a) void

(b) Nothing happens

Explanation:

Solving (a): void and return

A function that returns no value is referred to as a void function.

On the other hand, a void can not be return or named return.

So, the function is void

Solving (b):

r = 3

Required

The result of r%2 == 0

Substitute 3 for r in r%2 == 0

3%2 == 0

3%2 is 1.

So, we have:

1 == 0

Hence, the equivalent of r%2 == 0 is 1 == 0.

However, nothing will happen because there is no instruction attached to the statement (i.e. r%2 == 0;)

In your opinion which of the following is the most convenient way to create a bootable USB flash drive? Why?

Answers

Answer:

here

Explanation:

Plug the USB drive into your computer’s USB port.

Search for the “cmd” application in the Windows start menu, right-click on the item, and select “Run as administrator” from the context menu. This opens a small window with white text on a black background.

Type the command “diskpart” and confirm your input with the enter key (you’ll also do this after every other entered command). This starts the storage device manager.

Enter the command “list disk” to display all available storage devices.

You can recognize your USB by its storage capacity, and it’s usually listed as “disk 1”. In the system partition, “disk 0” is usually your PC, so a hard drive or solid state drive in your computer.

Based on the assumption that your USB has the label “disk 1”, enter the command “sel disk 1” to select it (or the corresponding “disk 2”, etc.).

Enter then command “clean” to delete all files from the USB.

Enter the command “create partition primary” to create a main partition.

Enter the command “list par” and select the newly created main partition with “sel par 1”.

Activate the partition with the command “active”.

Format the USB with the command “format fs=FAT32 label=“WINDOWSUSB” quick override” (in place of “WINDOWS USB” you can also choose another label, so long as it doesn’t contain any spaces or special characters. The drive will later be displayed under this name if you plug into a running Windows computer). Formatting may take a while. You can track its progress in the percentage bar.

As soon as the process is finished, enter the command “assign” to automatically assign a drive letter (for example “G:”) to your USB.

Enter “exit” to close DiskPart, and then “exit” again to close the command prompt

why is it important to make sure link is from a trusted source?

Answers

Answer:

So to make sure itś true not false

Explanation:

Answer:

so you know that the information is trusted and correct. Take Wikipedia as a example people can edit any passages thingy's. Or it can cause you to have viruses and stuff

Explanation:

hope this help !!:):

Example of Not a computer characteristics example

Answers

Answer:

A book

A non electronic

Explanation:

Select the correct answer.
Which output returns the Boolean value FALSE?
A.3
B.2
C.1
D.0

Answers

Answer:

your answer would be D.0

Explanation:

What is the best way to prove you did your research on a person you contact via email for help or guidance? A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background B. Tell the person generally how much you respect his/her career; if you're too specific, it will be overboard and you may turn the person off

Answers

Answer: A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background.

Explanation:

If you were to write an application letter for employment at a company, you would include certain details of the company that you found out whilst researching them so that your chances of being hired are improved.

The logic is the same here. In order to prove that you have researched a person, the proof lies in what you found out during that research. In this scenario, that includes specific projects that the person has worked on of recent.

Help please not trying to fail

Answers

Answer:

B. Everywhere CFCI is not

What is the legal precedence that affects data collection and data preservation as it relates to the digital forensics process

Answers

Answer:

Following are the solution to this question:

Explanation:

Some certain laws affect collection and data preservation procedures. When an electronic crime happens, government employees must be ordered to continue with both the inquiry or permission by their senior government officials. The digital forensic investigator has to comply with the laws of a country as they apply to both the situation so if conducting out such a digital forensic analysis. Many law safeguards that rights of patients who could obstruct their investigator. Its culprit can manipulate or interfere with digital evidence until the inquirer gathers and maintains this. There are many limitations on permit study. 

When its private data is revealed, the Electronic Communications Protection Act (ECPA) has been adopted to protect the privacy rights of its ISPs' consumers. That protects people (suspect/culture) from the investigators by just not acquiring its ISP's information, in many specific regulations are affecting the process of digital forensic data collection and preservation.

1. lesa __________
2. didalna _______________
3 .rpeyr etlyr _____________
4. etrpoy _____________
5. rkyo ewn _____________
6. amya loagneu _____________
7. zfeorn___________________
8. msal etopry ________________
9. reyve nda gsni filt ________________________
10. tehreat lopoal ______________________
11. getas htgfir _______________
12. telsa __________________
13. diovc _____________
14. engilaenri _____________
15. atsfdofo ____________
16. rgwo pu i nhew ____________
17. tbulatyir lipcoe _______________
18. smjniae ncpiesrs __________________
19. migna ______________
20. dnaniai rgya

Answers

Penissss...?
Yes or no?

Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array. 14 36 31 -2 11 -6 Sample Run [14, 36, 31, -2, 11, -6] (In edhesive please)

Answers

Answer:

nums=[14, 36, 31, -2, 11, -6]

print(nums)

Explanation:

I got a 100%

Answer:

In C++:

#include <iostream>

using namespace std;

int main(){

    int nums[6] = {14, 36, 31, -2, 11, -6};

    cout<<"[";

    for(int i = 0;i<6;i++){

    cout<<nums[i];

    if(i != 5){cout<<", ";}

    }

    cout<<"]";

   return 0;

}

Explanation:

This initializes the array

    int nums[6] = {14, 36, 31, -2, 11, -6};

This prints the opening square bracket

    cout<<"[";

This iterates through the array

    for(int i = 0;i<6;i++){

This prints individual elements of the array

    cout<<nums[i];

Until the last index, this line prints comma after individual array elements

    if(i != 5){cout<<", ";}

    }

This prints the closing square bracket

    cout<<"]";

As you are designing a site for a client, you notice that the bulleted lists do not appear when a blog is published. You look in the code and see you have used the proper < li > tag. What else needs to be in the code?


notli

/li

unli

-li

Answers

Answer:

B

Explanation:

Which of the following file formats allows you to share and save documents without a designated application? Ο
Α. HTM
B. PDF
C. JPG
D. MP3​

Answers

Answer:

B. PDF

Explanation:

For online fax service, fax documents are usually in PDF, TIFF or plain text formats.

Answer: PDF

Explanation:

a p e x

Andrew likes to purchase his school supplies online. What are two advantages of doing so?


A.
It is possible for his information to be accessed or stolen by a third party.

B.
All his personal information is sent digitally and does not change when transmitted.


C.
Because the information is sent digitally, there are an infinite number of different signals possible.

D.
Because the information is sent quickly, he can receive his order more quickly.

Answers

Answer:

bd

Explanation:

Answer:

The answer is B.All his personal information is sent digitally and does not change when transmitted. And D.Because the information is sent quickly, he can receive his order more quickly.

Explanation:

I took AP EX quiz.

Explain the difference between undecidable problems and unreasonable time algorithms. Be specific.

Answers

One for which no algorithm can ever be written to find the solution is an unsolvable problem. An undecidable problem is one for which no algorithm can ever be written that will always provide any input value with a correct true/false option.

An insoluble issue is one for which there is no algorithm that can ever be constructed to locate the solution. Undecidable problems are those for which there is no method that will ever be developed that can consistently return a true/false answer for any input value.

What is time algorithms?

If the value of an algorithm is constrained by a value that is independent of the amount of the input, the algorithm is said to be constant time sometimes written as time. For instance, accessing any individual element in an array requires a constant amount of time because just one operation is required to find it.

We employ a technique known as "Big O notation" to describe how time-consuming a method is. We employ a language called the Big O notation to express how time-consuming an algorithm is.

Therefore, we would argue that the insertion sort's best-case time complexity is O. (n). Linear complexity is another name for O(n) complexity.

Thus, An insoluble issue is one for which there is no algorithm.

For more information about time algorithms, click here:

https://brainly.com/question/14635830

#SPJ6

Every finger has a key it should be resting on when you are not typing
1. False
2. True

Answers

Answer:

true.

Explanation:

your point fingers should always be

your left should rest on F

your right should rest on J

the anwser is true!

Match each feature to whether it influences audio or video quality

Answers

Answer:

Video: Frame Rate, Color depth, Resolution

Audio: Sampling Rate, Bit Depth

Explanation:

Find the quotient. 2.5 ÷ 5

Answers

Answer:

.5

Explanation:

you just divide 2.5 by 5

2.5 divided by 5 = 0.5

Good Morning! Please Help Me With This New Question!

In your own words, describe in detail the different types of image licensing. How does image metadata play a role in these licenses and why is that important.

Answers

Answer:

Photo metadata is a set of data describing and providing information about rights and administration of an image. It allows information to be transported with an image file, in a way that can be understood by other software and human users.

Explanation:

Which of the following are advantages of automatic updates?

Answers

Answer:

I think maybe b or d

Explanation:

Answer:

It's A, B, and D

Explanation:

write an article for publication on why every student should be computer literate​

Answers

Answer:bankrupt

Explanation: no money on your card lol i hope you haveing a great day and i want you to know that you got this babe like is life is good then great but if not then it will get better beause you will make it get better

Why should you delete files from your computer?


so that you will have less work to do

because only one hundred files can be saved in a directory

to increase the computer's efficiency

to improve your productivity

Answers

to increase the computer's efficiency

Explanation

The more files it holds, the more "jobs" it has to run, which means that you're computer would be using the same amount of energy running all of them as to less of them. When you close (or delete) some files, it allows the computer to concentrate on only running a smaller amount of files as oppose to a large amount.

hope it helps!

Answer:

To increase the computer's efficiency.

Explanation:

Having a bunch of files will most likely slow down your computer and make things harder to do. If you don't have a bunch of files, though, your computer will be faster and easier to guide through.

I hope this helps :)

You are 18 years old and need to write an email for the first time to a woman in her 40s( you can tell her age based on when she graduated college via he LinkedIn profile). How do you address her in the email? A. (First name) B. Hi(First name), C. Hi Ms.(Last name), D. Hi Mrs.(Last name) E. None of the above

Answers

E. None of the above

Its not formal to address someone with their first name, but it is also not right to assume if the woman is married or not.

2) What are two reasons we analyze algorithms?
a) make decisions about what algorithms to use
b) ease of coding
c) sorting data
d) predict performance

Answers

It’s a making sections about what algorithms to use

Answer:

Make decisions about what algorithms to use

Explanation:

Other Questions
Help me pleaseDetermine the ratio for COS C in the picture below According to her running log, Alexa averaged 4 Miles per week last month and 50%less this month. How much did she average this month? The Titanic was the mostA. vesselB. luxuriousC. gazed ship of its kind in 1912. Pls help asap will mark brainleist why might the 13 states not want one person in charge of leading the newly freed united states of america? A) what slope does this line have? B) what is the slope of the line? C) what is the y- intercept of the line? D) what is the equation of the line? PLS HELP ASAP!!! BRAINLIEST TO CORRECT ANSWER!!!Who would have written a secondary source about the founding of Jamestown? (4 points)Select one:a. A blacksmith who worked in Jamestown at the time of its foundingb. A historian who wrote a book about politics in Jamestown during its founding periodc. An English sailor who transported colonists and stayed in Jamestown at its foundingd. A person who helped organize the founding of the Jamestown colony at the London Company of Virginia Please help me I will give brainliest Your activity is to create a word problem that uses Trig to solve it. It can be either a "find a missing side" or a "find a missing angle" problem. Include all information needed to solve the problem. How is the carbon cycle related to sedimentary rocks? Convert 1/4% to ratio Gas mileage is the number of miles you can drive on a gallon of gasoline. A test of a new car results in 460 miles o. 20 gallons of gas. How far could you drive on 70 gallons of gas. PLEASE HELP!! I WILL GIVE BRAINLIEST TO WHOEVER ANSWERS THESE TWO! How is carbon dioxide affecting climate changes? Is there any evidence showing that humans can work on changing the Carbon Dioxide Levels? Can humans control them?plsss need help!!ASAP!!!!!! Need help ASAP please and thank you Members of the production team for a movie do not agree about how a certain scripted scene should be portrayed on screen. Which member of the team is most likely to make the final decision on this matter? screenwriter music editor camera operator directorPlease HELP!! AND HURRY ,, THANK YOU Write the expanded form of 4(0.25a + b - 6). who like countrie music give me a straghit awncer and i will create a nother one Mary thinks that the "solution" to a system of equations is the point of intersection on the graph. Mike thinks that the "solution" to a system of equations if the ordered pair that makes both equations true. Who is correct? An electrical completes 1/6 of job in 2/3 hours At this rate how many hours does it take the electrician to complete the job what can be analyzed to determine how many base pairs a segment of dna has?