Code Password Generation Quiz: Code and Password Generation

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: 7682 | Total Attempts: 9,547,133
| Questions: 20 | Updated: Dec 17, 2025
Please wait...
Question 1 / 20
0 %
0/100
Score 0/100
1) Using digits 0–9 with no repetition, how many 4-digit codes are possible?

Explanation

This is permutations without repetition: P(10,4) = 10×9×8×7 = 5040.

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)
You may optionally provide this to label your report, leaderboard, or certificate.
2) Using 26 uppercase letters with no repetition, the number of 3-letter codes is 26×25×24 = 15,600.

Explanation

P(26,3) = 26×25×24 = 15,600, so the statement is true.

Submit
3) With 5 distinct symbols, the number of 5-character codes without repetition is ____.

Explanation

All symbols must be used once each: P(5,5) = 5! = 120.

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

Explanation

P(36,2) = 36×35 = 1260.

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

Explanation

Permutations: P(26,4) = 26×25×24×23 = 26!/22!. 26C4 is unordered; 26^4 allows repetition.

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

Explanation

First digit: 1–9 (9 choices). After choosing first, remaining digits include 0, so positions 2–4 use 9,8,7 choices. Total 9×9×8×7 = 4536.

Submit
7) If r>n, then the number of r-length codes from n symbols without repetition is 0.

Explanation

You cannot place more distinct characters than available symbols, so the count is 0.

Submit
8) From 7 distinct symbols, the number of 3-character codes without repetition is ____.

Explanation

P(7,3) = 7×6×5 = 210.

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

Explanation

P(36,5) = 36×35×34×33×32 = 45,239,040.

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

Explanation

All listed except 10^3 (which allows repetition) equal P(10,3).

Submit
11) Using 26 letters, the number of 26-character case-insensitive codes with no repetition is 26!.

Explanation

Every permutation of the 26 letters is a unique 26-character code: P(26,26) = 26!.

Submit
12) There are 8 distinct symbols. If the 8-character code must start with a specific symbol, the number of codes is ____.

Explanation

Fix first position (1 way), then permute the other 7: 7! = 5040.

Submit
13) 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 remaining 3 spots with P(11,3) = 11×10×9 = 990. Total 4×990 = 3960.

Submit
14) Select all scenarios that result in 0 possible codes (no repetition).

Explanation

Zero occurs when r>n or when constraints make selection impossible. A: 7>5 ⇒ 0. B: cannot choose 1 from 0 ⇒ 0. D: need 7 distinct vowels but only 6 exist ⇒ 0. C gives 3!; E gives 1.

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

Explanation

All letters are vowels. Choose the last (5 ways), then arrange 2 from remaining 4 for the first two spots: 4×3 = 12. Total 5×12 = 60 = P(5,3).

Submit
16) Using digits 0–9 with no repetition, the number of 6-digit PINs is 10P6 = 151,200.

Explanation

P(10,6) = 10×9×8×7×6×5 = 151,200.

Submit
17) Using 26 uppercase and 26 lowercase letters (52 symbols), the number of 2-character codes without repetition is ____.

Explanation

P(52,2) = 52×51 = 2652.

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

Explanation

Choose last digit from {0,2,4,6,8} (5 ways). Fill remaining 4 positions with P(9,4) = 9×8×7×6 = 3024. Total 5×3024 = 15,120.

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

Explanation

All except 36^4 (which allows repetition) match P(36,4).

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

Explanation

Solve n(n−1)=132 ⇒ n^2−n−132=0 ⇒ (n−12)(n+11)=0. Positive solution: n=12.

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

Advertisement