Answer:
using System;
class CheckDigit
{
public static void Main (string[] args)
{ //Accepting value from user
Console.WriteLine ("Enter a four-digit account number");
int acc = Convert.ToInt32(Console.ReadLine());
int d=acc%10; //extracting the last digit
acc=acc/10; //having the first three digit
if(acc % 7 == d) //checking and displaying
Console.WriteLine ("Valid Account Number");
else
Console.WriteLine ("Invalid Account Number");
}
}
Explanation:
Answer:
The answer is option 1 arr.length.
Explanation:
In java arr.length gives the correct number of elements in the array.The length is function is only applicable for arrays.
The length() method is applicable for strings.
arr.length-1 will give 1 element less.
There is no .size for arrays in java.
So we conclude that arr.length is correct way of getting the number of elements in one dimensional array arr.
Answer:
Option (c) Remote code exploits aim to escalate attackers’ privileges, while XSS attacks aim to gain access only
Explanation:
- XSS stands for Cross-site Scripting. In this types of attacks, a malicious code is injected in the trusted web sites and it sends the malicious code into the users. The users think that the genuine code was sent but not.
- This involves sending server side scripts which are executed by the user and these may even change the html pages too.
- Remote code exploitation means the user can inject the code and try to gain access. Usually, all the programming languages have evaluation functions if used the user can try to gain the access with this evaluation functions.
- This can lead to the compromise of the whole web server too.So, it is not a good practice to use the evaluation functions by the developers.
- In this type of attack, the attacker tries to inject the code remotely.
- Option (c) is correct and options (a),(b) and (d) are wrong options.
I’m pretty sure it’s miner
“I’ll give you head I mean brainiest”