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
Arisa [49]
3 years ago
15

What does an executable file contain? Program instructions written in source code. Program instructions that have been compiled

into machine language. Program instructions that have been interpreted. A microprocessor and a set of instructions.
Computers and Technology
1 answer:
masya89 [10]3 years ago
8 0

Answer:

Program instructions that have been compiled into machine language.

Explanation:

An executable file has an extension of .exe.

As per the name, exe file can be directly executed and the program runs and gives the output.

The exe file is produced using two other software applications called the compiler and the linker.

The compiler’s job is to convert source code into machine instructions. Linker, as per its name, links the machine instructions produced by the compiler with other files as discussed below.  

1. The program is written in the programming language known as the source code.

2. The program is saved.

3. Once saved, the program is compiled.

4. On compilation, the code is converted into machine language instructions which forms the object file.

5. This object file is the input for another software called linker.

6. The linker combines this object file with other object files (previously compiled header files) and produces the exe file.

7. This exe file is executed to give the result for which the program is written.

8. The exe file can be executed by double clicking on the exe file.

The .exe is the notation used on Windows system.

The exe file is produced every time the program is compiled. The computer acts in the way as is mentioned in the exe file.

Program instructions written in source code.  

1. This refers to the program written in the high-level language or the programming language or source code.

2. A text file contains the program or the source code, not an exe file.

A microprocessor and a set of instructions.

1. An exe file cannot contain a microprocessor.

2. An exe file can only contain instructions.

Program instructions that have been interpreted.  

1. The program on interpretation is converted to machine language instructions in run time.

2. On complete interpretation, output is displayed. No file is produced on interpretation.

3. Interpretation into machine language is done every time the program undergoes interpretation to give the output.

You might be interested in
a certain battery can supply 6 J of energy to every coulomb of charge moving through a circuit. if the circuit consists of two i
SOVA2 [1]
Whatever energy the electrons have when they come out of one terminal of the battery, they completely use it up on their way around the circuit, and they stagger back into the other terminal of the battery totally exhausted, with no energy left.

If each coulomb of electrons has 6 joules of energy when they leave the battery, then that's the energy they'll give up to the circuit before they return to the battery.

For each coulomb of charge that moves through that circuit, each flashlight bulb
will take 3 joules of energy away from that coulomb, and turn the energy into heat
and light.

==> 2 bulbs, 3 joules per coulomb that flows through each bulb, total 6 joules
per coulomb that flows around the circuit.

Note: 
The question says that the bulbs are in series, but that wasn't necessary.
The energy consumed by the bulbs would be the same if they're in parallel.
 

A cool extra factoid: 
The battery gives each coulomb of electrons that leaves it 6 joules of energy.
There's a special name for "1 joule per coulomb of charge".  That's the "<em>volt</em>".
A battery that gives each coulomb of charge 6 joules of energy is a 6-volt battery.
7 0
3 years ago
Directions: Using the decoder key and the code chart on the second page, find out the name that has been coded. After coding the
Karo-lina-s [1.5K]

What is the decodder key???

7 0
4 years ago
Kenny needs to keep client information such as names and addresses. She should use a
Aneli [31]
Folder!
They cost like 97. Cents
5 0
3 years ago
Read 2 more answers
(Solved—15 Lines) In many jurisdictions a small deposit is added to drink containers to encourage people to recycle them. In one
andrezito [222]

Answer:

JAVA program is given below.

import java.util.Scanner;

public class Main

{

   //static variables declared and initialized as required

   static float deposit1 = 0.10f;

   static float deposit2 = 0.25f;

   static float refund1;

   static float refund2;

   static int num_one_lit;

   static int num_more;

public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

 System.out.print("Enter the number of containers of 1 liter or less: ");

 num_one_lit = sc.nextInt();

 System.out.print("Enter the number of containers of more than 1 liter: ");

 num_more = sc.nextInt();

 //refund computed based on user input

 refund1 = num_one_lit*deposit1;

 refund2 = num_more*deposit2;

 //displaying refund

 System.out.printf("Total refund amount for containers of 1 liter or less is $%.2f %n", refund1);

 System.out.printf("Total refund amount for containers of more than 1 liter is $%.2f %n", refund2);

}

}

