Answer:
String date = "21/05/2020";
String dayStr = date.substring(0,2);
int day = Integer.parseInt(dayStr);
System.out.println(day);
Explanation:
Create a variable called <em>date</em> which holds the current date
Create a variable called <em>dayStr</em>. Initialize it to the day part of the <em>date</em> using the substring method
Create a variable called <em>day</em>. Parse the <em>dayStr</em> and assign it to the <em>day</em>
Print the <em>day</em>
Answer:
Explanation:
The following python code creates the multiplication table for 10 rows and 10 columns. This code uses nested for loops to traverse the table and print out the product of each multiplication. The image attached shows the output of the code.
for x in range(1, 11):
for y in range(1, 11):
z = x * y
print(z, end="\t")
print()
Paying it in full month over month.
Answer:
DNS poisoning
Explanation:
DNS is a server service that verifies or resolves an IP address to a site or domain name. It's services is made available with a dhcp request from a client system, providing the ip address of the DNS server. The DNS server has the records of domain name linked to their individual ip addresses.
When an attacker wants a client to visit his site without knowing the site is not genuine, he gains access to the dns server and changes the information or poisons the entries of the server. So if the client tries to access that site, it takes him to the attackers site. This is called DNS poisoning.