Code Password Generation Quiz: Code and Password Generation

  • Grade 11th
Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11121 | Total Attempts: 9,743,875
| Attempts: 17 | Questions: 20 | Updated: May 19, 2026
Please wait...
Question 1 / 21
🏆 Rank #--
0 %
0/100
Score 0/100

1) Using 26 letters, the number of 26-character codes with no repetition is 26!.

Explanation

The answer is True. P(26,26) = 26! divided by 0! = 26! divided by 1 = 26!. When all n symbols are used exactly once, the count equals n factorial — the total number of orderings of all 26 letters. Every distinct arrangement of all 26 letters is a unique 26-character code.

Submit
Please wait...
About This Quiz
Code Password Generation Quiz: Code and Password Generation - Quiz

How do combinations and arrangements influence the creation of secure passwords or codes? In this quiz, you’ll explore how counting principles determine the number of possible passwords based on available characters. You’ll practice using permutations, combinations, and fundamental counting rules to model code generation. Each problem helps you understand how... see moresecurity depends on structure and variability, giving you insight into why certain password patterns are stronger and harder to guess.
see less

2)

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2) If P(n, 2) = 132, what is n?

Explanation

P(n,2) = n times (n-1) = 132. Solving: n squared minus n minus 132 = 0, giving (n-12)(n+11) = 0. The positive solution is n=12. Check: 12 times 11 = 132. Option A: 11 times 10 = 110, not 132. Option B: 13 times 12 = 156, not 132. Option C: 14 times 13 = 182, not 132. Only n=12 satisfies the equation.

Submit

3) From 36 symbols, select all expressions equal to the number of 4-character codes with no repetition.

Explanation

P(36,4) = 1,413,720. 36P4 is standard notation confirming A. 36! divided by 32! = 36! divided by (36-4)! = P(36,4), confirming B. 36C4 times 4! = combinations times orderings = permutations, confirming C. 36 times 35 times 34 times 33 is the direct descending product, confirming D.

Submit

4) Using digits 0 to 9 with no repetition, how many 5-character codes are even (last digit even)?

Explanation

Choose the last digit from the 5 even digits (0,2,4,6,8): 5 ways. Fill the remaining 4 positions from the other 9 digits with no repetition: P(9,4) = 9 times 8 times 7 times 6 = 3024. Total = 5 times 3024 = 15,120. Option A gives 12,600, option B gives 13,860, option D gives 16,800, none of which correctly multiply 5 by P(9,4).

Submit

5) Using 26 uppercase and 26 lowercase letters (52 symbols), the number of 2-character codes without repetition is what?

Explanation

P(52,2) = 52 times 51 = 2652. The first position has 52 choices and the second has 51 since repetition is not allowed. Option A gives 2500 = 50 squared. Option B gives 2550 = 50 times 51. Option C gives 2600 = 52 times 50. Only 2652 correctly applies the no-repetition rule with n=52.

Submit

6) Using digits 0 to 9 with no repetition, the number of 6-digit PINs is P(10,6) = 151,200.

Explanation

The answer is True. P(10,6) = 10 times 9 times 8 times 7 times 6 times 5 = 151,200. Verified: 10 times 9 = 90, times 8 = 720, times 7 = 5040, times 6 = 30,240, times 5 = 151,200. The statement correctly applies the permutation formula.

Submit

7) Using only the 5 vowels A, E, I, O, U, how many 3-letter codes without repetition end with a vowel?

Explanation

Since all 5 symbols are vowels, every 3-letter code without repetition automatically ends with a vowel. The total is simply P(5,3) = 5 times 4 times 3 = 60. Alternatively: choose the last position (5 ways) then arrange 2 from the remaining 4 (4 times 3 = 12), giving 5 times 12 = 60. Both methods confirm 60.

Submit

8) Select all scenarios that result in 0 possible codes with no repetition.

Explanation

Option A: r=7 exceeds n=5, so no valid arrangements exist, confirming A. Option B: cannot select any symbol from an empty set, confirming B. Option D: need 7 distinct vowels but only 6 exist, so r exceeds n, confirming D. Option C: P(3,3) = 3! = 6, not 0 — using all 3 symbols once each produces valid codes.

Submit

9) 12 distinct symbols, 4-character code must include symbol A exactly once, no repetition. How many such codes?

Explanation

Place A in one of 4 positions: 4 ways. Fill the remaining 3 positions from the other 11 symbols with no repetition: P(11,3) = 11 times 10 times 9 = 990. Total = 4 times 990 = 3960. Option A gives 3300, option B gives 3520, option C gives 3720, none of which correctly combine the position choices with P(11,3).

Submit

10) There are 8 distinct symbols. If the 8-character code must start with a specific symbol, the number of codes is what?

Explanation

The first position is fixed (1 way), leaving 7 remaining symbols to be arranged in any order for positions 2 through 8. The number of arrangements is 7! = 5040. Option A gives 6! = 720. Option B gives 7 times 6 times 5 times ... stopped early. Option C gives 6 times 720 = 4320. Only 7! = 5040 correctly counts the arrangements of the remaining 7 symbols.

Submit