OUTPUT

Enter the number of containers of 1 liter or less: 5

Enter the number of containers of more than 1 liter: 2

Total refund amount for containers of 1 liter or less is $0.50  

Total refund amount for containers of more than 1 liter is $0.50

Explanation:

1. Variables are declared at class level hence declared as static.

2. Variables holding deposit also initialized with the given values.

3. User input is taken for the number of containers in both categories.

4. The total value of refund is computed using the given values and user entered values.

5. The total refund is displayed to the user for both categories.

6. To display two decimal places always, variables to hold deposit and refund are declared as float.

7. The keywords used for decimals are %.2f %n. The %.2f keyword indicates two decimal places to be displayed in float variable, %n indicates a numeric value is to be displayed.

8. The printf() method is used to display the formatted output for refund amount.

9. The keywords used to display the formatted output is derived from C language.

10. All the code is written inside class and execution begins from the main() method.

4 0
4 years ago
Write a method that returns a new array by eliminating the duplicate values in the array using the following method header: Publ
saw5 [17]

Answer:

Following are the program in java language

import java.util.*; // import package

class Main // main class

{

public static void main(String[] args) // main method

{

Scanner sc = new Scanner(System.in); // creating Scanner class object

int[] num= new int[10]; // declaring the array num

System.out.print("Enter 10 numbers:: ");

for (int i = 0; i < num.length; i++) // iterating over the loop

{

num[i] = sc.nextInt(); // taking 10 input integer.....

}

int[] newList1 = eliminateDuplicates(num);// calling the function eliminateDuplicates

System.out.println("The Distinct numbers are: ");

for (int i = 0; i< newList1.length; i++)

{

System.out.print(" " +newList1[i]); // display the new list

}

System.out.println();

}

public static int[] eliminateDuplicates(int[] list) // method definition as mention in question

{

int[] duplicate1 = new int[10]; // creating the array duplicate

int j = 0, I = 0; // variabe declaration

for (int i = 0; i < list.length; i++) // filling the duplicate with 0

{

duplicate1[i] = 0;

}

int count1 = 0; // variable declaration

for(int i = 0; i < list.length; i++)

{

boolean duplicate = false; // creating boolean variable

for(j = 0; j < count1; j++) // iterating over the loop

if(list[i] == duplicate1[j]) // checking the condition

{

duplicate = true; // assigning the duplicate variable to true

break;

}

if(!duplicate) //checking boolean variable duplicate

{

duplicate1[count1] = list[i];

count1++;

}

}

int [] newArray1 = new int[count1]; // creating a new array

for(int i = 0; i < count1; i++) // iterating over the loop

newArray1[i] = duplicate1[i]; // assign the element in the new array

return newArray1; // return array

}

}

Output:

Enter 10 numbers:::1

2

3

2

1

6

3

4

5

2

The Distinct numbers are:1 2 3 6 4 5

Explanation:

In this program we create a eliminateDuplicate method and passing array to them.In this function we create a duplicate array and assign 0 to them by iterating over  the loop then we check the required condition is duplicate or not by making comparison between the duplicate array and list array i.e if(list[i] == duplicate1[j]) . if matches found then it set duplicate = true; .Finally it created a new array and store the distinct element also return the new array element.  In the main method it printed the distinct elements .

7 0
3 years ago
Other questions:
  • Write a program that defines a type for a structure that stores information on a student in ENG EK 125. Declare two variables to
    8·1 answer
  • True/False: If a function is legally prototyped to return an integer value, it can return a structure member that is an integer
    11·1 answer
  • True or False: <br> The object reference can be used to polymorphically store any class in Java.
    13·1 answer
  • Which is a benefit of getting information from a government website?
    15·2 answers
  • What is the first step you should take when you want to open a savings account make your initial deposit go to the bank and fill
    9·1 answer
  • Which of the following is true about media production? A. All media elements contain a certain type of editorial viewpoint. B. P
    10·1 answer
  • You are working for a company that is responsible for determining the winner of a prestigious international event, Men’s Synchro
    5·1 answer
  • Como se llama este icono de word
    9·1 answer
  • Which of the following is a type of input device?
    5·1 answer
  • Select all the correct answers.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!