Difference between passing argument or return value

Answers

Answer 1

The argument is any string you pass to your function when you call it. The return value is the number of words.

Answer 2

In this exercise we have to use python programming knowledge to describe a function, so the code is:

The code is in the attached image.

What is string in programming?

Strings are strings of characters that store textual data and, therefore, can store information for the most diverse purposes. The content of a string can represent a fact in itself, or information.

In a simpler way we have that the code in python will be:

#include <stdio.h>

#include <string.h>

int main()

{

   /* String Declaration*/

   char nickname[20];

   printf("Enter your Nick name:");

   /* I am reading the input string and storing it in nickname

    * Array name alone works as a base address of array so

    * we can use nickname instead of &nickname here

    */

   scanf("%s", nickname);

   /*Displaying String*/

   printf("%s",nickname);

   return 0;

}

See more about python at brainly.com/question/26104476

Difference Between Passing Argument Or Return Value

Related Questions

Compare and contrast the use of magnetic tapes with removable magnetic disks to make network server backups. [4] ICT IGCSE​

Answers

Answer:

Magnetic Tapes and Magnetic Disks are the types of magnetic memory. Both are called non-volatile storage and used to store data.

Magnetic tape contains thin plastic ribbon is used for storing data. It is a sequential access memory. So the data read/write speed is slower. It is mainly used for data backups.

Explanation:

be happy

You start the line with a

Answers

Answer:

what line

??????

Explanation:

A group of students take hundreds of digital photos for a science project about weather patterns. Each photo file contains data representing the level of red, green, and blue for each pixel in the photo. The file also contains metadata that describes the date, time, and geographic location where the photo was taken. For which of the following goals would analyzing the metadata be more appropriate than analyzing the data?
a. Determining the chronological order of the photos.
b. Determining the number of clouds in a particular photo.
c. Determining whether a photo is suitable for printing in black-and-white.
d. Determining whether two photos were taken at the same location on different days.

Answers

Analyzing the metadata would be more appropriate than analyzing the data when: determining the likelihood that the photo was taken at a particular public event.

What is a data?

A data can be defined as a representation of instructions or information in a formalized manner, especially as a series of binary digits (bits).

What is a metadata?

A metadata can be defined as the data that provides information about one or more aspects of a given data, so as to provide a structured reference that helps to sort and identify all of its attributes such as:

AuthorDate createdDate modifiedFile typeFile size

In this scenario, analyzing the metadata would be more appropriate than analyzing the data when determining the likelihood that the photo was taken or created at a particular public event.

Read more on data here: brainly.com/question/25558534

Darla is going to start writing the HTML code for a web page. What would she start with?

Answers

Answer:

opening

Explanation:

Your answer would be opening

Lourdes is going to create a company logo. She will create it in a vector format so that she can resize it without distortion. Which software works best for her needs

Answers

Explanation:

military

hope this helps you

An individual owns a dog grooming business and must pay self-employment tax on individual earnings.
Which type of legal structure makes self-employment tax a relevant concern?
Limited Liability companies C-Corporation
OS S-Corporation
Sole-proprietorship​

Answers

The type of legal structure that makes self-employment tax a relevant concern is a sole proprietorship. It involves one single owner.

What is a sole proprietorship?

The term 'sole proprietorship' refers to a type of business where there is one single owner.

In a sole proprietorship, the personal owner must pay income taxes depending on the amount of money he/she earned.

The sole proprietorship businesses are very common and this type of business increased in the last years.

Learn more about sole proprietorship here:

https://brainly.com/question/4442710

If you want to join all of the rows in the first table of a SELECT statement with just the matched rows in a second table, you use what kind of join

Answers

Answer:

An inner join.

Inner join combines matching rows from 2 tables at one time, so that is the reason I chose this join.

you can turn the Caps lock key on, and that will give you a more _______ curser.

Answers

accurate

hope this helps

scav

Phoebe is a Counselor who is trying to schedule a meeting with one of her patients. Which best describes an inappropriate location for a meeting with a patient? a private office a hospital cafeteria a treatment center a family consult room.

Answers

Answer: a hospital cafeteria because there is no privacy and the patient may feel uncomfortable and it can be too noisy

Explanation:

B hospital cafeteria


Explanation:

I took the test

what is destination email address​

Answers

Answer:

Explanation:

The E-mail Destination allows you to send data from your forms in text format to various different email addresses.

how to write an algorithm to find area and perimeter of diamond .

