Skip to main content

Chapter 4

Information Security

TU BIM past exam questions

Past questions and answers

22 questions set from this chapter. Most repeated first.

  • 2024 AD Model · 1 mark

What is the primary goal of computer security?

Answer

The primary goal of computer security is to protect information and systems by ensuring confidentiality, integrity and availability (the CIA triad) of data and resources against unauthorised access, modification or disruption.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 1 mark

Define an attack surface in the context of security.

Answer

An attack surface is the sum of all points (entry points, interfaces, ports, services, user inputs, devices and users) in a system where an unauthorised person can try to enter data into or extract data from the system. A smaller attack surface means lower risk.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 1 mark

What is the significance of prime numbers in cryptography?

Answer

Prime numbers are the basis of many public-key algorithms. For example, RSA multiplies two large primes to form the modulus n=pqn = pq; multiplying is easy but factorising nn back into pp and qq is computationally infeasible for large values. Primes are also used in Diffie-Hellman and ElGamal (modulus pp and primitive roots) and in finite-field arithmetic.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 1 mark

Differentiate between symmetric and asymmetric key cryptography.

Answer

Symmetric cryptography uses the same single secret key for encryption and decryption (e.g. AES, DES); it is fast but requires safe key distribution. Asymmetric cryptography uses a pair of keys, a public key to encrypt and a private key to decrypt (e.g. RSA); it is slower but solves key distribution and supports digital signatures.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 1 mark

What is the primary purpose of a digital signature?

Answer

The primary purpose of a digital signature is to provide authentication, integrity and non-repudiation: it proves who sent a message or document and that it was not altered, so the signer cannot later deny it. It is created with the sender's private key and verified with the public key.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 1 mark

What is the purpose of two-factor authentication?

Answer

Two-factor authentication (2FA) requires two different kinds of proof of identity (for example a password plus a one-time code sent to a phone). Its purpose is to add a second layer of security so that an account stays protected even if the password is stolen or guessed.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 1 mark

Define intrusion prevention system.

Answer

An Intrusion Prevention System (IPS) is a network security device or software that monitors network traffic for malicious activity or policy violations and automatically takes action to stop it, such as blocking the traffic, dropping packets or resetting the connection, in addition to detecting and logging it.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 1 mark

What is backdoor?

Answer

A backdoor is a hidden method of bypassing normal authentication or security controls to gain access to a system, application or network. It may be built in by developers or installed by an attacker or malware (e.g. a remote access trojan) to allow later unauthorised access.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 1 mark

What is the primary purpose of a firewall?

Answer

The primary purpose of a firewall is to control and filter incoming and outgoing network traffic according to security rules, acting as a barrier between a trusted internal network and untrusted networks such as the Internet, so that unauthorised access is blocked.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 1 mark

Why security audit is essential?

Answer

A security audit is essential because it systematically examines systems, policies and controls to find vulnerabilities and weaknesses before attackers exploit them, checks compliance with laws and standards, verifies that security controls work, and helps improve protection of data and reduce risk.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 3 marks

Differentiate between threats, attacks, and assets in the context of computer security.

Answer

  • Asset: anything of value to an organisation that must be protected, such as data, hardware, software, networks, and people. Example: a customer database.
  • Threat: a potential danger or event that could exploit a vulnerability and harm an asset. It may or may not happen. Example: a hacker, malware, a power failure or a natural disaster.
  • Attack: an actual deliberate attempt to exploit a vulnerability to damage, steal or gain unauthorised access to an asset. Example: a phishing campaign, SQL injection or a DoS attack.

In short, an asset is what is protected, a threat is what could cause harm, and an attack is the threat being carried out.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 3 marks

Explain the difference between substitution and transposition ciphers with examples.

Answer

Substitution cipher: each plaintext letter (or group) is replaced by another letter, number or symbol, while the position of letters stays the same. Example (Caesar cipher, shift 3): HELLO becomes KHOOR.

Transposition cipher: the letters of the plaintext are kept the same but their positions are rearranged according to a rule. Example (rail fence with 2 rails): HELLO WORLD, written as zig-zag rows HLOOL and ELWRD, gives HLOOLELWRD.

SubstitutionTransposition
Changes the lettersChanges the order of the letters
Letter frequencies are altered (but preserved in a simple monoalphabetic cipher)Letter frequencies are preserved
Examples: Caesar, Vigenere, PlayfairExamples: Rail fence, columnar transposition

