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
Hatshy [7]
3 years ago
10

Structure for forloop?

Computers and Technology
1 answer:
solong [7]3 years ago
8 0

Answer:

for ( initialization; condition;increment)

{

code goes here;

}

in python:

for i in list/range:

code with proper indentation

By initialization above we mean, like int i=0; etc.

By condition like i<10;

and by increment it means like i++, ++i or i+=1; etc

And in python, i can be an integer value if the range is mentioned, and it can be an item of a list if the list is used. We can also use an array, string and various other data structures in python. like we can have characters in a string and so on.

Explanation:

Please check the answer section.

You might be interested in
Which partitioning method must you use for a 4-tb hard drive?
kogti [31]
Convert the MBR to GPT disk is a way to solve the problem.
4 0
3 years ago
Por qué el entorno gráfico de Windows es amigable con el hombre ?
elena-14-01-66 [18.8K]

Explanation:

Por que es un sistema diseñado para ayudar a las personas de forma amable

ESPERO Y TE AYUDE ;)

3 0
3 years ago
Computer virus is a<br> a. software<br> b. hardware<br> c. bacteria<br> d. none of these
Nimfa-mama [501]
The answer is software
8 0
4 years ago
g Define memory hierarchy. A. The rate at which information can be transferred from one place to another. B. Ordering storage sy
andrew-mc [135]

Answer:

The correct option is B.

Explanation:

Memory hierarchy is the ordering of storage systems according to their speed, capacity and cost.

The hierarchy consist of Register as the top, followed by cache, then main memory, secondary memory and external storage. As you go down the hierarchy, the speed decreases, the size increases and the cost decreases also.

Memory hierarchy diagram is attached for reference.

3 0
3 years ago
Sequential and direct access are two methods to locate data in memory. Discuss why major devices now a days use direct access? H
djverab [1.8K]

Answer:

Direct data access reduces the speed of retrieving data from memory or storage. Retrieving data and storing it in a cache memory provides direct access to data in the storage.

Explanation:

Sequential memory access, as the name implies, goes through the memory length location in search of the specified data. Direct memory access, provides a memory location index for direct retrieval of data.

Examples of direct and sequential memory access are RAM and tapes respectively. Data in sequential memory access can be access directly by getting data in advance and storing them in cache memory for direct access by the processor.

3 0
3 years ago
Other questions:
  • What is the speedup of going from a 1-issue processor to a 2-issue processor? use your code from part a for both 1-issue and 2-i
    11·1 answer
  • How to hack the school system
    12·1 answer
  • What are the basic components of a Production System?
    6·1 answer
  • Bonnie gets very nervous before taking tests. What can she do to help her anxiety while she takes her tests?
    15·2 answers
  • Which of the following processes should angel use to merge cells a1:d4 to create a title
    15·1 answer
  • When protecting a worksheet all cells are locked by default.?
    10·1 answer
  • What is the difference between primary storage, secondary storage and off-line storage?
    5·1 answer
  • Describe three perimeter intrusion detection systems and give an example of one that you have seen deployed either at work or an
    8·1 answer
  • Write a Java program that prints out a 4x4 square (like the one below)
    11·1 answer
  • A person is riding a bike and accelerating at 2.8 m/5 2 eith a force of 100 n
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!