Answers

Find the area of both triangles with 1/2•base•height then add them together

My monitor, every time I try to turn it on says this "reboot and select proper boot device or insert boot media in a selected boot device and press a key" I've already tried to press all the keys to enter BIOS but since before this problem happened I enabled ultra-fast boot so it doesn't give me time to press any of them and I don't know what to do I've seen so many videos and I just can't find any that could possibly help me

Answers

You may have a corrupt system or your hard drive may be loose. (it used to be a common issue for me when I upgraded my computer to SSD, that computer is only used for backup purposes)

Which of the following is not harmful to the computer?
a) Trojan
b) Rootkit
c)Malware

Answers

Answer:

rootkit

Explanation:

because Trojan and malware will both harm your computer trust me

Why won't this program work? I have no solution for this.

LANGUAGE: Python, CodeHS; 4.11.4: Snake Eyes

Answers

Explanation:

hope it helps,Godbless

How to reset apple watch after too many passcode attempts.

Answers

Answer:

"Press and hold the Digital Crown, then tap Reset. After the reset finishes and your Apple Watch restarts, you need to pair your Apple Watch with your iPhone again—open the Apple Watch app on your iPhone, then follow the instructions shown on your iPhone and Apple Watch."

Explanation:

How to reset apple watch after too many passcode attempts is mentioned below.

What is passcode ?

A passcode is a string of digits or letters that is used to protect access to a computer, an account, or data. It serves the same purpose as a password but usually only has a short string of digits, making it simpler to enter on gadgets with constrained input options, like a smartphone or tablet. Typically, a passcode is used to unlock a device, grant access to a specific app or feature, or verify a user's identity when making a purchase. To increase security and prevent unauthorized access, passcodes are typically set by the user and can be changed as needed.

Here's a step-by-step process to reset an Apple Watch after too many passcode attempts:

Put your Apple Watch on its charger and make sure that it has a charge.

On your iPhone, open the Watch app.

Tap the My Watch tab, then tap your Apple Watch at the top of the screen.

Tap General, then tap Reset.

Tap Erase Apple Watch Content and Settings.

Enter your Apple ID password, then tap Turn Off.

Wait for the process to finish.

After the reset is complete, you'll need to pair your Apple Watch with your iPhone again and set it up as new.

Note: If you can't reset your Apple Watch using the above steps, you may need to use the Apple Support website or contact Apple support for assistance.

To know more about passcode check:

https://brainly.com/question/14637277

#SPJ6

which choice is not a form of antivirus scanning that compares known virus patterns to scanned files

Answers

The choice that is not a form of antivirus scanning that compares known virus patterns to scanned files is called; Heuristic scanning

Antivirus Detection

The correct answer is Heuristic Scanning from the options seen online. This is because Heuristic scanning is a method utilized by many computer antivirus programs to detect previously unknown computer viruses, as well as new variants.

Thus, heuristic scanning doesn't compare known virus patterns to scanned files.

Read more about antivirus detection at; https://brainly.com/question/17209742

Elena wrote the following code in Scratch to have the sprite move and then turn around. However, the code does not work as expected. What should be done to fix the error?

Change "move 20 steps" to "move 10 steps"
Change "turn left 180 degrees" to "turn left 90 degrees"
Change "turn left 90 degrees" to "turn right 180 degrees"
Change "turn right 90 degrees" to "turn left 90 degrees"

Answers

Sprites are program objects used to create animations

What should be done to fix the error is to (d) Change "turn right 90 degrees" to "turn left 90 degrees"

How to fix the error

From the question, we have the following highlights

The sprite is to move forwardAnd then turns around

The first line of the code segment moves the sprite 20 steps forward;

This step is correct, and it does not need to be changed.

For the sprite to turn, then it must rotate 360 degrees in a direction.

From the code segment, we have the following rotations

180 degrees left90 degrees left90 degrees right

When the angles of rotation are added, we have:

[tex]\theta = 180 + 90 - 90[/tex]

[tex]\theta = 180[/tex]

i.e. the code segment implements a 180 degrees rotation

In order to turn the sprite around, she needs to change the 90 degrees right to 90 degrees left.

So, we have:

[tex]\theta = 180 + 90 + 90[/tex]

[tex]\theta = 360[/tex]

Hence, the fix to the error is (d) Change "turn right 90 degrees" to "turn left 90 degrees"

Read more about sprites at:

https://brainly.com/question/26549550

