I would say a. correcting others' spelling and grammar.
Answer:
public static boolean isPalindrome(String word) {
//TODO: Complete this method
String reverse = "";
for (int i = (word.length()-1); i>=0; i--) {
if(word.charAt(i)!=' '){
reverse+=word.charAt(i);
}
}
String without_space = word.replaceAll(" ", "");
return reverse.equals(without_space);
}
Answer:
Check the explanation
Explanation:
#include<stdio.h>
/*Function to return max sum such that no two elements
are adjacent */
int FindMaxSum(int arr[], int n)
{
int incl = arr[0];
int excl = 0;
int excl_new;
int i;
for (i = 1; i < n; i++)
{
/* current max excluding i */
excl_new = (incl > excl)? incl: excl;
/* current max including i */
incl = excl + arr[i];
excl = excl_new;
}
/* return max of incl and excl */
return ((incl > excl)? incl : excl);
}
/* Driver program to test above function */
int main()
{
int arr[] = {5, 5, 10, 100, 10, 5};
printf("%d \n", FindMaxSum(arr, 6));
getchar();
return 0;
}
Complete Question:
A system has defined specifications that describe how signals are sent over connections. Which layer of the Transmission Control Protocol/Internet Protocol (TCP/IP) model provides this function?
Group of answer choices.
A. Transport
B. Network
C. Data link
D. Physical
Answer:
A. Transport
Explanation:
Transmission Control Protocol/Internet Protocol (TCP/IP) model is a standard communication protocol used for interconnecting network devices such as routers, switches, host computers and access points over the internet.
A system has defined specifications that describe how signals are sent over connections. The layer of the Transmission Control Protocol/Internet Protocol (TCP/IP) model that provides these functions is the transport layer.
The transport layer comprises of two (2) standard protocols and these are TCP and UDP.
TCP is an acronym for Transmission Control Protocol and it is one of the essential and important protocol of the internet protocol network. This simply means that, it is an essential part of the TCP/IP network. The TCP has a wide range of applications in the following areas, file transfers, world wide web, remote administration, e-mail, etc.
The TCP connection are mainly established in the network using the three-way handshake.
UDP is an acronym for user datagram protocol and it enables the transfer or exchange of data between network devices.
The correct answer is: " information " .
_________________________
<u>Note</u>: In addition to the [4 (four) "primary computer operations" — which are:
"input, processing, output, and storage" ] — today's computers almost always perform <u> information </u> functions.
_________________________