I need help with this question!

I Need Help With This Question!

Answers

Answer 1

Answer:

5 and 10

Explanation:

Given

The above code segment

Required

Determine the outputs

Analysing the code segment line by line

[This initialises c to 0]

c = 0

[The following iteration is repeated as long as c is less than 10]

while (c < 10):

[This increments c by 5]. Recall that c is initially 0. Hence, c becomes 0 + 5 = 5

c = c + 5

[This prints the value of c which is 5]

print(c)

The iteration is then repeated because the condition is still true i.e. 5 is less than 10

c = c + 5 = 5 + 5 = 10

[This prints the value of c which is 10]

print(c)

The iteration won't be repeated because the condition is now false i.e. 10 is not less than 10.

Hence, the output is 5 and 10.


Related Questions

being a media and information literate indibidual is important especially during this modern time.give atleast three example situations that show its importance in your daily life​

Answers

Answer:

I REQUIRE POINTS CAUSE I NEED ASWERS FOR M HOMEWORK

Explanation:

Two types of are desktop computers and notebook computer

Answers

Answer:

personal computer is the correct answer.

Two types of personal computer are desktop computers and notebook computer. Thus, option A is correct.

Today personal computer is changed to laptop mode. Personal computer is made of CPU, monitor, keyboard, printer and mouse. All input device and output device connected with wire or without wire.

Personal computers are also called as desktop or workstation. These days all become compatible device which is called as laptop. Basically all input devices and output device are fixed in laptop so end user can carry the laptop and used anywhere.

Laptop is charged and used, whereas desktop or workstation just fixed in the table and used it.

Learn more about computer on:

https://brainly.com/question/32297638

#SPJ2

Which of the following should you consider when choosing a file format?

the browser you use most often

the age of the person who created the file

the need for future access and digital preservation

the length of time a file is under copyright law​

Answers

Answer:

“The need for future access and digital preservation”

Explanation:

When choosing a file format, it is important to consider the need for future access and digital preservation. The correct option is 3.

What is file format?

A file format is a method of organizing and storing data in a file that is standardized. It specifies how data in the file is organized and represented.

It is critical to consider the need for future access and digital preservation when selecting a file format.

This is due to the fact that different file formats have varying levels of compatibility with different software and operating systems, and some formats may become obsolete over time, making future access or opening of the file difficult or impossible.

Other factors to consider when selecting a file format include the intended use of the file, the file's quality and size, and any specific requirements or limitations of the software or platform being used.

Thus, the correct option is 3.

For more details regarding file format, visit:

https://brainly.com/question/1856005

#SPJ7

DO NOW
1. What are the 4 things that make a computer a
computer?

Answers

Answer:

CPU, GPU, Hard drive, Video Card

Explanation:

Other Questions
I NEEEEEEEEEEED HEEEEEEEEEEEEEEEEEELPPPPPPP Revise this ParagraphThe Mnemiopsis jellyfish are eating all the larva and fish eggs so fishermen cant make any money fishing for fish. Fishermen make around a million dollars according to the article Jellyfish Take Over, but when the jellyfish eat the larva or the fish eggs fishermen lose that money. Also, the jellyfish are making it where fishermen that fish for food have no food for their family. The fishermen lose their food for their family because some people eat the fish instead of selling it for money so they can have their own food fresh. One can solve this problem by putting Bereo jellyfish in the ocean so people can have food and can sell the fish for money. What was a major effect of the Russo-Japanese War? please help plxx you will get brainlist if your right (if there is two answers) Why is connective tissue important to the body? explain why wind and wave power could not be relied on to provide a country's entire electricity supply . Which is one technique when harm is imminent I REALLY NEED THIS PLZ NO TROLLS Is this a relation or funtion Which type(s) of elements bonded to form the solute that would be considered ionicand which type bonded to form the solute that would be considered covalent? (i.e.metal with nonmetal, metal with metal, nonmetal with nonmetal) MYLAST QUESTION (NEED HELP ASAP) PLEASE!!!! The 10 and 2 o'clock hand position on the steering wheel is no longer recommended because _____. A. steering wheels are now designed for 9 and 3 oclock B. we can't reach the levers and gear stick from that position C. it gets in the way of the airbag's deployment D. our hands get in the way of our hazard scan Please answer will mark as brainist! Solve the system:x + 6y = 17X - 3y = 8 Which scenarios are considered ethically acceptable for journalists? Select three options.paying money to attend a conference about climate change in order to do research for an articleaccepting money from a politician to report on an opponent, then donating the money to a charityending an investigation because it may lead to violence and disunity in a local communityinterviewing the CEOs of two insurance companies that are competing against each otherusing information from a wiki page to clarify information about a topic Add or subtract Write in simplest form.-11/15 - 1/15 What do Impressionist artworks by Mary Cassatt depict?please help Four student tickets and two normal tickets total $200. If student tickets are half the price of normal tickets, how much does each type of ticket cost? PLZ ANSQER QUICKLYWystan lost a family member to an illness that he feels resulted from an unhealthy lifestyle. He has suffered many stages of grief. He has since changed his diet so that he is eating better, and he joined an exercise program at his local gym. Which stage of grief is Wystan most likely experiencing What is the maximum number of alphanumeric characters that a single SMS can have?A. 140B. 170C. 160D. 150 Elabora un Cuadro Descriptivo donde incluyas concepto y caractersticas de: PERSONALIDAD, TEMPERAMENTO Y CARCTER.Alguien que me ayude?