Authentication & Access Control MCQs for NSCT

By the NSCT Exam Editorial Team · Updated 2026-11-24 · Facts checked against official sources on 2026-11-24

Authentication proves who a user is; access control (authorisation) then decides what that user may do. This topic covers passwords, multi-factor authentication (MFA) and the access control models DAC, MAC, RBAC and ABAC. It is the eighth topic in the Cyber Security area, which carries 5% of the NSCT according to HEC's Areas of Competencies. That area had 47.2% accuracy in 2026, per the HEC NSCT report and APP.

The definitions below follow Stallings and Brown, Computer Security: Principles and Practice (chapters on user authentication and access control).

Passwords and MFA

Stallings lists four means of authentication:

Factor Examples
Something you know Password, PIN, security answer
Something you possess Smart card, hardware token, phone with an authenticator app
Something you are (static biometric) Fingerprint, face, iris
Something you do (dynamic biometric) Voice, typing rhythm, signature

MFA combines factors from different categories. A password plus a security question is still single-factor.

Password strength. For a random password, entropy = length × log2(alphabet size). Eight characters from 62 symbols give 8 × log2 62 ≈ 47.6 bits, or 62^8 ≈ 2.18 × 10^14 guesses. At 10^10 guesses per second that takes about 6 hours, which is why stored passwords need a salt (a random per-user value hashed with the password) and a deliberately slow hash such as bcrypt, scrypt, Argon2 or PBKDF2. With salts, two users with the same password get different hashes. Without them, the hashes match and one crack exposes both.

TOTP (RFC 6238) computes an HMAC of a shared secret and the time step T = floor(Unix time / 30). At Unix time 1,500,000,000, T = 50,000,000. Servers usually accept one step either side to allow for clock drift.

Exam angle: count the categories, not the number of steps.

DAC

In discretionary access control, the owner of a resource decides who else may access it. Unix permissions are DAC: chmod 640 notes.txt gives the owner read and write, the group read, and others nothing.

The access control matrix has subjects as rows and objects as columns. Stored by column it gives an access control list (ACL) per object; stored by row it gives a capability list per subject.

Exam angle: DAC's weakness is the Trojan horse problem. Any program you run acts with your rights and can copy your files anywhere.

MAC models

In mandatory access control, the system enforces a central policy using security labels, and owners cannot override it. The two classic models are mirror images:

Model Protects Read rule Write rule
Bell-LaPadula (BLP) Confidentiality No read up (simple security property) No write down (*-property)
Biba Integrity No read down No write up

Labels can include categories. A subject dominates an object when its level is at least as high and its category set contains the object's. A subject at (Secret, {Army}) may read (Confidential, {Army}) but not (Confidential, {Navy}) or (Secret, {Army, Navy}).

Textbooks differ slightly on the *-property: Stallings allows writing up to higher levels, while the "strong star property" in some texts allows writing only at the subject's own level. When a question gives no detail, use the standard "no write down" rule.

Exam angle: for any BLP or Biba question, first decide whether the model protects confidentiality or integrity, then apply the two rules.

RBAC

Role-based access control assigns permissions to roles and users to roles. When a nurse joins, you give her the Nurse role instead of editing many files. Two features appear in questions:

ABAC (attribute-based access control) goes further. It evaluates rules over subject, object and environment attributes, such as "doctors may read records of patients in their own ward during their shift". Plain RBAC would need a role for every ward and shift, a problem called role explosion.

Exam angle: "based on job function" means RBAC; "based on time, location or other attributes" means ABAC.

Common traps

Worked examples

1. Understanding. A system lets a file's owner decide who may read it, and the owner can pass that right on. Which model is this? Answer: DAC. Access is at the owner's discretion. Under MAC the system's labels decide, and the owner could not override them.

2. Application. A PIN has 6 random digits and the app allows 3 tries per hour. On average, how many days does an online attacker need? Answer: about 6,944 days (about 19 years). There are 10^6 PINs; the average search covers half, 500,000 guesses. At 3 × 24 = 72 guesses per day, 500,000 / 72 ≈ 6,944 days.

3. Analysis. Under Biba, a High-integrity payroll process reads a Low-integrity file uploaded by a visitor, then updates salary records. Which rule is broken, and why does it matter? Answer: no read down. Reading Low data could let untrusted input corrupt the process's decisions, which would then flow into High-integrity records. Biba blocks that read so contamination cannot climb.

Practise

The quiz below has 100 questions on this topic, filterable by tier and difficulty.

Practise: 100 questions