Linda works from home occasionally and needs to set up her computer at work so she can remote in from her home office. Which tools should she use

Answers

Explanation:

Check the type of hard drive installed.

hope this helps you ❣️

Which of the following keyboard shortcuts should be pressed to hide the columns which are selected in a worksheet? Question 2 options: Control 7 Control 9 Control 0.

Answers

Answer:

control 0

Explanation:

did the quiz on quizzes

Answer: control 0

Explanation: I saw a chance to get 10 points and took it.

The ______ tab is a contextual tab and displays only when media content on your slide is selected

Answers

The complete statement is:

The Table Tools tab is a contextual tab and displays only when media content on your slide is selected

How to determine the tab

There are several tabs in Microsoft Office packages

Some of these tabs include

Home Page layoutReview and ViewEtc

Of all the available tabs in these packages, the table tool tab is contextual.

This is so because it is not display unless the media is selected

Read more about tabs at:

https://brainly.com/question/14139335

Although Access does not have stored procedures, you can achieve some of the same benefits with _____.

Answers

The benefits of storing procedures can be achieved with; Indexes

What are Indexes?

You can use an indexes to help Microsoft Access find and sort records faster. An index stores the location of records based on the field or fields that you choose to index.

Finally, After Microsoft Access obtains the location from the index, it can then retrieve the data by moving directly to the correct location.

Read more about Microsoft access at; https://brainly.com/question/1538272

Emma opened a new document on Microsoft Word and typed her assignment. She is now planning to save the document for the first time. Which function key can she use to save the document

Answers

Answer:

ctrl+s

Explanation:

By hitting the ctrl key at the same time as the s key on the keyboard she can save the document

Which field uses computer programs to automate tasks so that they can be performed better than by humans ?
Bioinformatics

Robotics


Telecommunications

Network administration

Answers

The field uses computer programs to automate tasks so that they can be performed better than by humans is known to be Robotics.

Which field uses computer programs to automate tasks?

Robotics is seem as a field of engineering that is known to be based on the design and making of robots.

Note that Robots are often used to carry out tasks that are said to be hard for humans to perform and as such, the field uses computer programs to automate tasks so that they can be performed better than by humans is known to be Robotics.

Learn more about Robotics from

https://brainly.com/question/13515748

#SPJ1

What device is used to centrally connect multiple devices on the local network and transmit data to the correct location

Answers

Answer:

The correct answer is the hub. An Ethernet hub, active hub, network hub, repeater hub, multiport repeater, or simply hub is a network hardware device for connecting multiple Ethernet devices together and making them act as a single network segment

Explanation:

You want to determine the total amount of data stored on a server.User A has 3550 GB of data stored on the server.User B stores 4000 GB of data.User C stores 2450 GB.User D stores 1010 GB of data.User E stores 7000 GB of data on the server.Without using a calculator, use the properties of operations to determine the total amount of data stored on the server.
A. 1801 GB
B. 18,010 GB
C. 19,010 GB
D. 1901 GB

Answers

For a fact it’s B because I’m smart

Answer:its b

Explanation:

Which tab on the ribbon contains the function library?.

Answers

Answer:

Formulas Tab

Explanation:

You can view excel functions library and defined names.

A list block can be defined under another list is called as _ list

Answers

Answer:

Nested list is the term used to define it..

Answer:

Nested

Explanation:

Your answer is A list block can be defined under another list is called as NESTED list.


I hope it helps! Have a great day!

Lilac~

Which of the following groups on the Home tab contains the commands to insert delete and format cell width and height? Question 1 options: Styles Cells Editing Number.

Answers

The cells feature is used to format the cells. The features in this section are insert, delete, and format cells. Cell size can be edited using this section.

What are the features available on the home screen of excel?

Excel is a tool that is used to create sheets or tables to show data. It is capable of performing some complex tasks also. The home screen of excel contains many features.

Some of the features are:

Font: It is used to format the style and size of the characters. It also includes bold, italic, etc formattings.Alignment: This feature is used to align the text in the cells. The option included in this are merge cells, wrap text, center/left align, etc.Style: It is used to format or design the table or group of cells. it includes features like conditional formatting, format as a table, cell style.Cells: Cells feature is used to format the cells. The features in this section are insert, delete, and format cells. Cell size can be edited using this section.Editing: It is used to edit or use filter in the cell or cells.Number: This section defined the type of content present in the cell and its significant figures. The common types are currency, number, date, time, etc.

