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
Gnoma [55]
3 years ago
13

A file that contains program code is called a ____________.

Computers and Technology
1 answer:
BartSMP [9]3 years ago
4 0
Executable or binary
You might be interested in
I have six nuts and six bolts. Exactly one nut goes with each bolt. The nuts are all different sizes, but it’s hard to compare t
juin [17]

Answer:

Explanation:

In order to arrange the corresponding nuts and bolts in order using quicksort algorithm, we need to first create two arrays , one for nuts and another for bolts namely nutsArr[6] and boltsArr[6]. Now, using one of the bolts as pivot, we can rearrange the nuts in the nuts array such that the nuts on left side of the element chosen (i.e, the ith element indexed as nutArr[i]) are smaller than the nut at ith position and nuts to the right side of nutsArr[i] are larger than the nut at position "I". We implement this strategy recursively to sort the nuts array. The reason that we need to use bolts for sorting nuts is that nuts are not comparable among themselves and bolts are not comparable among themselves(as mentioned in the question)

The pseudocode for the given problem goes as follows:

// method to quick sort the elements in the two arrays

quickSort(nutsArr[start...end], boltsArr[start...end]): if start < end: // choose a nut from nutsArr at random randElement = nutsArr[random(start, end+1)] // partition the boltsArr using the randElement random pivot pivot = partition(boltsArr[start...end], randElement) // partition nutsArr around the bolt at the pivot position partition(nutsArr[start...end], boltsArr[pivot]) // call quickSort by passing first partition quickSort(nutsArr[start...pivot-1], boltsArr[start...pivot-1]) // call quickSort by passing second partition quickSort(nutsArr[pivot+1...end], boltsArr[pivot+1...end])

// method to partition the array passed as parameter, it also takes pivot as parameter

partition(character array, integer start, integer end, character pivot)

{

       integer i = start;

loop from j = start to j < end

       {

check if array[j] < pivot

{

swap (array[i],array[j])

               increase i by 1;

           }

 else check if array[j] = pivot

{

               swap (array[end],array[j])

               decrease i by 1;

           }

       }

swap (array[i] , array[end])

       return partition index i;

}

7 0
4 years ago
Is I5 9100 is better than i5 9400
IrinaVladis [17]

Answer:

Personally, Yes.

Explanation:

I say this completely on a personal level, and also looking at the stats. Looking at the stats, its a cheaper, and faster model.  9100 at 3.5GHz whereas 9400 runs at 2.9GHz. On turbo speed, it runs up to 4.2GHz, where as the 9400 runs at 4GHz. The price is 100 dollars less on the 9100. there are 2 more physical cores on the 9400, but that doesnt neccesarily mean its a bad desktop. Also, its CPU mark is about 2000% higher than the 9400.

Hope this helped.

3 0
4 years ago
Which phrase describes this image most precisely?
KIM [24]

The correct answer is D. A nice bunch of colorful flowers in a transparent water jug with a handle.

Explanation:

Describing an image precisely requires using specific details that allow others to understand or imagine the image even without seeing it. Due to this, to describe this image precisely it is a good idea to include as many accurate details as possible, which includes words such as "colorful", "flowers", "transparent", etc. In this context, the best option is D because this offers more details than other options and all of these details are accurate and specific.

4 0
3 years ago
"A file named numbers.txt contains an unknown number of lines, each consisting of a single integer. Write some code that compute
satela [25.4K]

Answer:

Following are the program in the Python Programming Language.

#declare variable and initialize to 0

sum = 0

#read the following file

file = open('numbers.txt', 'r')

#set the for loop

for n in file:

  #convert the file string into the integer and perform sum.

  sum += int(n)

Explanation:

<u>The following are the description of the program</u>.

  • Firstly, declare variable 'sum' and initialize the integer type value i.e., 0.
  • Set the variable 'file' that only read the following file text i.e., 'numbers.txt'.
  • Set the for loop that read the content of the file and store in the variable 'n' one by one.
  • Finally, er convert the following string in to the integer and perform the addition.
7 0
3 years ago
A touch screen is classified as a special type of scanning device true or false
Arte-miy333 [17]
The anwser is true. It is special type


6 0
4 years ago
Other questions:
  • Select the correct statement about data preparation.
    10·1 answer
  • What is the difference between a software package and integrated software
    7·1 answer
  • A hierarchical addressing scheme is used
    15·1 answer
  • Microsoft acknowledged that if you type a res:// url (a microsoft-devised type of url) which is longer than ____ characters in i
    9·1 answer
  • THE bestValue PROBLEM Using the Camera structure defined in file p1.cpp, write the function named bestValue(). The function take
    13·1 answer
  • What option from the format tab should you use to remove unwanted parts of a picture
    8·1 answer
  • what are the benefits of VolP? select all that apply. A:cheaper printings B:clearer calls C: faster download D: increased effici
    11·2 answers
  • Please help thank you !!!
    7·2 answers
  • FIFTY POINTS IF YOU CAN HELP ME!!!!
    11·1 answer
  • What does a good résumé help you do?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!