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
soldi70 [24.7K]
3 years ago
8

How many iterations will loops execute?

Computers and Technology
1 answer:
Zanzabum3 years ago
3 0

Answer:

(a)20

(b)20

(c)15

(d)20

(e)10

(f)5

Explanation:

(a) In this loop it start from "0" and iterated up to the value of i= "19" because there is 1 increment in each iteration i.e(i++) so total iterations will executed 20.

(b) In this loop it starts from "1" and iterated up to the value of i="20" because there is 1 increment in each iteration i.e(i++) so total iterations will executed 20.

(c) In this loop it start from "5" and iterated up to the value of i= "19" because their is 1 increment in each iteration i.e(i++) so total  iterations will executed 15.

(d) In this loop, it starts from "20" and iterated up to the value of i= "1" because there is 1 decrement in each iteration i.e(i--) so total iterations will execute 20.

(e) In this loop, it starts from "1" and iterated up to the value of i="19" because there is 2 increment in each iteration i.e(i=i+2) so total iterations will execute 10.

(f) In this loop, it starts from "1" and iterated up to the value of  i= "19" because there is  twice the increment of value of i=i*2 so total  iterations will executed 5

You might be interested in
What is the output for the following code?<br><br> print (5*4+5)
Damm [24]

Answer:

It will just print 5*4+5 .

But you still need to add " ".

8 0
3 years ago
You work with alot of different documents in your internship with a software development company. What kinds of actions can you
Doss [256]

Answer:

Explanation:

Try as much as possible, to keep like files together in one folder. Even so there if you run into the hundreds or thousands, that is not going to be an easy thing do.

What ever you do, do clutter up your favorites bar, especially if your favorites spill over into where you have to push a button to get to them. Keep that bar open for what you really need on that bar. Mine has Brainly, Kitco, My Alberta Health, A graphing program, a second graphing program, Amazon, a scrabble word finder, and a couple of other things. It

If you can, try and keep your favorites to something that would be useless to anyone else. My favorites are worthless to anyone else. But I play a lot of scrabble related games.

7 0
3 years ago
1. (15%) Consider a computer system with three users: Alice, Bob, and Cyndy. Alice owns the file a, and Bob and Cyndy can read i
Fantom [35]

Answer:

answered in Image and explanation is given below.

Explanation:

CL is euqal to user permission on every file

ACL is equal to how permissions are defined for one life for example File a, read, write, execute.

4 0
3 years ago
Binary Number Cards
Sedaia [141]

Answer:

13: 1101

5: 0101

10: 1010

2: 0010

Explanation:

The binary system, on the other hand, is a base-2 number system. That means it only uses two numbers: 0 and 1. When you add one to one, you move the 1 one spot to the left into the twos place and put a 0 in the ones place

what is done with the dice is to have an example of how binary numbers are made until 15

5 0
3 years ago
Please explain external hashing, B-trees, and traversals. 3-5 sentences per
katrin [286]

Answer: In external hashing the hash table is in disk where each slot of the page table holds multiple entries which refers to pages on the disk organised in the form of buckets.

B-trees are self balancing trees which contains sorted data and allows insertion, deletion, traversals

Traversal is the process of visiting the nodes of the tree data structure.

Explanation:

External hashing is different from internal hashing and it refers to concepts in database management systems. Internal hashing stores only single record maintained in page table format, whereas external hashing holds multiple entries.

B-trees are generalisation of binary trees where it can have more than 2 children.

Traversal of trees helps in insertion, deletion, modification of nodes in tree data structure

4 0
4 years ago
Other questions:
  • Given a variable s associated with a str, write an expression whose value is a str that is identical except that all the letters
    15·1 answer
  • A device in electricity that is analogous to a restriction in a water pipe is:
    11·1 answer
  • Where are options to add a border around the outside of a chart found?
    9·2 answers
  • Help me for this question
    8·1 answer
  • List three social implications of the wider range of piracy​
    15·1 answer
  • Please help me please
    8·1 answer
  • What type of error occurred??
    10·1 answer
  • Write the code for the method getNewBox. The method getNewBox will return a GiftBox that has dimensions that are m times the dim
    14·1 answer
  • Forgot this website exsited wsp
    10·2 answers
  • Why is internet download speed slower on a computer vs phone
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!