Therefore, The cells option has the commands insert, delete, and format options.

Learn more about excel here:

https://brainly.com/question/25879801

Please help I have to turn this in immediately!!!​

Answers

Answer:

"This cipher is pretty simple" is sadly the answer. :)

Explanation:

When using a Polybius cipher, one letter is 2 numbers.

11 = A

21 = F

31 = L

41 = Q

51 = V

and so on!

So to say the word question you would use the number sequence: 4145154344243433
to solve, add spaces

41 45 15 43 44 24 34 33

and find corresponding spots on the table/grid.

I hope this was helpful!

Tim would like to send a confidential, encrypted message to Kellie using asymmetric cryptography. What key should Tim use to create the message?

Answers

Tim uses the public key is used to create the message

Asymmetric cryptography

Asymmetric (public key) encryption allows the sharing of an encrypted message without a shared secret key. Public key encryption uses two keys, one public and one private. To send a message, asymmetric algorithm with the public key is used to create the message while the private key is used for the message decryption. The encryption function can only encrypt data.

Find out more on Asymmetric cryptography at: https://brainly.com/question/4357828

Other Questions
6) The average atomic mass of boron, B, is 10.811 amu. The natural abundance of 10B is 19.7% and its exact mass is 10.012 amu. Calculate the exact mass of the second isotope of boron. The December 31, 2018, adjusted trial balance for the Blueboy Cheese Corporation is presented below.Account Title Debits CreditsCash 22,700 Accounts receivable 330,000 Prepaid rent 13,000 Inventory 51,000 Office equipment 610,000 Accumulated depreciationoffice equipment 254,000Accounts payable 72,000Note payable (due in six months) 63,000Salaries payable 7,500Interest payable 2,100Common stock 400,000Retained earnings 150,000Sales revenue 750,000Cost of goods sold 450,000 Salaries expense 112,500 Rent expense 39,000 Depreciation expense 61,000 Interest expense 4,200 Advertising expense 5,200 Totals 1,698,600 1,698,600Required:1-a. Prepare an income statement for the year ended December 31, 2018.1-b. Prepare a classified balance sheet as of December 31, 2018.2. Prepare the necessary closing entries at December 31, 2018.Prepare an income statement for the year ended December 31, 2018.BLUEBOY CHEESE CORPORATIONIncome StatementFor the Year Ended December 31, 2018000$0Prepare a classified balance sheet as of December 31, 2018. (Amounts to be deducted should be indicated by a minus sign.)BLUEBOY CHEESE CORPORATIONBalance SheetAt December 31, 201800$000$0Prepare the necessary closing entries at December 31, 2018. (If no entry is required for a transaction/event, select "No journal entry required" in the first account field.)Record the entry to close the revenue accounts using the income summary.Record the entry to close the expense accounts using the income summary.Record the entry to close the income summary account. help me with this please () What was the importance ofthe Diaspora? What positiveeffect did the Jews' exile toBabylon have on the spreadof Judaism? The focus of a parabola is (-6, -3). The directrix of the parabola is y =4.What is the equation of the parabola?o y = - a (x + 6)? +o y = - (x + 6)+o y = - + (x + 1) +6y = -5(x - ) - 614212 help me Is very important If the united states was to be partitioned in the same way india was, the partition would be based on:. help me ill mark branleist ang give 5 stars PLEASE I NEED HELP ITS DUE SOON!! Please Help! Double Points!Which equation represents the table above between the cost, c, and the number of months, n?A) c = 30nB) c = 10nC) c = n + 30D) c = n + 10 American anti-imperialists generally opposed American imperialism in the Pacific and Caribbean after 1898 for one of two reasons. What were these two reasons? Write down the next three terms2,-8,-18,-28... The web is based on the ____ Protocol? a works twice as fast as B if B can complete a work in 12 days independently the number of days in which A and B can together finish the work find that PLEASE HELP ASAP I WILL GIVE BRAINSLET TO THE CORRECT ANSWER!!!!!!!!!! PLS HELP ASAP THANKS ILL GIVE BRAINLKEST PLS THANKS PLS ASAP PLS PLS HELP ASAP THANKS How do you write 7.20 100 in standard form? A line passes through the points (3,21) and (7,25) Write a linear function rule in terms of x and y for this line. Can y'all do it for me, because I have no idea about it...Advance thank you Why did the Texas settlers support Antonio Santa Anna's attempt to take control of Mexico's government?