Modern ciphers such as DES and AES combine both.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 3 marks

Describe how biometric authentication works and its advantages over traditional authentication methods.

Answer

How it works

  1. Enrolment: a sensor captures a physical or behavioural trait (fingerprint, face, iris, voice) and converts it into a digital template stored in a database.
  2. Authentication: when the user tries to log in, the trait is scanned again, features are extracted, and the new sample is compared with the stored template.
  3. Decision: if the match score is above a threshold, access is granted; otherwise it is denied.

Advantages over passwords, PINs and tokens

  • Cannot be forgotten, lost or easily shared.
  • Hard to steal or guess, since it is unique to each person.
  • Convenient and fast (no need to remember or type anything).
  • Provides stronger proof of identity and non-repudiation.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 3 marks

Compute whether 3 is primitive root of 7 or not.

Answer

A number gg is a primitive root of a prime p=7p = 7 if its powers modulo 7 generate all the numbers 1 to 6, i.e. the order of gg is p−1=6p - 1 = 6.

31 mod 7=33^1 \bmod 7 = 3 32=9 mod 7=23^2 = 9 \bmod 7 = 2 33=27 mod 7=63^3 = 27 \bmod 7 = 6 34=81 mod 7=43^4 = 81 \bmod 7 = 4 35=243 mod 7=53^5 = 243 \bmod 7 = 5 36=729 mod 7=13^6 = 729 \bmod 7 = 1

The results 3, 2, 6, 4, 5, 1 are all distinct and cover every value from 1 to 6, and the first power giving 1 is 363^6. Hence the order of 3 is 6, so 3 is a primitive root of 7.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 3 marks

What are security audit trails, and how do they play a role in tracking and analyzing security-related activities within an information system?

Answer

A security audit trail is a chronological, tamper-resistant record of security-relevant events in a system, such as logins, failed logins, file access, privilege changes, configuration changes and transactions. Each entry normally records who did what, on which object, when, and with what result.

Role in tracking and analysing activity:

  • Accountability: links every action to a user ID, so users cannot deny what they did (non-repudiation).
  • Detection: reviewing logs reveals unusual patterns such as repeated failed logins or access at odd hours, which may indicate an intrusion.
  • Reconstruction: after an incident, the trail shows how the attacker entered and what was changed or stolen.
  • Evidence and compliance: supports forensic investigation, legal proceedings and regulatory audits.
  • Deterrence: users who know their actions are logged are less likely to misuse the system.

Audit logs must be protected from modification and reviewed regularly, ideally with automated tools.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 3 marks

Explain the role of IT security management in an organization and its impact on overall security.

Answer

IT security management is the process of planning, implementing, monitoring and improving the controls that protect an organization's information assets. It covers security policies, risk assessment, selection of controls, staff training, incident response and regular review.

Role in the organization:

  • Identifies assets, threats and vulnerabilities through risk analysis and ranks risks.
  • Defines policies, standards and responsibilities so that everyone knows what is expected.
  • Implements technical and administrative controls such as firewalls, access control, encryption, backups and awareness training.
  • Monitors, audits and responds to incidents, then updates controls.

Impact on overall security: it gives a consistent, organization-wide approach, reduces the likelihood and cost of breaches, protects confidentiality, integrity and availability, ensures legal compliance and builds customer trust.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 5 marks

Distinguish between stream cipher and block cipher. Encrypt the message "SECURITY IS IMPORTANT FOR EVERYONE" using rail fence cipher using 4 as number of rails.

Answer

Stream cipher vs block cipher

BasisStream cipherBlock cipher
Unit processedOne bit or byte at a timeFixed-size block (for example 64 or 128 bits) at a time
Key useKey generates a keystream that is XORed with plaintextSame key applied to each block through rounds of substitution and permutation
Speed and hardwareFast, simple hardware, low delaySlower, more complex
Error propagationLittle; a bit error affects one bitError can affect the whole block
ExamplesRC4, A5/1DES, AES

Rail fence encryption (4 rails)

Plaintext without spaces: SECURITYISIMPORTANTFOREVERYONE

Writing letters in a zigzag over 4 rails and reading rail by rail:

  • Rail 1: S T P T E
  • Rail 2: E I Y M O N F V R E
  • Rail 3: C R I I R A O E Y N
  • Rail 4: U S T R O

