840 are 4-letter passwords can be formed using the letters by permutation .
What are some examples of permutation?
We are to count all possible 4-letter passwords that can be generated from the letters a, b, c, d, e, f, g .
There are 7 letters in total.
n = 7 r = 4
P(n , r ) = 7!/( n - r )!
P( 7 ,4 ) = 7!/( 7 - 4)!
= 7!/3!
= 7 * 6 * 5 * 4 * 3 * 2 * 1/3!
= 7 * 6 * 5 * 4
= 840
Learn more about permutation
brainly.com/question/1216161
#SPJ4