Answer:
Explanation:
Since all of the items in the array would be integers sorting them would not be a problem regardless of the difference in integers. O(n) time would be impossible unless the array is already sorted, otherwise, the best runtime we can hope for would be such a method like the one below with a runtime of O(n^2)
static void sortingMethod(int arr[], int n)
{
int x, y, temp;
boolean swapped;
for (x = 0; x < n - 1; x++)
{
swapped = false;
for (y = 0; y < n - x - 1; y++)
{
if (arr[y] > arr[y + 1])
{
temp = arr[y];
arr[y] = arr[y + 1];
arr[y + 1] = temp;
swapped = true;
}
}
if (swapped == false)
break;
}
}
Answer:
depends is it just a survey? because if it doesent matter about the questions ou can do basic quuestions such as "what is your favorite video games" or "what is your favorite food"?
Explanation:
Flip bit position 5 to accomplish this. This maps to hex value 0x20, where the least significant bit is assumed to be at position 0.
Example: ascii "A" = 0x41, "a" = 0x61. 0x41 xor 0x61 = 0x20.
You would implement a flip function by XOR'ing the character value with 0x20.
Answer:
<html>
<body>
<p style="text-align:center;color:red;">This is a paragraph.</p>
<p><i> "This text is italic</i></p>
</body>
</html>
Explanation:
I got a 75%. Hope this helps.°ω°
Answer:
Option D, This PC allows a user to save a presentation on a computer
Explanation:
If one choses the option C, the file will be saved in the folder in which the user is working. Hence, option C is incorrect.
Like wise option A is also incorrect as it will require user to provide a location as option for saving the file
Option B is also incorrect as it will allow the user to save files in the C drive/D drive or one drive
Option D is correct because if the user choses this option file will be saved on the computer.
Hence option D is correct