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
12345 [234]
4 years ago
12

Consider a sequence of method invocations as follows: main calls m1, m1 calls m2, m2 calls m3 and then m2 calls m4, m3 calls m5.

If m4 has just terminated, what method will resume execution?
Computers and Technology
1 answer:
Minchanka [31]4 years ago
4 0

Answer:

M2 is the answer for the above question.

Explanation:

  • The above question states the scenario, where firstly main function calls the M1 function.
  • Then M1 function calls the function M2.
  • Then M2 function calls the function M3.
  • Then M3 function calls the function M5.
  • Then Again M2 function will resume and calls the function M4.
  • Then Again M2 function will resume because when the M4 will ends it return to the statement of the M2 function from which the M4 function has been called.
  • It is because when any function ends its execution it returns to that line of a statement from which it has been called. This is the property of programming language to call the function.
  • So when the M4 will terminate its execution then the M2 function will resume again.
You might be interested in
Which educational qualification would help a candidate get a job as a computer systems engineer? a.certificate
stiv31 [10]
The mighty google indicates 4 year degrees are typically required. Though I can't see how A B or C would not "help". The answer, however, is likely D because that is the highest qualification listed.
8 0
4 years ago
Write an application that displays the sizes of the files lyric1.txt and lyric2.txt in bytes as well as the ratio of their sizes
viva [34]

Answer:

#include<iostream>

#include<fstream>

using namespace std;

int main() {

  ifstream file_one("lyric1.txt", ios::binary);

  ifstream file_two("lyric2.txt", ios::binary);

  file_one.seekg(0, ios::end);  // retrieving file size of lyric1.txt file

  file_two.seekg(0, ios::end);  // retrieving file size of lyric2.txt file

  // converting the binary file size to an integer.

  int fileOne = file_one.tellg();

  int fileTwo = file_two.tellg();

  cout<<"Size of the lyric1.txt is"<<" "<< fileOne<<" "<<"bytes";

  cout<<"Size of the lyric2.txt is"<<" "<< fileTwo<<" "<<"bytes";

  cout<< fileOne <<" : "<< fileTwo;

Explanation:

The source code gets the file size of two word files and displays them in bytes and also displays the ratio of both files.

4 0
3 years ago
Outline 3 computer system problem that could harm people and propose the way avoid the problem​
Debora [2.8K]

Answer:

<em>outline 3 computer system problem that could harm people and propose the way avoid the problem</em><em> </em><em>a</em><em>r</em><em>e</em><em> </em><em>:</em><em>_</em>

  1. <em>Computer Won't Start. A computer that suddenly shuts off or has difficulty starting up could have a failing power supply. </em>
  2. <em>Abnormally Functioning Operating System or Software. </em>
  3. <em>S</em><em>low Internet.</em>

6 0
3 years ago
Write a function that accepts a list as an argument (assume the list contains integers) and returns the total of the values in t
Serga [27]

Answer:

def listSum(mylist):

   sum =0

   for item in range(0,len(mylist)):

       sum=sum+mylist[item]

   print(sum)

Explanation:

Using the Python programming language, I defined a function as listSum that accepts a list as a parameter and returns the sum of the elements in the list.

The most important logic here is defining the range of elements in the list not to exceed the length of the list using the len function. Then using a for statement, we loop through each element and add them up to a sum variable initially assigned the value of 0.

8 0
4 years ago
Which of the following is true of an enterprise search software? Select one:
bekas [8.4K]

Option a. It matches a user’s query to many sources of information.

Explanation:

Enterprise search software extracts data from various sources to resolve user's query. It is basically needed by businesses. Businesses needs to store, retrieve and track digital information. The various data sources are obtained from information stored in e-mail servers, application databases, intranet sites, websites etc.

Enterprise search system searches data records found within organisation. Thus option A is accurate that it matches user's query to many sources of information is very much accurate.

5 0
3 years ago
Other questions:
  • What does a contain after the following code runs?int[] a = {1, 3, 7, 0, 0, 0};int size = 3, capacity = 6, value = 5;int pos = 0
    10·1 answer
  • Ella has finished drafting her presentation. What should she do next?
    6·2 answers
  • "______" is a wireless local network that uses high frequency radio signals to transmit an Internet signal from a wireless route
    9·1 answer
  • ICMP
    12·1 answer
  • If a computer truncatesall numbers to two decimal places, compute the error forthe following: 23.345+222.34911)0.12)0.01413)0.14
    15·1 answer
  • Will technology be the destruction or salvation of human-kind
    13·2 answers
  • How to turn on a computer
    9·1 answer
  • Dgvdsgf cvdzgb fgvsdxchygfdrzvdszfgvsdzxd
    9·1 answer
  • The process of recording and reporting the financial data for a business is known as:
    6·2 answers
  • Does any one know how to do addition of binary numbers​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!