Interactive quiz loading. The first 10 questions are shown below.

  1. What is the difference between authentication and authorisation?

    1. Authentication decides what you may do; authorisation verifies who you are
    2. Authentication verifies who you are; authorisation decides what you are allowed to do
    3. They are two names for the same step
    4. Authentication encrypts data; authorisation hashes it
    Show answer

    Answer: B. Authentication verifies who you are; authorisation decides what you are allowed to do

    Authentication confirms a claimed identity, for example by checking a password. Authorisation (access control) then decides which resources that identity may use and how. Authentication always comes first.

  2. Stallings lists four general means of authenticating a user. Which one is 'something the individual possesses'?

    1. A password
    2. A smart card or hardware token
    3. A fingerprint
    4. The rhythm of the user's typing
    Show answer

    Answer: B. A smart card or hardware token

    The four means are something the individual knows (password, PIN), possesses (smart card, token, phone), is (static biometrics such as a fingerprint) and does (dynamic biometrics such as voice or typing rhythm). A token is a possession factor.

  3. Which login method is genuine multi-factor authentication (MFA)?

    1. A password plus a security question
    2. Two different passwords
    3. A PIN plus the user's date of birth
    4. A password plus a one-time code from an authenticator app on the user's phone
    Show answer

    Answer: D. A password plus a one-time code from an authenticator app on the user's phone

    MFA needs factors from different categories. A password is something you know and the app on your phone is something you have. A security question, a second password or a date of birth are all more knowledge factors, so those options are single-factor.

  4. In discretionary access control (DAC), who decides who else can access a resource?

    1. The owner of the resource
    2. A central security administrator only, using labels
    3. The operating system kernel, based on security clearances
    4. Nobody; all users have equal access
    Show answer

    Answer: A. The owner of the resource

    DAC is discretionary because the owner can grant or revoke access to others at their own discretion. Unix file permissions and Windows ACLs that owners edit are common DAC examples.

  5. Which statement best describes mandatory access control (MAC)?

    1. Each file owner decides who may read the file
    2. The system enforces access by comparing security labels on subjects and objects, and users cannot override it
    3. Users are given roles, and roles are given permissions
    4. Access depends only on the time of day
    Show answer

    Answer: B. The system enforces access by comparing security labels on subjects and objects, and users cannot override it

    In MAC a central policy assigns labels (for example classification levels) and the system enforces the rules. Even the owner of a file cannot pass it to someone without the right clearance.

  6. In role-based access control (RBAC), permissions are assigned to:

    1. Each user directly, one permission at a time
    2. Roles, and users get permissions by being assigned to roles
    3. Files, which then choose their own users
    4. Security labels such as Secret and Top Secret
    Show answer

    Answer: B. Roles, and users get permissions by being assigned to roles

    RBAC puts a role layer between users and permissions. When a person changes job you change their role assignment rather than editing dozens of individual permissions.

  7. An access control list (ACL) attached to a file corresponds to which part of the access control matrix?

    1. A row: everything one subject can access
    2. A column: the list of subjects and their rights for that one object
    3. The diagonal of the matrix
    4. The whole matrix stored in one place
    Show answer

    Answer: B. A column: the list of subjects and their rights for that one object

    The access matrix has subjects as rows and objects as columns. Storing it by column gives an ACL per object. Storing it by row gives a capability list per subject.

  8. A fingerprint scan used to unlock a phone is which type of authentication factor?

    1. Something you know
    2. Something you are (static biometric)
    3. Something you have
    4. Something you do (dynamic biometric)
    Show answer

    Answer: B. Something you are (static biometric)

    A fingerprint is a physical characteristic, so Stallings classes it as a static biometric, something the individual is. Voice pattern and typing rhythm are dynamic biometrics.

  9. In password storage, what is a salt?

    1. A random value stored with each user's record and combined with the password before hashing
    2. A secret key shared by all users
    3. An extra character the user must type
    4. The encryption key used to decrypt passwords
    Show answer

    Answer: A. A random value stored with each user's record and combined with the password before hashing

    A salt is a random per-user value stored in plain form next to the hash. Because each user's salt differs, identical passwords give different hashes, and precomputed (rainbow) tables become useless.

  10. The Bell-LaPadula (BLP) model was designed mainly to protect:

    1. Confidentiality
    2. Integrity
    3. Availability
    4. Accountability
    Show answer

    Answer: A. Confidentiality

    BLP is a multilevel security model for confidentiality: it stops information flowing from higher classifications to lower ones. The Biba model is its integrity counterpart.

FAQs

What is the difference between DAC, MAC and RBAC?

In DAC the owner of a resource decides who gets access. In MAC the system enforces central rules using security labels, and nobody can override them. In RBAC permissions belong to roles, and users get them through role membership. RBAC is common in organisations because access follows job function.

What are the Bell-LaPadula rules?

Bell-LaPadula protects confidentiality with two rules. The simple security property says no read up: a subject cannot read an object at a higher level. The *-property says no write down: a subject cannot write to an object at a lower level, so secrets cannot leak downward.

Is SMS OTP real two-factor authentication?

Yes, in category terms: a password is something you know, and the phone receiving the SMS is something you have. However, SMS codes can be intercepted through SIM swapping, so NIST treats SMS as a restricted method. Authenticator apps and hardware keys are stronger second factors.

Why do we add a salt to password hashes?

A salt is a random value stored with each user's hash. It makes identical passwords give different hashes, hides password reuse, and makes precomputed rainbow tables useless. It does not slow down guessing a single password, so it should be combined with a slow hash function.

Next step

Continue with Secure Software Development MCQs. Revise the related ideas in Security Principles and Operating System Security. Browse all topics on the Cyber Security hub, then take an NSCT mock test.