answer.
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
Otrada [13]
2 years ago
5

What is the value of the variable result after these lines of code are executed?

Computers and Technology
2 answers:
notsponge [240]2 years ago
6 0

Answer:

5

Explanation:

Arada [10]2 years ago
6 0

Answer:

i guess it would be 5

Explanation:

You might be interested in
Describe a situation involving making a copy of a computer program or an entertainment file of some sort for which you think it
Margaret [11]

Answer:

Copying anything may be the computer program or an entertainment file, it is not a good thing as the original developers or the writers are going to feel bad since their hard work is being used by others without letting them know. However, if you are using it for academic purposes, or give them credit in your work, then the original writer will not feel that bad as he is being credited, and hence you can reuse in that case definitely, but always ensure to give the credit to the original writer.

As an example, if a film is copied like many in the past the Directors always feel bad, and they have the reason for feeling bad. The same thing is to technology.

Explanation:

The answer is self explanatory.

8 0
2 years ago
Assume you have a variable, budget, that is associated with a positive integer. Assume you have another variable, shopping_list,
max2010maxim [7]

Answer:

budget=455

shopping_list=("codelab", "textbook", "ipod", "cd", "bike")

prices={"codelab":300, "textbook":100,"ipod":50, "cd":10, "bike":600}

number_of_items=0

sum=0

for index in range(len(shopping_list)):

   sum=sum+prices[shopping_list[index]]

   if (sum<=budget):

       number_of_items=number_of_items+1

   else :

       break

print "number of items you can purchase, for a budget of",budget,"is",number_of_items

Explanation:

A code to determine the number of items that can be purchased is above, given the value associated with budget, and given that you will buy items in the order that they appear in the tuple associated with shopping_list.

4 0
2 years ago
Which references are updated when you copy the formula =$E6-MAX(H$1:J4)
kykrilka [37]

Once you uncover the mystery of Absolute References, copying and pasting formulas becomes child’s play.

You might have seen cell references in formulas surrounded by ‘$’ signs. For example $D$3:$D$10.  What’s that all about?

Excel Absolute References

Well, the ‘$’ before the column or row reference instructs excel to keep the reference absolute.  Huh, I hear you say.  Ok, I’ll explain in English.

Looking at the table below we have a Commission Rate of 3% in cell G3.  In column E we want to calculate the commission as Total $k x Commission Rate 3%.

Excel Absolute References

I could simply enter the formula as =D3*3% and copy it down column E, but there are two problems with this that make it not ideal:

1)      I can’t easily see what the Commission Rate is without looking in the formula bar.  I could put it as part of the column heading e.g. ‘Commission $ @ 3%’, but that makes my heading bigger than it needs to be, and if I change the rate at a later date I have to go back and change the heading too, which is easily overlooked.

2)      If I change the rate I need to change the formula and copy it down the column again. Ok, so it might only take a few seconds to do this, but if you’re playing with scenarios and you want to change the rate a few times to see what the results are it’s much quicker and easier to just type a new figure in cell G3 and let Excel do the work to change the formula.

So assuming I’ve convinced you that referencing one cell for the commission rate is the best method let’s look at how absolute references work.

Absolute Reference example

First let’s look at what happens if you don’t use an absolute reference.  If you entered in cell E3 the formula =D3*G3 you would get the correct answer.  But if you were to copy that formula down the rest of column E Excel would dynamically update the formula to increase by one row as it goes down the page.  You can see this to the left where the reference to G3 goes G4, G5, G6 and so on.

How Absolute References Work in Excel

What we want Excel to do is dynamically update the cell reference to column D, but to keep the Commission Rate reference on cell G3. To do this we would use the ‘$’ signs to instruct Excel that this is an absolute reference, like this =D3*$G$3. Then when we copy the formula down the column it will be entered like example on the left here.

Other ways to use absolute references

Make a whole range of cells an absolute reference: $D$1:$F$1

Make only the column absolute $D3

Make only the row absolute D$3

As you can see in the examples above, whatever the ‘$’ sign prefixes is absolute. i.e. as you copy the formula anywhere in the spreadsheet the reference prefixed by the ‘$’ sign will not change.

Shortcut to entering Absolute References

