Answer:
B) TLS (Transport Layer Security)
Explanation:
SSL refers to secured socket layer, while TLS refers to Transport Layer Security. They are both security measures implementing crytography to ensure secured communication on a network especially in web and electronic mails. While very minor technical differences exist between these two protocols, SSL is veiwed as outdated because TLS uses stronger algorithms for encryption. The SSL is also unable to work on different ports unlike TLS.
Answer:
The program in Java is as follows:
public class SumThousand {
public static void main(String args[]) {
int sum=0;
for(int i =1;i<=1000;i++)
sum+=i;
System.out.println("Sum = " + sum);
}
}
Explanation:
This initializes sum to 0
int sum=0;
This iterates from 1 to 1000
for(int i =1;i<=1000;i++)
This calculates the required sum
sum+=i;
This prints the calculated sum
System.out.println("Sum = " + sum);
import java.util.Scanner;
public class MyClass1 {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int smallest = 0, largest = 0, num, count = 0;
while (true){
System.out.println("Enter a number (-1 to quit): ");
num = scan.nextInt();
if (num == -1){
System.exit(0);
}
else if (num < 0){
System.out.println("Please enter a positive number!");
}
else{
if (num > largest){
largest = num;
}
if (num < smallest || count == 0){
smallest = num;
count++;
}
System.out.println("Smallest # so far: "+smallest);
System.out.println("Largest # so far: "+largest);
}
}
}
}
I hope this helps! If you have any other questions, I'll do my best to answer them.
It's E) both A and B
A) Control logic is invoked
B) Data flow paths are established
<span>The process of placing one layer's protocol data unit in the payload of a lower layer protocol is </span>Encapsulation.