Ciphertext: STPTEEIYMONFVRECRIIRAOEYNUSTRO

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 5 marks

What is the Public Key Infrastructure X.509? Discuss its role in network security.

Answer

X.509 is the ITU-T standard that defines the format of public-key certificates. Public Key Infrastructure (PKI) is the set of people, policies, hardware and software used to create, manage, distribute, store and revoke these certificates.

An X.509 certificate contains: version, serial number, signature algorithm, issuer (CA) name, validity period, subject name, subject's public key, extensions, and the CA's digital signature.

Components of PKI: Certification Authority (CA) which issues and signs certificates, Registration Authority (RA) which verifies identity, certificate repository (directory), and Certificate Revocation Lists (CRL) or OCSP for revoked certificates.

Role in network security:

  • Binds a public key to an identity, so a user can trust that a key really belongs to its owner (prevents man-in-the-middle attacks).
  • Provides authentication of servers and clients, for example in SSL/TLS and HTTPS.
  • Enables digital signatures (integrity and non-repudiation), secure e-mail (S/MIME), VPN/IPsec and code signing.
  • Supports key exchange for confidentiality.
  • Allows trust chains from a root CA to end certificates and revocation of compromised keys.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 5 marks

Compare host-based intrusion detection Systems and network-based intrusion detection systems.

Answer

BasisHost-based IDS (HIDS)Network-based IDS (NIDS)
LocationInstalled on an individual host or serverPlaced at network points (switch mirror port, gateway)
Data analysedSystem logs, file integrity, processes, registry, system callsNetwork packets and traffic flows
VisibilitySees activity on that host, including local and encrypted traffic after decryptionSees traffic across many hosts, but cannot see inside encrypted traffic or local activity
DetectsInsider misuse, file tampering, malware on the hostPort scans, DoS, network attacks and worms
Coverage and costOne agent per host, more management effort and uses host resourcesOne sensor covers many hosts, no load on hosts
DependencyDepends on the operating systemIndependent of host OS
ExamplesOSSEC, TripwireSnort, Suricata

The two are complementary, and best security uses both.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 5 marks

What is message digest? differences between MD4 and MD5.

Answer

A message digest is the fixed-length output of a cryptographic hash function applied to a message of any length. It acts as a fingerprint of the data: a small change in the message changes the digest completely, the process is one-way, and it is computationally infeasible to find two messages with the same digest. It is used for integrity checking, digital signatures and password storage.

MD4 vs MD5 (both by Ron Rivest, 128-bit digest, 512-bit blocks):

BasisMD4MD5
Year19901991
Rounds3 rounds of 16 steps (48 steps)4 rounds of 16 steps (64 steps)
Additive constantsOne constant per roundA different constant for every step (64 constants)
Step outputNot added to previous step outputEach step adds the result of the previous step
Round-1 function usageUses G with fewer variationsUses new function I in round 4, and changed G
SpeedFasterSlightly slower
SecurityWeaker; collisions found easilyStronger than MD4, though also now broken for collisions

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 10 marks

Explain the process of encrypting and decrypting a message using the RSA algorithm. Given that the prime numbers chosen are p=11 and q=17, calculate the public and private keys, and then encrypt the message M=12. Show all steps in your calculations.

Answer

RSA process

  1. Choose two large primes pp and qq.
  2. Compute n=p×qn = p\times q and ϕ(n)=(p−1)(q−1)\phi(n) = (p-1)(q-1).
  3. Choose public exponent ee with 1<e<ϕ(n)1<e<\phi(n) and gcd⁡(e,ϕ(n))=1\gcd(e,\phi(n))=1.
  4. Compute private exponent dd such that e d≡1(modϕ(n))e\,d \equiv 1 \pmod{\phi(n)}.
  5. Public key is (e,n)(e,n); private key is (d,n)(d,n).
  6. Encryption: C=Me mod nC = M^e \bmod n. Decryption: M=Cd mod nM = C^d \bmod n.

Calculation for p=11p=11, q=17q=17, M=12M=12

n=11×17=187n = 11\times 17 = 187

ϕ(n)=10×16=160\phi(n) = 10\times 16 = 160

Choose e=7e=7, since gcd⁡(7,160)=1\gcd(7,160)=1.

