Answer:
An HTTP Header attack
Explanation:
In web applications an HTTP refers to Hypertext Transfer Protocol and an HTTP Header is the value that is displayed in a request or response message, the header has a name and a value separated by a colon.
An HTTP header attack called an header injection is a vulnerability that is present when users' inputs are required for the dynamic generation of HTTP headers. This vulneraility allows several security threats to be carried out, some examples are:
- Malicious site redirection
- Cross-site scripting, and
- Session fixation through the set-cookie header
Answer:
C.
Explanation:
The second field is Age. Age is expressed as a number so will most likely be stored in a number data type.
Answer:
import java.util.Scanner;
import java.lang.*;
class Main
{
public static void main(String args[])
{
int n;
//For capturing the value of n
Scanner scanner = new Scanner(System.in);
System.out.println("Enter the value of n:");
//The entered value is stored in the var n
n = scanner.nextInt();
int k=1;
printnum(n,k);
}
public static void printnum(int n,int k)
{
if(n%2==0)
{
for(int i=k;i<=n-1;i=i+2)
{
System.out.print(i);
}
System.out.println("");
}
else
{
for(int i=k;i<=n-1;i=i+2)
{
System.out.print(i);
}
System.out.println("");
}
n--;
if(n<=1)
{
System.exit(0);
}
else
{
printnum(n,k+1);
}
}
}
Explanation:
The program is self explanatory.