11) Using digits 0 to 9 with no repetition, how many 4-digit codes are possible?

Explanation

P(10,4) = 10 times 9 times 8 times 7 = 5040. The first position has 10 choices, second has 9, third has 8, fourth has 7. Option A gives 4096 = 4 to the power 6, unrelated. Option B gives 3024 = P(9,4), using only 9 digits. Option D gives 9072, which has no valid derivation.

Submit

12) For 10 digits, select all expressions equal to the number of 3-character codes with no repetition.

Explanation

P(10,3) = 720. 10P3 is standard notation for P(10,3), confirming A. 10 times 9 times 8 = 720, confirming B. 10! divided by 7! = 720, confirming C. 10C3 times 3! = 120 times 6 = 720, confirming D since multiplying combinations by r! recovers the permutation count.

Submit

13) Using A to Z and 0 to 9 (36 symbols), how many 5-character codes without repetition?

Explanation

P(36,5) = 36 times 35 times 34 times 33 times 32 = 45,239,040. Verified: 36 times 35 = 1,260; times 34 = 42,840; times 33 = 1,413,720; times 32 = 45,239,040. Options B, C, and D do not result from any valid application of the permutation formula with n=36 and r=5.

Submit

14) From 7 distinct symbols, the number of 3-character codes without repetition is what?

Explanation

P(7,3) = 7 times 6 times 5 = 210. The first position has 7 choices, second has 6, third has 5. Option A gives 120 = P(5,3) or 5!. Option B gives 150, option C gives 180, neither of which result from the descending product starting at 7.

Submit

15) If r is greater than n, then the number of r-length codes from n symbols without repetition is 0.

Explanation

The answer is True. With no repetition, each position must use a distinct symbol. If more positions are needed than symbols available, it is impossible to fill all positions. The permutation formula breaks down since you would need to select more items than exist, giving a count of 0.

Submit

16) Digits 0 to 9, 4-character code, first position cannot be 0, no repetition. How many codes?

Explanation

First position has 9 choices (digits 1 to 9, excluding 0). After choosing the first digit, 9 digits remain including 0, giving 9 choices for position 2. Then 8 for position 3 and 7 for position 4. Total = 9 times 9 times 8 times 7 = 4536. Option A uses 9 times 8 times 7 times 6, incorrectly excluding 0 from all positions. Option C ignores the restriction on the first digit.

Submit

17) Select all expressions equal to the number of 4-letter codes from 26 uppercase letters without repetition.

Explanation

P(26,4) = 26 times 25 times 24 times 23, confirming A and B. Since P(26,4) = 26! divided by (26-4)! = 26! divided by 22!, option C is also correct. Option D gives 26C4 = 14,950, which counts unordered combinations and is P(26,4) divided by 4!, not equal to the permutation count.

Submit

18) From 36 symbols (A to Z and 0 to 9), how many 2-character codes without repetition?

Explanation

P(36,2) = 36 times 35 = 1260. The first position has 36 choices and the second has 35 since repetition is not allowed. Option A gives 1296 = 36 squared, which allows repetition. Options B and C have no valid derivation. Only 1260 correctly applies the no-repetition rule.

Submit

19) With 5 distinct symbols, the number of 5-character codes without repetition is what?

Explanation

P(5,5) = 5! = 5 times 4 times 3 times 2 times 1 = 120. All 5 symbols must be used exactly once, so this counts all possible orderings of the 5 symbols. Option A gives 60 = P(5,3). Option B gives 80, option C gives 100, neither of which match 5!.

Submit

20) Using 26 uppercase letters with no repetition, the number of 3-letter codes is 26 times 25 times 24 = 15,600.

Explanation

The answer is True. P(26,3) = 26 times 25 times 24 = 15,600. The first position has 26 choices, second has 25, third has 24, since no letter may repeat. The descending product formula for permutations gives exactly 15,600 ordered 3-letter codes.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Using 26 letters, the number of 26-character codes with no repetition...
If P(n, 2) = 132, what is n?
From 36 symbols, select all expressions equal to the number of...
Using digits 0 to 9 with no repetition, how many 5-character codes are...
Using 26 uppercase and 26 lowercase letters (52 symbols), the number...
Using digits 0 to 9 with no repetition, the number of 6-digit PINs is...
Using only the 5 vowels A, E, I, O, U, how many 3-letter codes without...
Select all scenarios that result in 0 possible codes with no...
12 distinct symbols, 4-character code must include symbol A exactly...
There are 8 distinct symbols. If the 8-character code must start with...
Using digits 0 to 9 with no repetition, how many 4-digit codes are...
For 10 digits, select all expressions equal to the number of...
Using A to Z and 0 to 9 (36 symbols), how many 5-character codes...
From 7 distinct symbols, the number of 3-character codes without...
If r is greater than n, then the number of r-length codes from n...
Digits 0 to 9, 4-character code, first position cannot be 0, no...
Select all expressions equal to the number of 4-letter codes from 26...
From 36 symbols (A to Z and 0 to 9), how many 2-character codes...
With 5 distinct symbols, the number of 5-character codes without...
Using 26 uppercase letters with no repetition, the number of 3-letter...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!

Advertisement