Answer:
Server
Explanation:
Servers are used to house information from websites to video games.
Please Help! Unit 6: Lesson 1 - Coding Activity 2
Instructions: Hemachandra numbers (more commonly known as Fibonacci numbers) are found by starting with two numbers then finding the next number by adding the previous two numbers together. The most common starting numbers are 0 and 1 giving the numbers 0, 1, 1, 2, 3, 5...
The main method from this class contains code which is intended to fill an array of length 10 with these Hemachandra numbers, then print the value of the number in the array at the index entered by the user. For example if the user inputs 3 then the program should output 2, while if the user inputs 6 then the program should output 8. Debug this code so it works as intended.
The Code Given:
import java.util.Scanner;
public class U6_L1_Activity_Two{
public static void main(String[] args){
int[h] = new int[10];
0 = h[0];
1 = h[1];
h[2] = h[0] + h[1];
h[3] = h[1] + h[2];
h[4] = h[2] + h[3];
h[5] = h[3] + h[4];
h[6] = h[4] + h[5];
h[7] = h[5] + h[6];
h[8] = h[6] + h[7]
h[9] = h[7] + h[8];
h[10] = h[8] + h[9];
Scanner scan = new Scanner(System.in);
int i = scan.nextInt();
if (i >= 0 && i < 10)
System.out.println(h(i));
}
}
Answer and Explanation:
Advantages of having large page sizes: Smaller page table, less page faults, less overhead in reading/writing of pages.
Advantages of having small page sizes: reduces internal fragmentation, better with locality of reference.
If you're coding with C++ then the solution would be:
if (userInput.find("darn") != -1) {
cout << "Censored" << endl;
}
else{
cout << userInput << endl;
}
Keep in mind that this will reject any input with the word "darn" in the sentence. This will not filter the word darn if the capitalization is in different formats like "Darn, dArn, daRn, darN, DARN".
TCP and router system is the best fitting answer.
<u>Explanation:</u>
In network TCP IP address plays major roles. Without TCP even network will not work. To access the internet we need TCP address. TCP is required to send an email or chatting software or VPN connectivity. To get access or connect computer or desktop or workstation TCP plays major roles.
To send an email id we need from address and to address at the same time to send mail we need TCP and their router systems. To check whether we are connected to network router we use PING command in DOS MODE for that TCP IP address is required.