Answer: b. LDAP injection
Explanation:
LDAP (Lightweight Directory Access Protocol ) Injection is defined as
- an injection attack used by attacker to exploit web based applications by inserting LDAP statements based on user input.
- It may be possible modify LDAP statements through some techniques if an application fails to properly sanitize user input.
So,<u> LDAP injection</u> is the attack that allows for the construction of LDAP statements based on user input statements, which can then be used to access the LDAP database or modify the database's information.
Hence, the correct option is b. LDAP injection.
Answer:
Follows are the method definition to this question:
void printArray(int arrayToPrint[], int arraySize) //defining a method printArray that accepts two array in its parameters
{
for (int j = 0; j < arraySize; j++)//defining for loop print Serial numbers
{
Serial.print("[");//use print method to print square bracket
Serial.print(j);//use print method to print Serial numbers
Serial.print("]: ");//use print method to print square bracket
Serial.println(arrayToPrint[j]);//printing array value
}
}
Explanation:
In the above code, a method "printArray" is declared that holds two arrays "arrayToPrint and arraySize" as a parameter, and inside the method is used for loop to print the values.
In the loop, first, it uses the square bracket to print the serial number and in the last step, it prints array values.