Answer:
The output of the following code is "The number is SMALL!"
Explanation:
When the following java code is executed. Firstly the program will ask for "Please enter a number" after input the number 15 as per the question, than it check the condition which is "number > 20", if the number is greater than 20 it shows "The number is LARGE!", but the given number is smaller than 20.
Answer:
The solution code is written in Java
- public static void checkCommonValues(int arr1[], int arr2[]){
- if(arr1.length < arr2.length){
- for(int i = 0; i < arr1.length; i++){
- for(int j = 0; j < arr2.length; j++){
- if(arr1[i] == arr2[j]){
- System.out.print(arr1[i] + " ");
- }
- }
- }
- }
- else{
- for(int i = 0; i < arr2.length; i++){
- for(int j = 0; j < arr1.length; j++){
- if(arr2[i] == arr1[j]){
- System.out.print(arr2[i] + " ");
- }
- }
- }
- }
- }
Explanation:
The key idea of this method is to repeated get a value from the shorter array to check against the all the values from a longer array. If any comparison result in True, the program shall display the integer.
Based on this idea, an if-else condition is defined (Line 2). Outer loop will traverse through the shorter array (Line 3, 12) and the inner loop will traverse the longer array (Line 4, 13). Within the inner loop, there is another if condition to check if the current value is equal to any value in the longer array, if so, print the common value (Line 5-7, 14-16).
<span>14. A mesh represents a(n) _____ object if its faces enclose a positive and finite amount of space. (1 point)
odd
connected
simple
convex
15. Which of the following is the 3-D view port? (1 point)
the standard layout used for new files
the polygon viewing on the default screen
straight line segments connecting two vertices
a single static image in 3-D
The answer for number 1, should be:
SOLID
</span><span>A mesh represents a solid object if its faces enclose a positive and finite amount of space
</span>
The answer for the second question is:
a single static image in 3-D
Answer:
True
Explanation:
The word processor used to be the only office machine in the year 1960s, that combined the keyboard text-entry and various printing functions of an electric typewriter with the recording memory. And this recording unit was a tape or a floppy disk, with the simplest of processor applied for text editing. Hence, the above statement that the early word processors ran on the devices that look like digital is true.
Answer:
(10^6 + 9.9)
Explanation:
Given:
Total number of machine instructions = 1000
Number of page fault in 100 instructions = 1
Number of page faults in 1000 instructions = 10
Time to serve one page fault = 100 milliseconds
Time to serve ten page faults = 100*10 milliseconds = 1000 milliseconds = 10^6 Microseconds
Number of instructions without any page fault = 1000 - 10 = 990
Time required to run 1000 instructions = 10 Microseconds
So, time required to run 990 instructions = (10*(990/1000)) Microseconds = 9.9 Microseconds
So, the total time required to run the program = (10^6 + 9.9) Microseconds