The magical F4 key instantly enters the ‘$’ signs for you.  You can do it while you’re building your formula, or you can go back and edit the formula and enter them.  Of course you can also type them in but it’s quicker to use F4.

Let’s look at the different ways you can enter absolute references using the F4 key in more detail

1)      While you’re building your formula; as you can see below I have started to type a formula into the cell E3.  I have just selected cell G3, as you can see by the marching ants (dashed line) surrounding the cell.

How to enter Absolute References

At this point, before I press enter to finish the formula, I can press the F4 key and Excel will automatically put the ‘$’ signs around G3 for me like this.

F4 key shortcut

2)      Or I can go back to a cell at any time and press the F2 key to edit the cell.  I can then put my cursor anywhere in the cell reference I want absolute and press F4. See below.

F4 key editing shortcut

3)      If you want to absolute a range you have to highlight the cell range like the example below before pressing F4.

applying absolute references

4)      The above examples show you how to apply an absolute reference to the column and the row, but if you keep pressing F4 Excel will scroll through your options. Using =D3*G3 as an example, I want to absolute G3:

a.       With the first press of F4 you will get =D3*$G$3

b.      With the second press of F4 you will get =D3*G$3

c.       With the third press of F4 you will get =D3*$G3

d.      With the fourth press of F4 you will get =D3*G3

So, now you know how Absolute References work in Excel, and how to apply them quickly using the F4 key, you can start to build better spreadsheets that you can dynamically update.

7 0
2 years ago
What will be the output of the following Python code? class A: def test1(self): print(" test of A called ") class B(A): def test
Vlad [161]

Answer:

"test of B called"

Explanation:

  • The object is created for the D class, but there are two test methods in class B and C.
  • The D class does not hold any test method. So when the object called the test method. Then the B method is called.
  • It is because the B class is declared first in the inheritance of D class like in the statement "class D(B, C)".
  • If the statement will be "class D(C, B)", then the C method will be called.
  • if the D class holds the method test, then only the D method will be called.
  • Hence the output is "test of B called".
7 0
2 years ago
3. Personal Trainer is very concerned about the security and protection of the information they collect in the new information s
Sever21 [200]

Answer:

Check the explanation

Explanation:

in order to make sure that the built into the new systems, the below input and output levels of security control have to be considered for personal trainers staff.

There are:

   Network Security

   Application security

   Physical security

   User security

   File security

   Procedural security

These securities levels are consistent and advantage in building the decisions regarding system security.

There are the following policies applied to each control:

Network Security: Network interface and traffic controlling, encryption of data.

Application Security: Verification of data input/output and update of software proceedings.

Physical Security: Security to servers, computers and physical environment.

User Security: Protection passwords and identify management skills.

File Security: Access Permission allocated to users and editing authorizations given to users.

Procedural Security: Certify safety protection to perform decision-making activities and document shredders.

Finally, consider another main point is depends the new system performance are system response time, throughput, bandwidth time and turnaround time.

7 0
2 years ago
Other questions:
  • A chemical found in the synaptic vesicles , which , when released . has an effect on the next cell is called a?
    10·1 answer
  • Jesse would like to modify the table that he has inserted into a Word document by making the first row a single header cell.
    15·2 answers
  • A method countDigits(int num) of class Digits returns the remainder when the input argument num(num &gt; 0) is divided by the nu
    10·1 answer
  • Database management systems are expected to handle binary relationships but not unary and ternary relationships.'
    7·1 answer
  • Using the RAID controller on the motherboard, you configure three hard disks in a RAID 5 array. You leave the array unpartitione
    14·1 answer
  • What is the name of the program file that you can enter in the Windows search or Run box to execute Event Viewer? What process i
    12·1 answer
  • Polygon transform (25 points). Write a library of static methods that performs various geometric transforms on polygons. Mathema
    12·1 answer
  • NOTE: in mathematics, division by zero is undefined. So, in C++, division by zero is always an error. Given a int variable named
    9·1 answer
  • 1. What are the first tasks the Team Leader (TL) must perform after arriving at the staging area?
    15·1 answer
  • Select the correct answer. Andy wants to become a multimedia producer. Which degree can help him achieve this goal? A. bachelor’
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!