IITIAN1997 STUDIO

Cryptography, security and mobile computing

JLEE CSE · 10 practice questions with answers

Practise and take a mock test →

Security principles, ciphers, wireless and mobile

Topics: Confidentiality, integrity, authentication, non-repudiation; attacks: virus, worm, trojan, phishing, spoofing; symmetric and asymmetric encryption; hash functions; digital signatures; firewalls, SSL; cellular concept, GSM and CDMA, generations.

Security goals and attacks

Security aims at confidentiality, integrity and availability (the CIA triad), plus authentication and non-repudiation. Malware: viruses attach to files, worms spread by themselves, trojans pose as useful programs, ransomware encrypts data for money. Social attacks: phishing, spoofing. Denial-of-service attacks target availability.

  • CIA: confidentiality, integrity, availability
  • Worm spreads alone; virus needs a host
  • Phishing tricks people

Example: An email asks you to “verify” your bank password on a look-alike site. Which attack is this?

  1. It deceives a person into giving credentials.
  2. Phishing.

Answer: Phishing

Example: Which goal does a denial-of-service attack target?

  1. It makes a service unusable for real users.
  2. Availability.

Answer: Availability

Cryptography

Symmetric ciphers (AES, DES) use one shared key; asymmetric ciphers (RSA) use a public key to encrypt and a private key to decrypt. In RSA, n = pq, φ = (p − 1)(q − 1), choose e coprime with φ and d with ed ≡ 1 (mod φ); C = Mᵉ mod n and M = Cᵈ mod n. Hash functions (SHA-256) give a fixed-length digest; digital signatures encrypt a hash with the sender’s private key.

  • Symmetric: one key; asymmetric: key pair
  • C = Mᵉ mod n; M = Cᵈ mod n
  • Signature: hash + private key

Example: Encrypt HELLO with a Caesar shift of 3.

  1. H→K, E→H, L→O, L→O, O→R.
  2. KHOOR.

Answer: KHOOR

Example: RSA with p = 3, q = 11, e = 7: find d and encrypt M = 4.

  1. n = 33, φ = 20; 7 × 3 = 21 ≡ 1, so d = 3.
  2. C = 4⁷ mod 33 = 16 (check: 16³ mod 33 = 4).

Answer: d = 3; C = 16

Network security and mobile systems

Firewalls filter traffic by rules; TLS (HTTPS) authenticates servers with certificates and encrypts sessions; VPNs tunnel traffic. Cellular systems reuse frequencies in clusters of N cells, N = i² + ij + j² (3, 4, 7, …). GSM uses TDMA with 200 kHz carriers and 8 time slots; CDMA separates users by codes.

  • TLS: certificates + encryption
  • Cluster N = i² + ij + j²
  • GSM: 200 kHz, 8 slots

Example: Find the cluster size for i = 2, j = 1.

  1. N = 4 + 2 + 1.
  2. = 7.

Answer: 7

Security services are confidentiality, integrity, authentication, non-repudiation, access control and availability. Symmetric ciphers (DES 56-bit key, AES 128–256) use one shared key and are fast. Asymmetric ciphers (RSA) use a public and private key pair, and solve key distribution. Hash functions (SHA-256) give fixed-length digests; a digital signature encrypts a hash with the sender’s private key. Firewalls filter traffic; TLS secures web traffic. Mobile networks divide coverage into cells and reuse frequencies among clusters, GSM uses TDMA/FDMA and SIM cards, and generations run from 2G digital voice to 5G high data rate. Bluetooth and Wi-Fi are short-range.

  • Caesar cipher shifts letters by a fixed amount.
  • Passive attacks read; active attacks alter.
  • RSA relies on the difficulty of factoring.
  • Handoff transfers a call between cells.
  • Phishing tricks users through fake pages.

Key formulas

  • C = P + k mod 26
  • RSA: C = Mᵉ mod n
  • H(M) fixed length

Practice questions

Symmetric encryption uses

  1. one shared key
  2. two keys
  3. no key
  4. a hash only
Show the answer

Answer: A. one shared key DES, AES.

RSA is

  1. asymmetric
  2. symmetric
  3. a hash
  4. a virus
Show the answer

Answer: A. asymmetric Public key.

A digital signature is verified with the sender’s

  1. public key
  2. private key
  3. password
  4. hash only
Show the answer

Answer: A. public key Anyone can check.

DES key length is

  1. 56 bits
  2. 128 bits
  3. 256 bits
  4. 1024 bits
Show the answer

Answer: A. 56 bits Effective.

SHA-256 is a

  1. hash function
  2. cipher
  3. firewall
  4. protocol
Show the answer

Answer: A. hash function Digest.

A self-spreading network program is a

  1. worm
  2. trojan
  3. cookie
  4. macro only
Show the answer

Answer: A. worm No host needed.

Phishing aims to

  1. steal credentials
  2. cool servers
  3. clean disks
  4. speed networks
Show the answer

Answer: A. steal credentials Social engineering.

GSM phones use

  1. SIM cards
  2. floppy disks
  3. crystals only
  4. tapes
Show the answer

Answer: A. SIM cards Subscriber identity.

Handoff occurs when

  1. a user moves between cells
  2. the battery dies
  3. the phone reboots
  4. the SIM is removed
Show the answer

Answer: A. a user moves between cells Call continues.

The principle that a sender cannot deny sending is

  1. non-repudiation
  2. availability
  3. confidentiality
  4. access control
Show the answer

Answer: A. non-repudiation Proof of origin.

The practice questions were written for this studio; they are not copied from ASTU papers. ASTU publishes no topic syllabus for these exams, so the topics are an informed guide based on diploma courses, not an official list.

Practise and take a mock test →