Answer:
29
Explanation:
for n=28:
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 28*28 + 28/2 = 798
Algorithm 2 performs f(n) = 12*28 + 500 = 836
for n=29
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 29*29 + 29/2 = 855.5
Algorithm 2 performs f(n) = 12*29 + 500 = 848
so, for n=29, algorithm 2 will be faster than algorithm 1
Answer: Information security
Explanation:
The information security is one of the system that keeps the data confidential, assure the integrity and also availability of the information or data.
This system is basically refers as the CIA triad in the information security system and the data risk management.
The main aim of the information security is that keeps the data protected from the unauthorized accessing and also controlling the access in the system.
Therefore, Information security is the correct answer.
Answer:
Option b It executes a new process, which runs at the same time as the parent
Explanation:
The exec is one of the Java Runtime methods which is used to create a new process and run it as an separate process. Exec method executes the string command that we place inside the bracket. For example,
Process proc = Runtime.getRuntime().exec("Notepad.exe");
The statement above offers a convenient way to open the another computer software such as Notepad when running the program.
Answer:
for(let i = 0: i <=5; i++) {
console.log(I)
}
Explanation:
An iterative statement repeats a body of code until the condition is not true. Here we declare an integer (i) and make it 0. Then the loop checks if the second part is true (i is less than or equal to 5), and if it is true, it executes the code inside the loop body, which logs i, and finally runs the last past, which increments i by one. When the second part becomes false, the loop exits.