Answer:
c. double triple(float n) { return (3 * n); }
Explanation:
In option a print is used to print integer.While printf is used in C to print something.
In option b there is no * operator between s s s it should be s*s*s.So it will give error.
In option d there is also no multiply operator * in between 3.14 2 r it should be 3.14*2*r.
So we can say that option c is error free.
Answer:
Explanation:
The following code is written in Java and creates the recursive function to find the longest common substring as requested.
static int lengthOfLongestSubsequence(String X, String Y) {
int m = X.length();
int n = Y.length();
if (m == 0 || n == 0) {
return 0;
}
if (X.charAt(m - 1) == Y.charAt(n - 1)) {
return 1 + lengthOfLongestSubsequence(X, Y);
} else {
return Math.max(lengthOfLongestSubsequence(X, Y),
lengthOfLongestSubsequence(X, Y));
}
}
Answer:
Option (A) is the right answer.
Explanation:
According to the scenario, the user system is giving the error of invalid certificate while other users on the same network do not report any error, which means that there is some problem in a particular system.
Date and time can also be one of the main cause of this error because wrong date and time creates problem in surfing many websites by giving certificate error.
Hence the most appropriate answer is option (A).
While other option are wrong because of the following reasons:
- UEFI boot mode is mainly used in booting the operating system and has no connection with network.
- Logon time is also wrong because if the problem is with the login server, it can not give certificate error.
- User access control is also not correct because it is used to control the access of the user.
Option B
Blog is the best way