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
Verdich [7]
3 years ago
8

In this exercise, first run the code as it is given to see the intended output. Then trace through each of the 3 variables to se

e what is actually going on in memory. Show the values of str1, str2, and str3 and the output after each line of code on a piece of paper.
Computers and Technology
1 answer:
dlinn [17]3 years ago
3 0

Answer:

The memory with variable names str1, str2, and str3 all have equal and the same value after the first if-statement.

Explanation:

The str1 was first assigned a null value while the str2 and str3 were assigned the string value "Karen" with the String class and directly respectively. On the first if-statement, the condition checks if the str1 is null and assigns the value of the variable str2 to str1, then the other conditional statement compares the values of all the string variables.

You might be interested in
Write a python program that will accept monthly salary amounts greater than zero but less
Naily [24]

Answer:

b=0

c=0

lol=list()

while True:

   salary=input("Enter your salary: ")

   if salary=="e" or salary=="E":

       print("Thankyou!!")

       break

   else:

       a=int(salary)

       if a>=300000 and a<=400000:

            c=c+1

       if a<0 or a>400000:

           print("Your salary is either too small or too big ")

       if a>0 and a<=400000:

           a=a-(25/100*a)-(5/100*a)-(2/100*a)

           lol.append(a)

           b=b+1

           if a>=300000:

                c=c+1

print(lol)

print("The number of salaries entered is: "+ str(b))

print("The number of salaries that exceeded 300000 is: "+str(c))

3 0
2 years ago
What programs are most likely affected by a macro virus?
Iteru [2.4K]

Answer:

Macro viruses usually infect Microsoft Office apps like Word and Excel.

Explanation:

7 0
2 years ago
In computing, what does Bcc mean. The topic in which this is found is HOW TO CREATE AN E MAIL ACCOUNT ​
galina1969 [7]

Answer:

BCC stands for "blind carbon copy."

3 0
2 years ago
Read 2 more answers
Software created according to user choice​ true or false
solniwko [45]

Answer:

True

Explanation: so that everything we want is available that is why we can customize our interface.

3 0
3 years ago
How to post a answer
SSSSS [86.1K]
………………….yes yes yes
6 0
2 years ago
Other questions:
  • Which output will be displayed by the following program?
    5·2 answers
  • Predict how digital video will be viewed in the future. Step into the year 2028. How are people viewing digital video? Or have w
    9·2 answers
  • What is a expansion card for computer?
    5·1 answer
  • Differentiate between the broadcasting and telecommunication
    5·1 answer
  • HIGH POINTS!!! <br>List the creation date of each gaming console to exist.​
    8·1 answer
  • How do I get the most points, without any effort?
    11·2 answers
  • Assume that you want two C# or C++ programs to share some data. You can write the first program so that it writes it's output to
    5·1 answer
  • NEED HELP 100 POINTS FOR ANSWER AND BRAINIEST!!! Which comparison operator is used to signify that a value is not equal to anoth
    14·2 answers
  • Select all of the reasons Windows 95 increased the popularity of Windows.
    12·1 answer
  • What is the minimum number of bits you would need to represent a number on a 0 to 10 scale
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!