Find dd with 7d≡1(mod160)7d \equiv 1 \pmod{160}. Since 7×23=161=160+17\times 23 = 161 = 160+1, we get d=23d=23.

Public key: (7,187)(7, 187). Private key: (23,187)(23, 187).

Encryption:

C=127 mod 187C = 12^7 \bmod 187

122=14412^2 = 144; 124=1442=20736 mod 187=20736−110×187=20736−20570=16612^4 = 144^2 = 20736 \bmod 187 = 20736 - 110\times187 = 20736-20570 = 166.

127=124⋅122⋅12≡166×144×1212^7 = 12^4\cdot 12^2\cdot 12 \equiv 166\times144\times 12.

166×144=23904166\times 144 = 23904, and 23904 mod 187=23904−127×187=23904−23749=15523904 \bmod 187 = 23904 - 127\times187 = 23904-23749 = 155.

155×12=1860155\times 12 = 1860, and 1860 mod 187=1860−9×187=1860−1683=1771860 \bmod 187 = 1860-9\times187 = 1860-1683 = 177.

C=177C = 177

Decryption check: 17723 mod 187=12177^{23} \bmod 187 = 12, which recovers M=12M=12 (this holds because ed≡1(modϕ(n))ed\equiv1 \pmod{\phi(n)}).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 AD Model · 10 marks

What is hash-based message authentication code. Explain design and working mechanism of digital signature algorithm, and how it ensures message integrity and authenticity.

Answer

HMAC (Hash-based Message Authentication Code) is a mechanism that provides message integrity and authenticity using a cryptographic hash function HH (such as SHA-256) and a shared secret key KK:

HMAC(K,m)=H((K′⊕opad) ∥ H((K′⊕ipad) ∥ m))\text{HMAC}(K,m) = H\big((K' \oplus opad)\,\|\,H((K' \oplus ipad)\,\|\,m)\big)

where K′K' is the key padded to the block size, ipadipad is the byte 0x36 repeated and opadopad is 0x5C repeated. Only holders of the shared key can produce or verify the tag, so it is used in IPsec, TLS and API authentication.

Digital Signature Algorithm (DSA)

Design (global parameters): a prime pp, a prime divisor qq of p−1p-1, and g=h(p−1)/q mod pg = h^{(p-1)/q} \bmod p.

Keys: the user picks private key xx with 0<x<q0<x<q and computes public key y=gx mod py = g^x \bmod p.

Signing a message MM:

  1. Choose a random per-message secret kk, 0<k<q0<k<q.
  2. Compute r=(gk mod p) mod qr = (g^k \bmod p) \bmod q.
  3. Compute s=k−1 (H(M)+xr) mod qs = k^{-1}\,(H(M) + x r) \bmod q.
  4. The signature is (r,s)(r,s).

Verification (receiver, using the sender's public key):

  1. Compute w=s−1 mod qw = s^{-1} \bmod q.
  2. u1=H(M) w mod qu_1 = H(M)\,w \bmod q and u2=r w mod qu_2 = r\,w \bmod q.
  3. v=(gu1yu2 mod p) mod qv = (g^{u_1} y^{u_2} \bmod p) \bmod q.
  4. The signature is valid if v=rv = r.

How it ensures integrity and authenticity

  • The hash H(M)H(M) is part of the signature, so any change in the message changes vv and verification fails (integrity).
  • Only the owner of private key xx can create a valid (r,s)(r,s), and anyone can check it with the public key yy, proving the sender's identity (authenticity) and giving non-repudiation.
  • A fresh random kk for each message prevents key recovery; reuse of kk would expose xx.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

Questions from TU BIM Fifth Semester IT 228 Artificial Intelligence Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester IT 242 Software Design and Development Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester IT 243 Programming with Python Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester IT 244 Information Security Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester MKT 201 Fundamentals of Marketing Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester IT 221 Computer Graphics 2016 (model question) (Faculty of Management model question 2016 (old course), via EducateNepal), TU BIM Fifth Semester IT 222 Java Programming II 2016 (model question) (Faculty of Management model question 2016 (old course), via EducateNepal) and TU BIM Fifth Semester IT 223 Advance Internetworking 2016 (model question) (Faculty of Management model question 2016 (old course), via EducateNepal). Answers are written for this site; check them against your class notes.