CSE111 · Orientation to Computing

Industry Readiness, Capstone Execution & Career Launch Complete Exam-Ready Study Notes

Unit VI
Course Code: CSE111  ·  Credits: 3 (3-0-0)
Weightage: ATT 30  ·  CA 70  ·  Mid Term / End Term: Not Applicable
Exam Category: XXP  ·  Focus: Skill Development, Employability
Course Outcomes Mapped to This Unit
  1. CO2 — Explain software development practices, version control and fundamental cybersecurity concepts for secure computing.
  2. CO4 — Describe AI, ML, Generative AI, Agentic AI and emerging computing technologies with ethical considerations.
  3. CO5 — Analyze suitable cohorts, career pathways, competency requirements and skill gaps to prepare a basic career development plan.
  4. CO6 — Build a professional portfolio and Dream CV showcasing academic, technical and professional achievements.

Table of Contents

ICapstone Project Execution — Advanced Guide3
IIIndustry Readiness and Placement Preparation7
IIITechnical Interview Question Bank — DSA11
IVTechnical Interview Question Bank — Core CS14
VHR and Behavioural Interview Question Bank18
VIComprehensive Course Review — Units I–VI21
VIIMock Assessment Papers with Solutions25
VIIICareer Launch Strategy and First 90 Days29
IXAlumni Perspectives and Real-World Wisdom32
XSummary Tables & Final Revision Sheet34
XIPractice Questions with Solutions36
XIIFinal Takeaways, References & Course Closure41
How to use these notes

Unit VI is the professional launch unit — it converts everything you have learned into the practical capability to enter, survive and thrive in industry. Read the theory, then build the artefacts: a capstone execution plan, a question bank for interviews, a mock assessment, a 90-day launch strategy. Section VII provides full mock papers with solutions for comprehensive revision. Practice questions carry difficulty badges; attempt them closed-book before checking the solutions.

Why Unit VI matters most

Units I–V gave you knowledge. Unit VI gives you execution. This is the unit that determines whether you get the interview, pass the interview, and succeed in the first months of your career. The content is deliberately practical: real interview questions, real capstone execution details, real launch strategies.

I. Capstone Project Execution — Advanced Guide

1.1 The Difference Between Planning and Executing

Unit V described how to plan a capstone. This section covers how to execute one — the practical realities of building something substantial within a tight deadline with a small team.

The execution gap

Most capstone projects fail not because of poor planning but because of poor execution: scope creep in week 6, integration hell in week 10, testing crammed into the last 3 days, and documentation written in a panic on the final night. This section addresses each of these failure modes directly.

1.2 Weekly Execution Rhythm

DayActivityOutputDuration
MondaySprint planning — pick the week's stories, estimate, assignWeekly sprint backlog60 min
Tuesday–ThursdayFocused development with daily 15-min stand-upsCommitted code, testsDaily 15 min
Friday morningCode review, integration, testingMerged features, test reports2–3 hours
Friday afternoonWeekly demo to the team; update the project logDemo recording, status update60 min
Sunday eveningRetrospective — what went well, what to change1–2 action items for next week30 min

1.3 Milestones and Gates

Every capstone should have explicit milestones with hard gates. A gate is a checkpoint that must be passed before proceeding; skipping a gate almost always causes problems later.

WeekMilestoneGate CriteriaConsequence of Failure
2Problem validatedAt least 10 potential users interviewed; problem confirmedPivot or refine the problem before proceeding
4Design completeArchitecture diagram, ER diagram, API spec, wireframes reviewedDesign debt compounds; refactor cost grows exponentially
6Walking skeletonEnd-to-end flow working with stub dataIntegration risk deferred to the end — too late
9Feature completeAll must-have features implemented and integratedScope must be cut, not extended
11Testing completeUnit, integration and UAT complete; defects logged and triagedQuality risk to demo and submission
12Deployed and documentedLive deployment; README, user guide, architecture docCannot demonstrate; portfolio artefact incomplete
13–14Presentation readyDemo rehearsed 3 times; report complete; slides readyPoor presentation undermines strong work

1.4 The Walking Skeleton

Definition — Walking Skeleton

A walking skeleton is a minimal end-to-end implementation of the system — thin but complete. It exercises every architectural layer (UI → API → database → deployment) without implementing full business logic. It is not a prototype; it is a production-shaped skeleton.

Why it matters: integration is the largest source of schedule risk in any project. Building a walking skeleton by week 6 forces integration issues to surface while there is still time to address them. Teams that defer integration to the end almost always regret it.

Example 1 — Walking Skeleton for a Campus Notice Portal

Full feature set: authentication, notice posting, department filtering, push notifications, search, attachments, admin panel, analytics.

Walking skeleton (week 6):

What this validates: the front-end can talk to the back-end, the back-end can talk to the database, and the deployment pipeline works. Every subsequent feature is an increment to this skeleton rather than a new integration risk.

Anti-pattern to avoid: spending six weeks building the "perfect" back-end before the front-end touches it. By the time integration happens, mismatched assumptions cause days of rework.

1.5 Managing Scope in Execution

Scope CategoryDefinitionBehaviour Under Pressure
Must-haveWithout these, the project fails its core objectiveProtect absolutely — cut other scope instead
Should-haveImportant but not critical; adds significant valueDeliver if time permits; can slip without catastrophic impact
Could-haveNice-to-have; marginally improves the productCut first when schedule tightens
Won't-haveExplicitly out of scopeNever negotiate during execution

This is the MoSCoW prioritisation method. Applying it explicitly at the start of the capstone prevents the "everything is important" trap that leads to partial delivery of many features instead of complete delivery of the critical ones.

1.6 Technical Debt in Capstones

Technical debt is the accumulated cost of shortcuts taken during development. In capstones, some debt is acceptable (you have a deadline); some is not.

Acceptable DebtUnacceptable Debt
Hard-coded configuration values in a dev environmentHard-coded secrets in a public repository
Minimal UI styling on internal admin pagesMissing input validation on public forms
Skipped tests for a prototype feature that may be discardedNo tests for critical business logic
Simple monitoring (a single health endpoint)No error handling — crashes on unexpected input
Manual deployment scriptsDeployment that only one team member can run
Temporary data migration scriptsDeleting the production database

Rule of thumb: if the debt could cause a security breach, data loss, or an undiagnosable failure, it is unacceptable. If it merely slows development, it can be documented and accepted.

1.7 Documentation That Actually Gets Written

Documentation is often deferred to the end and then either skipped or written badly. The solution is to write documentation continuously, as part of the work.

DocumentWhen to Write ItContent
READMEWeek 6 (at the walking skeleton stage)Problem, features, tech stack, setup, usage
Architecture decision records (ADRs)As each significant decision is madeContext, decision, consequences, alternatives considered
API documentationAs each endpoint is builtEndpoint, method, parameters, response, error codes
Database schema documentationWeek 4 (with the schema)Tables, columns, types, indexes, relationships
User guideWeek 10 (once features stabilise)Screenshots, step-by-step instructions for common tasks
Test plan and resultsContinuouslyTest cases, expected results, actual results, defects
Final reportWeeks 12–14 (assembled from above)The completed report, mostly assembled rather than newly written

1.8 Demo Preparation

The demo trap

The most common demo failure is a live demo that depends on something outside your control: the campus Wi-Fi, a third-party API, or a cloud service that has an outage on the day. Prepare a fallback.

Preparation ItemPurpose
Rehearse 3 times before the actual demoMuscle memory; catch last-minute bugs
Record a backup videoIn case the live demo fails
Run the demo on the same machine, browser and network you will useEliminates environment surprises
Prepare seed dataShows the product populated, not empty
Have a script — but be ready to improviseGuides flow; allows for questions
Prepare for the most likely 5 questionsTechnical depth questions; scaling questions; failure scenarios
Test on a mobile device if the product is responsiveShows breadth
Have the architecture diagram on screenEnables discussion of design decisions
Example 2 — Capstone Execution Timeline (14 Weeks)
WeekFocusDeliverableGate
1Ideation and problem validationProblem statement; user interview notes10 users interviewed
2Requirements gatheringUser stories with acceptance criteria; MoSCoW prioritisationRequirements reviewed with supervisor
3Architecture and designArchitecture diagram; ER diagram; API specDesign review completed
4UI/UX designWireframes; design system; component libraryWireframes validated with users
5–6Walking skeletonEnd-to-end thin slice working; deployed; CI runningLive URL exists; CI green
7–8Must-have features (part 1)Authentication; core data models; primary user flowsCore flows demonstrable
9–10Must-have features (part 2)Secondary flows; integrations; notificationsAll must-haves complete
11Testing and hardeningUnit tests; integration tests; UAT with 5 usersDefect rate < 5 per KLOC
12Deployment and documentationProduction deployment; README; user guideLive and documented
13Report writingFull report assembled from existing materialsDraft report complete
14Presentation preparationSlides; rehearsed demo; Q&A prep3 rehearsal runs completed

1.9 Quality Metrics for the Capstone

MetricTargetHow to Measure
Test coverage≥ 70% for critical modulesCoverage tool (Jest, pytest-cov, JaCoCo)
Defect density< 5 defects per KLOC at releaseDefect tracker ÷ lines of code
Uptime during demo period≥ 99%Uptime monitoring
Response time (p95)< 500 ms for primary user actionsAPM tool or synthetic testing
Lighthouse score (web)≥ 90 for performance and accessibilityChrome DevTools Lighthouse audit
UAT pass rate≥ 90% of test casesUser acceptance testing log
Documentation completenessAll sections present per checklistManual review against the checklist
Exam tip

For any capstone-execution question, structure the answer around: (1) weekly rhythm, (2) milestone gates, (3) walking skeleton, (4) MoSCoW prioritisation, (5) acceptable vs unacceptable debt, (6) demo preparation. Show that you understand execution as a discipline, not just planning.

II. Industry Readiness and Placement Preparation

2.1 The Placement Timeline

Campus placements follow a predictable rhythm across the final year. Understanding it allows you to prepare systematically rather than reactively.

PeriodActivityWhat You Should Be Doing
Semester 5 (Jul–Dec)Foundation buildingDSA practice, 2–3 projects, first internship applications, resume draft
Semester 6 (Jan–Jun)Internship and skill deepeningComplete an internship; earn one certification; build portfolio
Summer (Jun–Jul)Internship periodDeliver real work; request a recommendation; document outcomes
Semester 7 (Jul–Dec)Placement seasonAptitude prep, mock interviews, apply broadly, attend drives
Semester 8 (Jan–Jun)ConsolidationCapstone completion; final placements; conversion of internship to PPO

2.2 The Anatomy of a Recruitment Process

StageTypical FormatWhat is AssessedPreparation Focus
Resume screeningATS + human reviewProfile match, keywords, formattingATS-optimised CV; strong projects section
Online assessmentAptitude + coding + domain MCQsSpeed, accuracy, problem-solvingTimed practice tests; DSA speed
Technical Round 1DSA on a shared editorProblem-solving, communication, code quality150–300 DSA problems; mock interviews
Technical Round 2Domain depth + project discussionDepth, ability to explain choicesRevise core CS; prepare project STAR stories
System Design (for some roles)Design a scalable systemArchitecture thinking, trade-offsStudy common designs; practise articulating trade-offs
HR RoundMotivation, goals, culture fitClarity of purpose, communication, honestyResearch the company; prepare thoughtful questions
Manager / Bar RaiserSenior interviewer probes judgementValues, integrity, ownershipReflect on real decisions and outcomes

2.3 Company Categories and Their Expectations

CategoryExamplesPrimary EmphasisPreparation Priority
Product companies (large)Google, Microsoft, Amazon, AdobeDSA, system design, problem-solvingDeep DSA; 300+ problems; system design fundamentals
Product companies (mid/startup)Flipkart, Razorpay, Zeta, PostmanDSA + practical skills + culture fitDSA + strong projects; ability to ship
Service companiesTCS, Infosys, Wipro, CognizantAptitude, communication, trainabilityAptitude prep; clear communication; basic coding
Consulting firmsDeloitte, EY, McKinsey (tech)Case studies, communication, analyticsCase study practice; structured thinking
Quant / fintechOptiver, Tower Research, DE ShawMathematics, probability, low-latency systemsProbability; C++/Python; mental maths
Cybersecurity firmsPalo Alto, CrowdStrike, FireEyeNetworks, OS, security conceptsCertifications; hands-on labs (TryHackMe, HackTheBox)
Core engineering (non-software)ISRO, DRDO, Bosch, SiemensGATE score, domain knowledge, projectsGATE preparation; domain depth

2.4 Aptitude and Online Assessment Preparation

SectionTopicsTime per QuestionPractice Resource
QuantitativePercentages, ratios, time-speed-distance, profit-loss, permutations, probability60–90 secIndiaBix, R.S. Aggarwal
Logical ReasoningSeries, coding-decoding, blood relations, seating arrangement, puzzles60–90 secIndiaBix, previous year papers
VerbalReading comprehension, synonyms, antonyms, sentence correction45–60 secVocabulary apps; RC practice
Coding1–3 DSA problems of easy to medium difficulty15–30 min eachLeetCode, HackerRank
Domain MCQsDBMS, OS, networks, OOP basics45–60 secGeeksforGeeks quizzes, standard textbooks
The timed-practice principle

Solving 100 aptitude questions casually is far less valuable than solving 50 under time pressure. Aptitude tests measure speed as much as accuracy. Practice with a timer from the start — the mental discipline of working under a clock is a separate skill from the knowledge itself.

2.5 Resume and Application Strategy

ElementStrategy
Target rolesIdentify 2–3 target role categories (e.g. SDE, data analyst, cloud engineer). Do not apply to everything.
VolumeApply to 30–50 companies across categories. A 5–10% response rate is normal for freshers.
TailoringMaintain 2–3 CV variants (one per target role), each with the appropriate skills and projects emphasised.
ReferralsFor every application at a target company, try to find a referral through alumni or LinkedIn. Referrals have a 10× higher response rate.
TrackingMaintain a spreadsheet with company, role, date applied, referral (if any), status, next action.
Follow-upSend a polite follow-up after 7–10 days if no response. Do not send more than one.
Post-rejection learningAsk for feedback where possible. Treat each rejection as data about what to improve.

2.6 Building a Referral Network

ChannelApproachSuccess Rate
Alumni networkPersonalised message referencing shared college context; specific askHighest — 30–50% response
LinkedIn connectionsWarm introduction; reference a specific project or postModerate — 10–20%
College facultyAsk for introductions to former students in target companiesHigh — depends on relationship
Technical communitiesEngage meaningfully for weeks before asking for helpModerate if relationship is genuine
Hackathons and eventsMeet engineers in person; follow up within 24 hoursHigh if follow-up is personalised
Cold outreachPersonalised message to a hiring manager or engineerLow — 1–5%
Example 3 — Referral Request Message
Subject: CSE student seeking referral for SDE Intern role — Aarav Sharma

Hi Rahul,

I'm Aarav Sharma, a third-year CSE student at [University]. I came across
your profile through the alumni network — I noticed you graduated from
the same college in 2021 and now work at [Company].

I'm applying for the SDE Intern role at [Company] (Job ID: 12345). My
background: strong in Python and JavaScript, two deployed full-stack
projects, one AWS certification, and 350+ DSA problems solved. My
portfolio: github.com/aarav.

If you're open to it, would you be willing to refer me? I've attached
my resume. If not, no problem at all — I understand you're busy.

Thank you for your time.
Regards,
Aarav

Why it works:

Common mistakes: asking for a "referral" without specifying the role; sending a generic template; not providing a resume or portfolio link; asking for too much (e.g. "Can you get me a job?").

2.7 Managing Placement Stress

ChallengeStrategy
Multiple rejectionsTrack leading indicators (applications sent, mock interviews done, problems solved) not just outcomes. Rejections are data, not verdicts.
Peer comparisonEveryone's journey differs. Compare yourself to your own past self, not to classmates.
Placement FOMODo not accept a role you know is a poor fit out of panic. But do not hold out indefinitely either.
Interview anxietyPrepare thoroughly (the greatest antidote to anxiety); practise mock interviews until the format is familiar.
BurnoutMaintain sleep, exercise, and non-placement activity. A tired brain is an unproductive brain.
Imposter syndromeAlmost everyone feels it. The productive response is preparation, not internal debate about your worthiness.
Exam tip

For placement-preparation questions, structure the answer around: (1) the placement timeline, (2) stages of the recruitment process, (3) company categories and their emphasis, (4) aptitude and DSA preparation strategy, (5) referral networking. Concrete specifics (numbers of problems, application volumes) demonstrate real understanding.

III. Technical Interview Question Bank — DSA

3.1 Why DSA Remains Central

Data structures and algorithms continue to be the primary filter in technical interviews at product companies. The reason is not that every job requires implementing a balanced tree — it is that DSA problems provide a standardised, fair measure of problem-solving ability under pressure. They test how you decompose a problem, choose a data structure, reason about trade-offs, and communicate your thinking.

3.2 Problem Categories and Coverage

CategoryFrequency in InterviewsKey ConceptsCommon Problems
Arrays and StringsVery HighTwo pointers, sliding window, prefix sumsTwo Sum, Longest Substring Without Repeating Characters, Container With Most Water
Hash Maps and SetsVery HighHashing, frequency counting, lookupGroup Anagrams, Subarray Sum Equals K, First Missing Positive
Linked ListsHighTraversal, reversal, cycle detectionReverse Linked List, Merge Two Sorted Lists, Detect Cycle
Stacks and QueuesHighLIFO/FIFO, monotonic stacksValid Parentheses, Min Stack, Daily Temperatures
Trees and BSTsVery HighTraversals, recursion, BST propertiesInorder Traversal, Validate BST, Lowest Common Ancestor
GraphsHighBFS, DFS, topological sort, shortest pathNumber of Islands, Course Schedule, Dijkstra's Algorithm
Dynamic ProgrammingHighMemoisation, tabulation, state designClimbing Stairs, Longest Common Subsequence, Coin Change
Sorting and SearchingHighBinary search, quickselectSearch in Rotated Sorted Array, Kth Largest Element
Heaps and Priority QueuesMediumHeap operations, top-K problemsKth Largest Element, Merge K Sorted Lists, Top K Frequent Elements
TriesMediumPrefix treesImplement Trie, Word Search II
GreedyMediumLocal optimal choiceJump Game, Activity Selection, Interval Scheduling
Bit ManipulationLow–MediumBitwise operators, XOR tricksSingle Number, Counting Bits

3.3 Representative Problems with Approaches

Problem 1 — Two Sum

Problem: Given an array of integers and a target, return the indices of the two numbers that add up to the target. Assume exactly one solution.

Brute force approach: nested loops, checking every pair. Time complexity \(O(n^2)\), space \(O(1)\).

Optimal approach: use a hash map to record each element's index. For each element \(x\), check if \((target - x)\) has already been seen.

def two_sum(nums, target):
    seen = {}
    for i, num in enumerate(nums):
        complement = target - num
        if complement in seen:
            return [seen[complement], i]
        seen[num] = i
    return []

Complexity: Time \(O(n)\), Space \(O(n)\).

Interview discussion points: Why a hash map instead of sorting? (Sorting would be \(O(n \log n)\) and would lose the original indices.) Can we handle duplicates? (Yes — the map stores the first occurrence; the second occurrence finds it.) What if no solution exists? (Return an empty list or raise an exception, depending on the spec.)

Problem 2 — Longest Substring Without Repeating Characters

Problem: Given a string, find the length of the longest substring without repeating characters.

Approach: sliding window with a hash map tracking the last index of each character.

def length_of_longest_substring(s):
    last_seen = {}
    left = 0
    max_length = 0
    for right, ch in enumerate(s):
        if ch in last_seen and last_seen[ch] >= left:
            left = last_seen[ch] + 1
        last_seen[ch] = right
        max_length = max(max_length, right - left + 1)
    return max_length

Trace for "abcabcbb": right=0 'a' → max=1; right=1 'b' → max=2; right=2 'c' → max=3; right=3 'a' seen at 0 ≥ left(0) → left=1; max=3; right=4 'b' seen at 1 ≥ left(1) → left=2; max=3; right=5 'c' seen at 2 ≥ left(2) → left=3; max=3; right=6 'b' seen at 4 ≥ left(3) → left=5; max=3; right=7 'b' seen at 6 ≥ left(5) → left=7; max=3. Result: 3 ("abc").

Complexity: Time \(O(n)\), Space \(O(\min(n, |\Sigma|))\) where \(|\Sigma|\) is the character set size.

Interview discussion points: Why is the condition last_seen[ch] >= left necessary? (To avoid moving the window backwards when the previous occurrence is already outside the current window.) What if the string contains Unicode characters? (Same approach works; the character set is larger.)

Problem 3 — Validate Binary Search Tree

Problem: Given the root of a binary tree, determine whether it is a valid binary search tree.

Common wrong approach: check only that each node's value is between its immediate children. This fails for cases where a node deep in the right subtree is smaller than an ancestor higher up.

Correct approach: recursive check with bounds (min, max) that tighten as we descend.

def is_valid_bst(root):
    def validate(node, low, high):
        if not node:
            return True
        if not (low < node.val < high):
            return False
        return validate(node.left, low, node.val) and \
               validate(node.right, node.val, high)
    return validate(root, float('-inf'), float('inf'))

Complexity: Time \(O(n)\), Space \(O(h)\) for the recursion stack (h = tree height).

Alternative approach: inorder traversal — a valid BST produces a strictly increasing sequence.

Interview discussion points: Why not just compare each node to its children? (Counterexample: 5 as root, 1 as left child, 6 as right child with 4 as the left child of 6. Locally valid; globally invalid.) What if duplicates are allowed? (Change strict inequality to non-strict on one side, depending on the definition.)

Problem 4 — Coin Change (Dynamic Programming)

Problem: Given an array of coin denominations and a target amount, return the minimum number of coins needed to make the amount. Return −1 if impossible.

Approach: bottom-up dynamic programming. Let \(dp[i]\) = minimum coins to make amount \(i\). Then \(dp[i] = \min_{c \in coins, c \le i} (dp[i - c] + 1)\).

def coin_change(coins, amount):
    dp = [float('inf')] * (amount + 1)
    dp[0] = 0
    for i in range(1, amount + 1):
        for c in coins:
            if c <= i:
                dp[i] = min(dp[i], dp[i - c] + 1)
    return dp[amount] if dp[amount] != float('inf') else -1

Trace for coins = [1, 2, 5], amount = 11: dp[0]=0; dp[1]=1; dp[2]=1; dp[3]=2; dp[4]=2; dp[5]=1; dp[6]=2; dp[7]=2; dp[8]=3; dp[9]=3; dp[10]=2; dp[11]=3. Result: 3 (5 + 5 + 1).

Complexity: Time \(O(\text{amount} \times |\text{coins}|)\), Space \(O(\text{amount})\).

Interview discussion points: Why not greedy? (Greedy fails for some coin systems, e.g. coins = [1, 3, 4], amount = 6: greedy gives 4+1+1 = 3 coins, but optimal is 3+3 = 2 coins.) How to reconstruct the actual coins used? (Maintain a separate array of choices, or backtrack through dp.)

3.4 How to Approach Any DSA Problem in an Interview

StepActivityTime (of 45 min)
1. ClarifyAsk about input constraints, edge cases, output format, and any assumptions2–3 min
2. ExamplesWork through 2–3 examples by hand, including edge cases3–5 min
3. ApproachDescribe the algorithm verbally before coding. State the time and space complexity.5–8 min
4. ConfirmCheck the approach is acceptable before coding1 min
5. CodeWrite clean, readable code with meaningful names15–20 min
6. TestTrace through examples and edge cases manually5 min
7. DiscussComplexity analysis, potential improvements, alternative approaches3–5 min
The single most important interview skill

Communicate your thought process continuously. Interviewers assess how you think, not just whether you reach the right answer. A candidate who reasons aloud and reaches a suboptimal solution often scores higher than one who silently produces the optimal solution. Say "I'm considering a hash map because... but that would use O(n) space, so let me think about whether two pointers could work here."

Common DSA interview mistakes

IV. Technical Interview Question Bank — Core CS

4.1 Database Management Systems (DBMS)

QuestionKey Points for the Answer
What is normalisation? Explain 1NF, 2NF, 3NF, BCNF.1NF: atomic values, no repeating groups. 2NF: 1NF + no partial dependency on a composite primary key. 3NF: 2NF + no transitive dependency. BCNF: every determinant is a candidate key. Purpose: eliminate redundancy and update anomalies.
What is the difference between a clustered and a non-clustered index?Clustered index determines the physical order of rows in the table — only one per table. Non-clustered index is a separate structure with pointers to the data — multiple per table. Clustered is faster for range scans; non-clustered for point lookups.
Explain ACID properties.Atomicity (all or nothing), Consistency (valid state transitions), Isolation (concurrent transactions don't interfere), Durability (committed changes survive failure).
What is a deadlock and how is it resolved?Two or more transactions each hold locks the others need. Resolution: deadlock detection (wait-for graph) with victim selection and rollback; or deadlock prevention (timeouts, resource ordering).
Explain the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL OUTER JOIN.INNER: rows matching in both. LEFT: all left rows + matched right (null if no match). RIGHT: all right rows + matched left. FULL: all rows from both, nulls where no match.
What are the different types of keys?Primary key (unique, non-null identifier), candidate key (any minimal unique identifier), foreign key (references another table), composite key (multi-column), surrogate key (system-generated).
Explain the CAP theorem.In a distributed system, you can guarantee at most two of: Consistency, Availability, Partition tolerance. Since network partitions are inevitable, real systems choose between CP and AP.
What is the difference between SQL and NoSQL?SQL: relational, fixed schema, ACID, vertically scalable, strong consistency. NoSQL: non-relational (document, key-value, graph, column), flexible schema, BASE (eventually consistent), horizontally scalable. Choose based on access patterns and consistency requirements.
How would you optimise a slow SQL query?Analyse the execution plan (EXPLAIN); add appropriate indexes; avoid SELECT *; reduce joins where possible; use query caching; denormalise if read-heavy; partition large tables.
Explain the difference between a view and a materialised view.View: a stored query — computed on demand. Materialised view: a cached result set — refreshed on schedule or on demand. Faster reads at the cost of staleness and storage.

4.2 Operating Systems

QuestionKey Points for the Answer
What is the difference between a process and a thread?Process: independent execution unit with its own address space, file descriptors, and resources. Thread: unit of execution within a process; shares address space but has its own stack and registers. Context switch between threads is cheaper than between processes.
Explain virtual memory.An abstraction that gives each process the illusion of a large contiguous memory space. Uses paging/segmentation; pages are swapped between RAM and disk as needed. Enables larger-than-RAM working sets and process isolation.
What is a deadlock? What are the four necessary conditions?Mutual exclusion, hold and wait, no preemption, circular wait. All four must hold for a deadlock to occur. Prevention: break one of the conditions.
Explain the difference between preemptive and non-preemptive scheduling.Preemptive: the OS can interrupt a running process (Round Robin, priority with preemption). Non-preemptive: a process runs until it blocks or terminates (FCFS, SJF).
What is thrashing?Excessive page faulting where the system spends more time swapping than executing. Caused by insufficient physical memory relative to the working set. Mitigation: working set model, reduce multiprogramming degree, add RAM.
Explain the difference between paging and segmentation.Paging: fixed-size blocks (pages/frames); eliminates external fragmentation; internal fragmentation possible. Segmentation: variable-size logical segments (code, data, stack); reflects program structure; external fragmentation possible.
What is a race condition?Two or more threads access shared data concurrently and the outcome depends on the order of execution. Resolved with locks, semaphores, atomic operations, or by avoiding shared mutable state.
Explain the difference between a mutex and a semaphore.Mutex: binary lock with ownership — only the thread that locked it can unlock it. Semaphore: counting mechanism — any thread can signal; used to control access to a pool of N resources.

4.3 Computer Networks

QuestionKey Points for the Answer
Explain the OSI model and TCP/IP model.OSI 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, Application. TCP/IP 4 layers: Network Access, Internet, Transport, Application. TCP/IP is the practical implementation; OSI is the theoretical reference.
What is the difference between TCP and UDP?TCP: connection-oriented, reliable, ordered, flow-controlled, slower (HTTP, SMTP, SSH). UDP: connectionless, best-effort, unordered, faster (DNS, video streaming, gaming).
What happens when you type a URL into a browser?DNS resolution → TCP handshake → TLS handshake (for HTTPS) → HTTP request → server processing → HTTP response → browser rendering. Include caching at each layer.
Explain the three-way handshake.SYN (client → server), SYN-ACK (server → client), ACK (client → server). Establishes connection parameters and sequence numbers.
What is a subnet mask? How does subnetting work?Divides an IP address into network and host portions. Subnetting borrows bits from the host portion. Number of subnets = 2^n; hosts per subnet = 2^h − 2.
What is the difference between a switch and a router?Switch operates at Layer 2 (MAC addresses) within a LAN. Router operates at Layer 3 (IP addresses) between networks. Routers connect networks; switches connect devices within a network.
Explain HTTPS and TLS.HTTPS = HTTP over TLS. TLS provides encryption (confidentiality), integrity (HMAC), and authentication (certificates signed by CAs). Uses asymmetric crypto for key exchange and symmetric for data.
What is DNS and how does it work?Domain Name System resolves domain names to IP addresses. Hierarchical: root servers → TLD servers → authoritative servers. Caching at browser, OS, and ISP levels reduces latency.

4.4 Object-Oriented Programming

QuestionKey Points for the Answer
Explain the four pillars of OOP.Encapsulation (data + methods bundled; internal state protected), Inheritance (reuse via "is-a" relationships), Polymorphism (same interface, different behaviour), Abstraction (hide complexity behind interfaces).
What is the difference between an abstract class and an interface?Abstract class: can have state, constructors, and both abstract and concrete methods; single inheritance. Interface: no state (traditionally), only method signatures; multiple inheritance. Use interface for capability, abstract class for shared base behaviour.
Explain method overloading vs overriding.Overloading: same name, different parameters (compile-time). Overriding: subclass redefines a parent method (runtime). Overriding is a key mechanism for polymorphism.
What are SOLID principles?Single responsibility, Open/closed, Liskov substitution, Interface segregation, Dependency inversion. Design principles that reduce coupling and increase maintainability.
Explain the difference between composition and inheritance.Inheritance: "is-a" relationship; tight coupling to the parent. Composition: "has-a" relationship; more flexible, easier to change behaviour. Favour composition over inheritance.

4.5 System Design (Introductory)

QuestionKey Points for the Answer
How would you design a URL shortener like bit.ly?Requirements: short URL generation, redirection, analytics. Approach: base62 encoding of a unique ID; distributed ID generation (Snowflake); key-value store for mappings; caching hot URLs; analytics via async pipeline. Discuss scaling: read-heavy, so cache aggressively.
What is load balancing? Name some algorithms.Distributes traffic across multiple servers. Algorithms: round robin, least connections, IP hash, weighted. Benefits: availability, scalability, reduced latency. Types: L4 (transport) vs L7 (application).
Explain caching strategies.Cache-aside (lazy load), write-through, write-behind, read-through. Eviction policies: LRU, LFU, FIFO. Cache invalidation is one of the hardest problems. Discuss staleness vs performance trade-offs.
What is database sharding?Horizontal partitioning of data across multiple databases. Sharding key determines placement. Challenges: cross-shard queries, rebalancing, hot partitions. Enables horizontal scaling but increases complexity.
Explain microservices vs monolithic architecture.Monolith: single deployable unit; simpler initially; harder to scale independently. Microservices: independent deployable services; better scalability and team autonomy; higher operational complexity; need robust observability and CI/CD.
How would you design a rate limiter?Algorithms: token bucket, leaky bucket, fixed window, sliding window. Storage: Redis for distributed rate limiting. Keying: by user, IP, or API key. Response: 429 Too Many Requests with Retry-After header.

4.6 Project-Specific Questions

For every project on your CV, expect these questions:

QuestionHow to Prepare
"Walk me through the architecture."Have a clear 3-minute explanation: data flows, components, technology choices.
"Why did you choose this tech stack?"Justify with reasoning — team familiarity, ecosystem maturity, performance requirements, prior experience.
"What was the hardest technical challenge?"Have a specific, technically detailed story ready with a concrete resolution.
"How would you scale this to 10× the users?"Identify current bottlenecks: database (add indexes, read replicas, sharding), application (horizontal scaling, caching), network (CDN, load balancer).
"What would you do differently if you rebuilt it?"Show growth. Name specific design decisions you would change and why.
"What was your specific contribution?"Be precise. Do not claim credit for teammates' work. State what you built and its measurable impact.
"How did you test it?"Describe unit, integration and user acceptance testing. Give coverage numbers if you know them.
"What security considerations did you address?"Authentication, authorisation, input validation, secrets management, HTTPS, dependency scanning.
Exam tip

For core CS questions, structure answers as: (1) definition, (2) key characteristics, (3) comparison with the most common alternative, (4) one concrete example. Show that you understand the trade-offs, not just the definitions.

V. HR and Behavioural Interview Question Bank

5.1 Categories of Behavioural Questions

CategoryWhat Interviewers AssessPreparation
Self-awarenessDo you know your strengths and weaknesses honestly?Reflect and rehearse examples
MotivationWhy this role, this company, this field?Research the company; articulate a genuine reason
TeamworkHow do you collaborate and handle conflict?Prepare STAR stories for teamwork scenarios
LeadershipHave you taken initiative and delivered?Prepare STAR stories with measurable outcomes
Problem-solvingHow do you approach unfamiliar problems?Show a structured process
Failure and learningDo you take responsibility and grow?Prepare an honest failure story with lessons learned
Ethics and integrityHave you made difficult ethical decisions?Reflect on real situations
AdaptabilityHow do you respond to change and ambiguity?Prepare examples of navigating uncertainty

5.2 The 30 Most Common HR Questions

  1. Tell me about yourself.
  2. Why do you want to work at this company?
  3. Why should we hire you?
  4. What are your strengths?
  5. What are your weaknesses?
  6. Where do you see yourself in 5 years?
  7. What do you know about our company?
  8. Why did you choose engineering / computer science?
  9. Describe a time you worked in a team.
  10. Describe a conflict with a teammate and how you resolved it.
  11. Tell me about a time you failed.
  12. Tell me about a time you took initiative.
  13. Tell me about a time you had to learn something quickly.
  14. How do you handle criticism?
  15. How do you handle stress and pressure?
  16. Describe your most significant project.
  17. What is your greatest achievement?
  18. What motivates you?
  19. How do you prioritise tasks when everything is urgent?
  20. Tell me about a time you disagreed with a decision.
  21. What would you do if your manager asked you to do something unethical?
  22. Describe a time you had to work with someone difficult.
  23. What are your short-term and long-term career goals?
  24. What are your hobbies and interests?
  25. Are you willing to relocate?
  26. How do you keep your skills current?
  27. What is your expected salary?
  28. Do you have any questions for us?
  29. What would your teammates say about you?
  30. Why are you leaving your previous role? (or: why did you choose this role over others?)

5.3 Model Answers for the Most Important Questions

Question — "Tell me about yourself."

Structure: Present → Past → Future. 90 seconds maximum.

Model answer: "I'm currently a final-year Computer Science student at [University], with a focus on backend engineering and cloud infrastructure. Over the past two years, I've built three full-stack applications — the most significant is a campus notice portal that's used by 400+ students across four departments, where I designed the backend, implemented JWT authentication and deployed it with GitHub Actions CI. I've also completed an internship at [Company] where I worked on the internal API team, learning how production systems are observed and maintained. In the future, I want to grow into a backend engineer role where I can own systems end-to-end, and eventually move into platform or infrastructure engineering."

Why this works: It follows a clear structure (present role → past experience with specifics → future direction). It quantifies achievements (400+ users, three applications). It names specific technologies and outcomes. It gives the interviewer natural entry points for follow-up questions.

What to avoid: Reciting your entire resume chronologically. Giving personal details irrelevant to the role. Sounding rehearsed without being genuine. Taking more than 90 seconds.

Question — "What is your greatest weakness?"

The trap: Either naming a fake weakness ("I work too hard") — which signals dishonesty — or revealing a weakness that is fatal for the role.

The correct formula: name a genuine weakness that is not central to the role, describe what you have done about it, and show measurable progress.

Model answer: "Earlier in my degree, I struggled with public speaking — I would avoid presenting in class even when I knew the material. I realised this would limit me in a career where engineers present to stakeholders, so I joined the college's technical club and volunteered to give tutorials. My first two were rough, but by the fifth I was comfortable. I've now presented at three club events and given a 20-minute talk on version control at a workshop. I'm still not a natural presenter, but I no longer avoid it — and I've learned that preparing thoroughly is more valuable than natural confidence."

Why this works: The weakness is genuine (not a humble-brag), specific, and non-fatal (a backend engineer who is not a natural presenter is fine). The response shows self-awareness, action, and measurable progress. The closing insight — preparation matters more than natural confidence — signals maturity.

Question — "Tell me about a time you failed."

Model answer using STAR:

Why this works: It is a genuine failure with real consequences. The candidate takes ownership ("I underestimated... I had not read the documentation"). The response ends with a concrete change in behaviour that has been applied since. This is what interviewers look for — not the failure, but the learning.

What to avoid: A failure that was not your fault ("my teammate dropped out"). A failure that is too trivial ("I forgot to reply to an email"). A failure with no learning described. Blaming others.

5.4 "Do You Have Any Questions for Us?"

This is not a formality — it is an opportunity to demonstrate genuine interest and to evaluate whether the role is right for you. Always have three questions prepared.

CategoryExample Questions
Role clarity"What does success look like in the first 6 months in this role?"
Team dynamics"How is the team structured? How do technical decisions get made?"
Technology"What's the current tech stack, and are there plans to evolve it?"
Growth"How do engineers grow here — is there a mentorship or promotion framework?"
Challenges"What's the biggest challenge the team is currently facing?"
Process"What are the next steps in the process, and when can I expect to hear back?"
Questions to avoid

5.5 Salary Negotiation

PrincipleExplanation
Research firstUse Glassdoor, Levels.fyi, AmbitionBox and alumni to establish the market range for the role and city.
Delay the numberIf asked early, say "I'm flexible and would like to understand the full scope first. What range has been budgeted for this role?"
Give a range, not a single figure"Based on my research, roles at this level in [city] typically pay between X and Y. I'd be comfortable in that range."
Negotiate the packageBase salary, joining bonus, relocation, learning budget, stock, remote flexibility — all components are negotiable.
Be professionalNegotiation is normal. Frame requests around value, not need ("I bring X and Y; based on the market, I was expecting Z").
Know your walk-away pointDefine the minimum you will accept before the conversation; this prevents emotional decisions.
Get it in writingVerbal promises mean nothing. Request the formal offer letter before any commitment.
Example — Salary Negotiation Script

Recruiter: "What are your salary expectations?"

Candidate: "I'm primarily focused on finding the right role where I can learn and contribute. On compensation, I've researched that fresher SDE roles at product companies in Bangalore typically range from ₹12–18 LPA. I'd be comfortable within that range depending on the full package and the scope of the role. Could you share the budgeted range for this position?"

Why this works: It signals flexibility, provides a researched range (not a hard number), demonstrates market awareness, and politely shifts the conversation to the recruiter's budget.

If the offer is below the range:

"Thank you for the offer — I'm genuinely excited about the role. Based on my research and my two deployed projects plus the AWS certification, I was hoping for a base closer to the upper end of my range. Is there flexibility to move to X? If not, I'd like to understand how the compensation grows in the first 18 months."

Exam tip

For HR interview questions, structure answers as: (1) STAR format for behavioural questions, (2) genuine content — never fabricate examples, (3) measurable outcomes, (4) a closing reflection on what was learned. Interviewers can detect rehearsed-and-insincere answers instantly. Honest, specific stories from your own experience are always better than polished generalisations.

VI. Comprehensive Course Review — Units I–VI

6.1 Course-Wide Concept Map

UnitCore ThemeKey ConceptsProfessional Outcome
Unit IComputational Thinking and Software DevelopmentCT pillars, algorithm properties, SDLC phases, SDLC models, quality attributesHow to think about and structure software work
Unit IIVersion Control and Cyber SecurityGit workflows, branching, merging, CIA triad, firewalls, access control, MFAHow to collaborate safely and securely
Unit IIIAI, Emerging Tech and Career PlanningAI/ML/DL, GenAI, Agentic AI, cloud, blockchain, RIASEC, SMART, skill gaps, IDPHow to prepare for the future and plan a career
Unit IVOperating Systems, Networking, Cloud and Professional DevelopmentOS types, process management, OSI/TCP-IP, subnetting, cloud models, virtualization, portfolio, Dream CVHow to understand infrastructure and present yourself
Unit VProfessional Ethics, Teamwork and CapstoneIEEE/ACM code, Tuckman, IBR, triple constraint, WBS, Agile/Scrum, capstone processHow to act professionally and deliver projects
Unit VIIndustry Readiness and Career LaunchCapstone execution, placement process, DSA bank, core CS bank, HR bank, mock assessments, 90-day launchHow to get and succeed in the job

6.2 Cross-Unit Integration — The Six Connections

ConnectionUnits InvolvedWhy It Matters
Computational thinking underlies all problem-solvingI → every unitDecomposition and abstraction apply to debugging, design, career planning and ethical analysis
Version control enables ethical collaborationII ↔ VCode review enforces quality and catches ethical issues like hard-coded secrets
AI ethics connects technical and professional responsibilityIII ↔ VBuilding AI systems requires both technical skill and moral reasoning
Cloud infrastructure underpins modern professional practiceIV ↔ VICloud skills are required in nearly every engineering role today
Career planning is enacted through the portfolio and CVIII ↔ IVPlanning without artefacts is invisible to employers
The capstone integrates every previous unitAll → VIDesign, code, test, deploy, document, present — every skill is applied

6.3 Comprehensive Definition Sheet

TermDefinitionUnit
Computational ThinkingFormulating problems so a computer can execute the solutionI
AlgorithmFinite, unambiguous, ordered set of steps producing output from inputI
SDLCStructured phases from requirements to maintenance in software developmentI
AgileIterative, incremental approach that welcomes change and delivers frequentlyI, V
Version ControlTool recording file changes over time to enable recall and collaborationII
CommitImmutable snapshot of staged changes identified by a hashII
CIA TriadConfidentiality, Integrity, Availability — the three security objectivesII
FirewallDevice or software filtering network traffic based on rulesII
MFAAuthentication using two or more factors from different categoriesII
Digital FootprintPermanent trail of data created by online activityII
Artificial IntelligenceBranch of CS building machines that perform tasks requiring intelligenceIII
Machine LearningSystems that learn patterns from data and improve with experienceIII
Generative AIModels that create new content resembling their training dataIII
Agentic AIAutonomous AI that plans, uses tools and iterates toward a goalIII
RIASECSix interest types: Realistic, Investigative, Artistic, Social, Enterprising, ConventionalIII
SMART GoalSpecific, Measurable, Achievable, Relevant, Time-bound objectiveIII
Skill GapDifference between required and current competency for a target roleIII
IDPIndividual Development Plan converting gaps into scheduled actionsIII
Operating SystemSystem software managing hardware and providing services for applicationsIV
ProcessProgram in execution with its own address space and stateIV
OSI ModelSeven-layer reference model for network communicationIV
SubnettingDividing a network into smaller segments using borrowed host bitsIV
Cloud ComputingOn-demand delivery of computing services over the InternetIV
VirtualizationCreating virtual instances of computing resources on physical hardwareIV
ContainerIsolated process-level environment sharing the host OS kernelIV
Professional PortfolioCurated collection of evidence demonstrating skills and achievementsIV
Dream CVAspirational CV for the target role, used as a gap-analysis toolIV
Professional EthicsPrinciples and standards of conduct guiding behaviour within a professionV
Tuckman's ModelForming, Storming, Norming, Performing, AdjourningV
Psychological SafetyShared belief that members can take interpersonal risks without fearV
Triple ConstraintScope, Time, Cost — interdependent; quality is the outcomeV
WBSHierarchical decomposition of project scope into work packagesV
Critical PathLongest sequence of dependent tasks; determines project durationV
Capstone ProjectCulminating academic experience integrating knowledge to solve a real problemV, VI
Walking SkeletonMinimal end-to-end implementation exercising every architectural layerVI
MoSCoWPrioritisation: Must-have, Should-have, Could-have, Won't-haveVI
ReferralRecommendation from a current employee that increases application response ratesVI
STARSituation, Task, Action, Result — structured behavioural answerIV, VI
SBISituation, Behaviour, Impact — structured feedback modelIV

6.4 Comprehensive Formula Sheet

ConceptFormula
Defect densityDefects ÷ KLOC
MTBFTotal operating time ÷ number of failures
AvailabilityMTBF ÷ (MTBF + MTTR)
Risk exposure (spiral)RE = P(UO) × L(UO)
VelocityStory points completed per sprint
Sprints remainingRemaining backlog points ÷ average velocity
Commit hashSHA-1 of tree, parent, author, timestamp, message
Security riskRisk = Threat × Vulnerability × Impact
SLE / ALESLE = Asset Value × Exposure Factor; ALE = SLE × ARO
Password search spaceN = CL
Time to brute forceT = N / (2R)
Accuracy(TP + TN) / (TP + TN + FP + FN)
PrecisionTP / (TP + FP)
RecallTP / (TP + FN)
F1 score2PR / (P + R)
Scaled dot-product attentionsoftmax(QKT/√dk)V
Cosine similarity(a · b) / (‖a‖ ‖b‖)
Number of subnets2n where n = bits borrowed
Hosts per subnet2h − 2 where h = remaining host bits
Cloud costΣ (resource quantity × unit price × duration)
Skill gapGapi = Ri − Ci
Total weighted gapΣ wi (Ri − Ci)
Gap closure %(Cnow − Cstart) / (R − Cstart) × 100
Decision matrixΣ wi × si with Σ wi = 1
Critical path slackSlack = LS − ES = LF − EF
Earned valueCV = EV − AC; SV = EV − PV; CPI = EV/AC; SPI = EV/PV
Triple constraintQuality = f(Scope, Time, Cost)
Three-point estimationE = (O + 4M + P) / 6

VII. Mock Assessment Papers with Solutions

7.1 Mock Paper 1 — Foundation Level (CO1, CO2)

Time: 90 minutes · Total marks: 50

Part A — Short Answers (2 marks each, 10 marks total)

  1. Define computational thinking and list its four pillars.
  2. State the five properties of a good algorithm.
  3. What is the difference between git fetch and git pull?
  4. Define the CIA triad and give one control for each pillar.
  5. What is the default-deny policy in a firewall?

Part B — Medium Answers (5 marks each, 20 marks total)

  1. Compare Waterfall, Spiral and Agile SDLC models on change handling, customer involvement and risk management.
  2. Explain the complete Git feature-branch workflow, from creating a branch to cleaning up after a merged pull request.
  3. Classify firewalls by generation and compare packet-filtering with stateful inspection on four parameters.
  4. Compare DAC, MAC and RBAC access control models on at least four parameters.

Part C — Long Answers (10 marks each, 20 marks total)

  1. A company's network is 192.168.20.0/24. It needs at least 12 subnets, each with at least 10 hosts. Determine the number of bits to borrow, the new prefix, hosts per subnet, and list the first three subnet ranges.
  2. Explain the SDLC phases with their deliverables and exit criteria. Describe the four types of maintenance and explain why maintenance consumes the largest share of lifetime cost.

7.2 Mock Paper 2 — Advanced Level (CO4, CO5, CO6)

Time: 90 minutes · Total marks: 50

Part A — Short Answers (2 marks each, 10 marks total)

  1. Distinguish between ANI, AGI and ASI.
  2. List the four ML paradigms with one algorithm each.
  3. What is the difference between a VM and a container?
  4. Define the professional portfolio and distinguish it from a résumé.
  5. State four of the eight principles of the IEEE/ACM Software Engineering Code of Ethics.

Part B — Medium Answers (5 marks each, 20 marks total)

  1. Explain the LLM generation pipeline from tokenisation to decoding. Describe any three prompt-engineering techniques.
  2. Explain the RIASEC model and the SWOT analysis as self-assessment tools. Why is self-assessment the first step in career planning?
  3. Describe the four dimensions of professional readiness. Explain the 7 Cs of communication with examples.
  4. Explain the triple constraint with an example. Describe the five phases of a project life cycle with a deliverable for each.

Part C — Long Answers (10 marks each, 20 marks total)

  1. A student targets a "Cloud Security Engineer" role. Required levels (out of 5): Linux 5, Networking 5, Cloud 5, Security 4, Python 4, Communication 3. Current levels: Linux 3, Networking 3, Cloud 2, Security 2, Python 4, Communication 4. Weights: 5, 5, 5, 4, 3, 2. Compute the weighted skill gap, rank the top three priorities, and write three SMART actions.
  2. Analyse the following scenario using the IEEE/ACM code: You discover that a colleague has been committing API keys to a public repository. Recommend a structured course of action.

7.3 Solutions to Mock Paper 1

Part A Solutions

1. Computational thinking is the process of formulating a problem and expressing its solution so that a computer can execute it. Four pillars: Decomposition, Pattern Recognition, Abstraction, Algorithm Design.

2. Finiteness, Definiteness, Input, Output, Effectiveness.

3. git fetch downloads remote changes but does not modify the working directory; git pull = fetch + merge and does modify the working directory.

4. CIA triad: Confidentiality (control: AES-256 encryption), Integrity (control: SHA-256 hashing with digital signatures), Availability (control: redundant servers and 3-2-1 backups).

5. Default-deny is a firewall policy where all traffic is blocked by default and only explicitly allowed traffic is permitted. It is the recommended best practice over default-allow.

Part B Solutions

6.

ParameterWaterfallSpiralAgile
Change handlingVery poor — changes after sign-off are expensiveExcellent — each cycle re-evaluates objectives and risksExcellent — backlog reprioritised every sprint
Customer involvementStart and end onlyEvery cycle (formal review)Continuous via Product Owner and sprint reviews
Risk managementImplicit; risks surface lateExplicit and formal — quadrant 2 of every loopImplicit through short feedback cycles

7.

git switch main
git pull origin main
git switch -c feature/xyz
# implement, add, commit
git fetch origin
git rebase origin/main
git push -u origin feature/xyz
# open PR, review, CI, merge
git switch main && git pull
git branch -d feature/xyz
git push origin --delete feature/xyz

8.

ParameterPacket FilteringStateful Inspection
OSI layerL3–L4 header onlyL3–L4 with session context
State awarenessStatelessStateful — tracks NEW/ESTABLISHED/RELATED
VulnerabilityHigh — spoofed packets can bypassLow — state table resists spoofing
PerformanceVery fast, minimal overheadSlower; memory for state table

9.

ParameterDACMACRBAC
Decision authorityResource ownerSystem via labels/clearancesRoles; users assigned to roles
FlexibilityHigh — users decide freelyLow — rigid and centrally imposedModerate — role changes require redesign
AuditabilityDifficult — scattered permissionsGood — central policyGood — role membership enumerable
ExampleUnix chmodSELinux, AppArmorERP roles: HR Manager, Auditor
Part C Solutions

10. Given: 192.168.20.0/24, need ≥ 12 subnets, each ≥ 10 hosts.

Bits to borrow: \(2^n \ge 12 \Rightarrow n = 4\) (16 subnets). New prefix = \(24 + 4 = 28\).

Hosts per subnet: \(h = 32 - 28 = 4\); \(2^4 - 2 = 14\) usable hosts. ✓

First three subnet ranges (block size 16):

SubnetNetworkUsable RangeBroadcast
1192.168.20.0/28.1 – .14.15
2192.168.20.16/28.17 – .30.31
3192.168.20.32/28.33 – .46.47

11. SDLC phases: Requirements (SRS), Design (design document), Implementation (source code + unit tests), Testing (test plan + defect report), Deployment (release build + user manual), Maintenance (patches).

Four maintenance types: Corrective (~20%, fix defects), Adaptive (~25%, adjust to new environments), Perfective (~50%, improve performance and maintainability), Preventive (~5%, reduce future failure risk).

Why maintenance dominates: Maintenance consumes 60–70% of a system's total lifetime cost. This is because software is used for years or decades after initial delivery, during which requirements evolve, environments change, defects are found, and improvements are needed. This makes maintainability a first-class quality attribute — readable code, good documentation, and modular design all reduce long-term cost.

VII. Mock Assessment Papers (continued)

7.4 Solutions to Mock Paper 2

Part A Solutions

1. ANI (narrow AI): one specific task, no transfer — exists today. AGI (general AI): human-level reasoning across any domain — theoretical. ASI (super AI): surpasses the best human minds in every domain — hypothetical.

2. Supervised (Random Forest), Unsupervised (K-Means), Semi-supervised (self-training), Reinforcement Learning (Q-Learning / PPO).

3. VM: hardware-level virtualisation, each VM runs a full guest OS, stronger isolation, slower startup, GBs in size. Container: OS-level virtualisation, shares the host kernel, lighter isolation, millisecond startup, MBs in size.

4. A professional portfolio is a curated collection of evidence demonstrating skills, projects and achievements — a proof-of-work document. A résumé is a 1-page targeted summary designed to secure an interview. The portfolio shows; the résumé summarises.

5. Any four of: Public, Client and Employer, Product, Judgment, Management, Profession, Colleagues, Self.

Part B Solutions

6. LLM generation pipeline:

  1. Tokenisation — input text is split into sub-word tokens using BPE; each token maps to an integer ID.
  2. Embedding — each token ID becomes a dense vector; positional information is added.
  3. Self-attention — each token computes query, key and value vectors; attention weights are computed against every other token in the context window.
  4. Feed-forward and stacking — each transformer block has attention and feed-forward layers; dozens are stacked.
  5. Output projection — the final hidden state is projected onto the vocabulary to produce a probability distribution over the next token.
  6. Decoding — a token is sampled (greedy, top-k, nucleus, temperature) and appended; the loop repeats.

Three prompt-engineering techniques: (i) Chain-of-thought — "Solve step by step, showing all calculations." (ii) Few-shot — provide 2–5 examples of input–output pairs. (iii) Role prompting — "You are a senior security auditor reviewing this code."

7. RIASEC: Holland's model classifies people and work environments into six types (Realistic, Investigative, Artistic, Social, Enterprising, Conventional). Most individuals have a combination of 2–3 dominant types, expressed as a three-letter code.

SWOT: Strengths and Weaknesses are internal (skills, CGPA, gaps); Opportunities and Threats are external (market demand, competition).

Why self-assessment is first: Without knowing your interests, strengths and values, any goal is arbitrary — potentially someone else's goal for you. Self-assessment defines the starting point for skill-gap analysis, prevents mismatched career choices, and reveals values that determine long-term satisfaction.

8. Four dimensions of professional readiness: Technical (projects, coding, certifications), Behavioural (communication, teamwork, conflict resolution), Attitudinal (ownership, initiative, resilience), Documentary (portfolio, CV, LinkedIn, GitHub).

7 Cs of communication with examples:

9. Triple constraint: Quality = f(Scope, Time, Cost). The three constraints are interdependent. Increasing scope requires increasing time or cost, or reducing quality. Example: A team is asked to add a payment gateway two weeks before launch. Since time and cost are fixed, they must either drop another feature (reduce scope) or ship the feature without adequate testing (reduce quality — unacceptable for payments). The professional response is to identify a lower-priority feature to defer.

Five project life cycle phases with deliverables: Initiation (project charter), Planning (project plan, schedule, risk register), Execution (deliverables, status reports), Monitoring and Control (performance reports, change requests), Closure (final report, lessons learned).

Part C Solutions

10. Skill-gap analysis for Cloud Security Engineer:

CompetencyRCGapww × GapRank
Linux5325103
Networking5325103
Cloud5235151
Security422485
Python44030
Communication34020

Total weighted gap: 10 + 10 + 15 + 8 = 43

Top three priorities:

  1. Cloud (weighted gap 15) — the largest gap and highest weight; absolutely critical.
  2. Linux (10) — foundational for everything else in cloud and security.
  3. Networking (10) — required to understand VPCs, security groups, firewalls.

Three SMART actions:

  1. Cloud: Complete the AWS Solutions Architect Associate certification and pass with ≥ 80% within 14 weeks, studying 1.5 hours daily and completing 6 hands-on labs per week (VPC, IAM, S3, EC2, RDS, Lambda). Verified by certification credential ID.
  2. Linux: Complete a Linux administration course (permissions, processes, systemd, shell scripting, networking commands) and administer a Linux VM on AWS for 8 weeks, documenting configuration decisions in a GitHub repository. Verified by repository and course certificate.
  3. Networking: Finish a networking course covering TCP/IP, subnetting, DNS, TLS, VPNs and firewalls, and solve 150 subnetting problems with ≥ 90% accuracy within 8 weeks. Verified by course certificate and accuracy log.

11. Applying the IEEE/ACM code to the hard-coded secrets scenario:

PrincipleApplication
PublicA leaked API key can be harvested by automated scanners within minutes; the risk to users and systems is real.
Client and EmployerYou are obligated to protect your employer's systems; leaving the key exposed violates that duty.
ProductHard-coded secrets are a defect, not a stylistic preference.
JudgmentDo not approve insecure code because of pressure or convenience.
ColleaguesBe supportive — help the colleague fix it rather than reporting them immediately.

Recommended action: (1) do not ignore it. (2) Speak to the colleague privately and explain the risk clearly without accusation. (3) Rotate the key immediately — removing the file is not enough because it is in the Git history. (4) Help move the key to environment variables or a secrets manager; purge the key from history with git filter-repo or BFG; force-push and inform collaborators. (5) If the colleague refuses to act, escalate in writing to the security team or manager. (6) Recommend a systemic fix: pre-commit hooks or CI checks that scan for secrets, plus a .gitignore entry for .env files.

Key principle: the goal is not to punish but to eliminate the risk and prevent recurrence.

VIII. Career Launch Strategy and First 90 Days

8.1 The Transition from Student to Professional

The transition is not simply a change of environment — it is a change in the fundamental question you are answering. As a student, you are evaluated on what you know. As a professional, you are evaluated on what you deliver. This shift has profound implications for how you spend your time, how you communicate, and how you measure your own success.

DimensionStudentProfessional
Evaluation criteriaMarks, exam performanceDelivered outcomes, team impact
StructureExternally imposed (syllabus, exams)Self-managed (priorities, deadlines)
FeedbackFrequent, formal, grade-basedInfrequent, informal, outcome-based
LearningStructured curriculumOn-the-job, self-directed
Failure consequencesLower gradeProduction impact, trust erosion
Time horizonSemesterQuarter, year, career
RelationshipsPeer-basedHierarchical and cross-functional

8.2 The First 90 Days — A Structured Plan

PeriodPrimary GoalKey ActionsSuccess Metric
Days 1–7Orientation and relationship buildingMeet the team; understand the product; set up your development environment; read existing documentationCan build, run and test the codebase locally
Days 8–30First contributionTake on a small, well-defined task; ask questions; submit your first pull request; learn the review process1+ merged PRs; positive feedback from reviewer
Days 31–60Ownership of a small featureOwn a feature end-to-end (design, implement, test, deploy); participate in code reviews; learn the on-call processFeature shipped to production; code reviews submitted
Days 61–90Independent contributionIdentify an improvement; propose and implement it; assist a newer team member; understand the team's key metricsShipped improvement; positive peer feedback; understanding of team's KPIs

8.3 The Habits That Separate Fast-Growing Engineers

HabitWhy It MattersHow to Build It
Ask questions early and oftenUnasked questions become wrong assumptions; wrong assumptions become bugsRule: if you have been stuck for 30 minutes, ask someone
Write things downReduces repeated questions; creates documentationMaintain a personal wiki of decisions, gotchas and useful commands
Over-communicate statusManagers value predictability; silence creates anxietySend a weekly summary of what you did, what you plan to do, and what is blocking you
Read code, not just write itReading good code accelerates learning faster than writing your ownSpend 30 minutes daily reading code in your repository
Seek feedback explicitlyWaiting for feedback is passive; asking for it is professionalAsk your manager: "What is one thing I could do better?"
Take ownership beyond your taskSeniority is earned by solving problems that are not your jobFix documentation gaps; improve test coverage; suggest process improvements
Separate ego from codeCode review is about the code, not about youThank reviewers for catching issues; do not defend weak code
Maintain a learning logReflection turns experience into knowledgeWeekly journal of what you learned, what confused you, what you want to explore

8.4 Common First-Job Mistakes

MistakeWhy It HappensBetter Approach
Waiting to be told what to doHabit from academic environmentProactively identify tasks and propose them to your manager
Hiding mistakesFear of judgementReport mistakes immediately; you are judged on the recovery, not the mistake
Working in isolation for too longPride in solving it yourselfAsk for help after 30 minutes of being stuck
Over-engineering the first solutionDesire to impressSolve the problem simply; optimise later if needed
Ignoring documentationIt feels low-statusDocumentation is one of the highest-leverage activities; it compounds
Not reading existing codeUrgency to start writingRead first; understand patterns; then write consistent code
Taking feedback personallyIdentity tied to work productSeparate self from output; feedback is information, not judgement
Neglecting relationshipsFocusing only on technical workInvest in relationships; most opportunities come through people
Overworking without sustainabilityFear of underperformanceSustainable pace is professional; burnout is not a badge of honour
Not negotiating the first offerDiscomfort with negotiationResearch market rates; negotiate professionally; you have more leverage than you think

8.5 Building Long-Term Career Capital

Type of CapitalWhat It IsHow to Build It
Technical capitalDeep skill in a valuable domainDeliberate practice; work on hard problems; read source code; contribute to open source
Reputation capitalBeing known as someone who delivers wellShip consistently; document your work; help others; be trustworthy
Relationship capitalNetwork of people who can help youMaintain connections; help others first; keep in touch even without an ask
Communications capitalAbility to explain and persuadeWrite; present; teach; explain technical concepts to non-technical people
Options capitalAbility to change directions (domain, role, industry)Broaden skills; maintain relationships in different areas; keep learning
Financial capitalSavings and investments that enable risk-takingSave consistently; avoid lifestyle inflation; invest early
Example 4 — The Five-Year Career Plan
YearFocusKey ActionsMeasurable Outcomes
Year 1Learn and deliverMaster the codebase; ship your first feature; earn one certification; build relationshipsShipped features; positive review; strong relationships
Year 2Deepen specialisationOwn a module; mentor an intern; contribute to open source; become the go-to person for one topicModule ownership; 2+ merged PRs; recognised expertise
Year 3Broaden influenceLead a project; present at a meetup; start a technical blog; take on system design responsibilityLeading a project; 4+ blog posts; 1+ conference talk
Year 4Decide the pathChoose between IC (individual contributor) and management; deepen in the chosen direction; consider a role change if growth stallsClear career direction; promoted or moved to a better role
Year 5Consolidate and leadLead larger initiatives; mentor multiple people; contribute to hiring; establish reputation in the domainSenior role; recognised expertise; strong team

Review cadence: this plan is reviewed every six months. The specific actions change as opportunities arise; the direction remains constant unless there is a compelling reason to change it.

Exam tip

For career-launch questions, structure answers around: (1) student-to-professional transition, (2) first 90 days plan, (3) habits of fast-growing engineers, (4) common first-job mistakes, (5) long-term career capital. Concrete numbers (30-minute rule, weekly summaries) demonstrate that you have thought about execution, not just theory.

IX. Alumni Perspectives and Real-World Wisdom

9.1 What Alumni Wish They Had Known

ThemeCommon ReflectionWhat It Means for You
Fundamentals matter more than frameworks"I spent months learning React, then joined a team using Vue. The fundamentals of JavaScript and web architecture transferred; the framework-specific knowledge did not."Invest in DSA, systems, networking, DBMS. Frameworks are learned on the job.
Communication is not optional"My technical work was good, but I struggled to get promoted because I could not explain my ideas clearly in meetings or write persuasive design docs."Practise writing and presenting from your first year. Join a club. Write blog posts.
Start projects early"I only built one project, in my final year. Classmates who had three or four had far better placement outcomes."Build something every semester. Quality over quantity; depth over breadth.
Networking compounds"The internship I got in my third year came through a senior I met at a hackathon two years earlier."Attend events; connect on LinkedIn; follow up; help others first.
Consistency beats intensity"I studied 10 hours a day for three weeks before placements, then burned out. The students who studied 2 hours daily for six months performed better."Sustainable daily effort beats cramming.
Learn to read code"I could write code but struggled to understand a large codebase. That slowed me down in my first job."Read open-source code regularly. Start with small projects.
First jobs are learning opportunities"I optimised for salary in my first job and learned little. My classmate took a lower-paying role at a start-up and learned three times as much in the same period."Optimise for learning in the first two years. Compensation follows skill.
Take care of your health"I neglected sleep and exercise during placements. My anxiety was worse than it needed to be."Sleep, exercise, and non-placement activities are not luxuries; they are performance enhancers.

9.2 Advice from Hiring Managers

What They Look ForWhat They Actually Screen ForCommon Rejection Reasons
Problem-solving abilityNot "do you know the answer" but "how do you think"Giving up too quickly; not asking clarifying questions
CommunicationCan you explain your reasoning clearly?Silent problem-solving; unclear explanations
OwnershipDo you take responsibility for outcomes?Blaming teammates; not following through on commitments
Learning abilityHow do you respond to unfamiliar problems?Claiming to know things you don't; refusing hints
Culture fitWill you be a good colleague?Speaking negatively about past employers or teammates
AuthenticityAre you honest about your level?Exaggerating experience; claiming skills you don't have
Depth over breadthDo you have real depth in something?Listing 20 technologies with no depth in any
EvidenceCan you show what you have built?No portfolio; no projects; no verifiable claims

9.3 The Reality of the First Job

ExpectationRealityAdvice
You will build impressive features immediatelyYou will fix bugs, write tests and read a lot of code for the first few monthsThis is normal and valuable. Bugs teach you the codebase faster than feature work.
You will work on new technologyYou will work with a legacy system that has years of accumulated decisionsLegacy systems are where most engineering work happens. Learn from them.
Your code will be deployed to usersYour first several PRs will go through multiple review cycles before mergingCode review is where you learn the most. Ask questions; accept feedback.
You will be given clear tasksTasks are often ambiguous; you will need to ask questions and make judgement callsAsk for clarification early. Deliver a reasonable interpretation and iterate.
Your manager will guide you closelyYour manager may be busy; you will need to be proactive about your own developmentBook regular one-on-ones. Come with specific questions and topics.
You will be evaluated on individual outputYou will be evaluated on team outcomes and your contribution to themHelp unblock others. Share credit. Focus on team success.

9.4 Long-Term Career Lessons

LessonExplanation
Your career is a marathon, not a sprintEarly optimisation for salary at the cost of learning rarely pays off. The compound effect of 5 years of learning is worth more than 5 years of slightly higher salary.
Your network is your net worthThe opportunities that matter — the great team, the right project, the perfect role — come through people. Invest in relationships continuously.
Reputation is hard to build, easy to loseDeliver consistently; be honest; help others. A single act of dishonesty can undo years of good work.
Change is the only constantTechnologies, companies, roles and industries change. The ability to learn and adapt is the only durable skill.
Do the workThere is no shortcut to competence. The problems you solve, the code you ship, the systems you build — these are the source of growth.
Take care of yourselfBurnout is real and affects the best engineers. Sustainable pace is not laziness; it is professional discipline.
Choose your battlesNot every disagreement needs to be resolved. Pick your fights; save your energy for what matters.
Be kindYou will meet the same people throughout your career. Being kind is both right and pragmatic.

X. Summary Tables & Final Revision Sheet

10.1 Final Concept Summary

UnitCore TopicsKey Numbers / Facts
IComputational Thinking, SDLC4 CT pillars; 6 SDLC phases; maintenance = 60–70% of lifetime cost
IIVersion Control, Cyber Security3 trees of Git; CIA triad; 4 firewall generations; default-deny
IIIAI, Emerging Tech, Career PlanningANI/AGI/ASI; 4 ML paradigms; RIASEC 6 types; SMART 5 criteria; IDP components
IVOS, Networking, Cloud, Professional Development7 OSI layers; 4 TCP/IP layers; 3 cloud service models; 4 professional readiness dimensions
VEthics, Teamwork, Project Management, Capstone8 IEEE/ACM principles; 5 Tuckman stages; 3 project constraints; 3 Scrum roles/artifacts/4 ceremonies
VIIndustry Readiness, Career Launch14-week capstone timeline; 90-day onboarding plan; 30 common HR questions

10.2 Final Formula Sheet

CategoryFormula
Software qualityDefect density = defects ÷ KLOC; Availability = MTBF ÷ (MTBF + MTTR)
AgileVelocity = points ÷ sprint; Sprints remaining = backlog ÷ velocity
SecurityRisk = Threat × Vulnerability × Impact; N = CL; T = N/(2R)
ML metricsAccuracy = (TP+TN)/total; Precision = TP/(TP+FP); Recall = TP/(TP+FN); F1 = 2PR/(P+R)
NetworkingSubnets = 2n; Hosts = 2h−2; new prefix = old + n
Cloud costTotal = Σ (quantity × unit price × duration)
Career planningGapi = Ri − Ci; Total = Σ wi(Ri − Ci); Gap closure % = (Cnow−Cstart)/(R−Cstart)×100
Project managementCPI = EV/AC; SPI = EV/PV; CV = EV−AC; SV = EV−PV; Slack = LS−ES
EstimationThree-point: E = (O + 4M + P)/6

10.3 Final Mnemonic Sheet

TopicMnemonic
Computational ThinkingDPAA — Decomposition, Pattern Recognition, Abstraction, Algorithm
SDLC PhasesRDITDM — Requirements, Design, Implementation, Testing, Deployment, Maintenance
OSI LayersPlease Do Not Throw Sausage Pizza Away
TCP/IP LayersNITA — Network Access, Internet, Transport, Application
CIA TriadConfidentiality, Integrity, Availability
AAAAuthentication, Authorisation, Accounting
RIASECRealistic, Investigative, Artistic, Social, Enterprising, Conventional
SMART GoalsSpecific, Measurable, Achievable, Relevant, Time-bound
7 CsClear, Concise, Concrete, Correct, Coherent, Complete, Courteous
STARSituation, Task, Action, Result
SBISituation, Behaviour, Impact
STAR-PSituation, Task, Action, Result, Proof
TuckmanForming, Storming, Norming, Performing, Adjourning
Triple ConstraintScope, Time, Cost (Quality is the outcome)
MoSCoWMust-have, Should-have, Could-have, Won't-have
Cloud ModelsIaaS, PaaS, SaaS, FaaS (decreasing user responsibility)

10.4 Final Checklists

Before Your First Interview

Before Your First Day at Work

Weekly Professional Habits

The single most valuable habit

Write down what you learn. A personal knowledge base — whether a simple notes app, a wiki, or a blog — compounds over years. The act of writing forces clarity; the artefact becomes a reference; the accumulation becomes a competitive advantage. Engineers who maintain a learning journal for five years are unrecognisably more capable than those who do not.

XI. Practice Questions with Solutions

11.1 Practice Questions

Q1. Explain the difference between the "walking skeleton" approach and a prototype. Why does the walking skeleton reduce integration risk? Medium

Q2. A capstone project has 12 weeks and a team of four. Design a milestone plan with at least 6 gates. Explain what happens if the walking skeleton gate is missed. Hard

Q3. Explain the MoSCoW prioritisation method. Apply it to a campus event management system with at least 10 features. Medium

Q4. Distinguish between acceptable and unacceptable technical debt in a student project. Give at least four examples of each. Medium

Q5. Describe the stages of the campus placement process. What specific preparation does each stage require? Easy

Q6. Compare the expectations of product companies, service companies and consulting firms. How would you tailor your preparation for each? Medium

Q7. Explain the two-pointer technique with an example. Solve "Container With Most Water" using this approach. Medium

Q8. Explain dynamic programming with the "Longest Common Subsequence" problem. Show the recurrence relation, base cases, and complexity. Hard

Q9. Write SQL queries for the following: (a) find the second-highest salary from an Employees table; (b) find departments with more than 10 employees; (c) find employees who earn more than their department's average. Hard

Q10. Explain the difference between a process and a thread. Why is a context switch between threads cheaper than between processes? Medium

Q11. Trace the full sequence of events when a user types "https://example.com" into a browser and presses enter. Include DNS, TCP, TLS and HTTP. Hard

Q12. Design a URL shortener. Cover requirements, API design, data model, URL generation, redirection flow, scaling considerations, and analytics. Hard

Q13. Apply the STAR method to answer: "Tell me about a time you had to make a difficult decision." Write the full response. Medium

Q14. Write a referral request email to a college alumnus at a target company. Justify each element of the email. Medium

Q15. Describe a structured 90-day plan for a new graduate joining a software team. Include specific goals and success metrics for each 30-day period. Medium

11.2 Solutions

Solution 1

Walking skeleton vs prototype:

AspectWalking SkeletonPrototype
PurposeValidate architecture and integration end-to-endValidate a specific feature concept or UI
CompletenessThin but complete — touches every layer (UI, API, DB, deployment)Partial — focuses on one aspect
Production-readinessProduction-shaped — uses the real stack, real database, real deploymentOften throwaway — may use mock data and mock services
Fate after creationBecomes the foundation for all subsequent featuresOften discarded after learning
Time investment2–6 weeksDays to weeks

Why it reduces integration risk: Integration is the largest source of schedule risk in any project. When teams build components separately and integrate late, mismatched assumptions cause days of rework. The walking skeleton forces integration issues to surface early — in week 4 or 6 rather than week 12 — when there is still time to address them. Every subsequent feature is an increment to a working system rather than a new integration risk.

Solution 2

12-week capstone milestone plan with 6 gates:

WeekMilestoneGate Criteria
2Problem validated≥ 10 user interviews conducted; problem confirmed; scope defined
4Design completeArchitecture diagram, ER diagram, API spec, wireframes reviewed
6Walking skeletonEnd-to-end flow working; deployed; CI running; live URL exists
8Must-have features completeAll MoSCoW "Must-have" features implemented and integrated
10Testing completeUnit and integration tests passing; UAT with ≥ 5 users conducted
12Deployed, documented, demo-readyLive deployment; README, user guide; demo rehearsed 3 times

If the walking skeleton gate is missed (no working end-to-end flow by week 6):

Solution 3

MoSCoW prioritisation: Must-have, Should-have, Could-have, Won't-have — a method for categorising project scope by priority.

Applied to a campus event management system:

FeaturePriorityJustification
Event creation by organisersMust-haveWithout this, no events exist to manage
Event listing for studentsMust-haveThe core user-facing value
Registration for eventsMust-haveCore purpose of the system
User authenticationMust-haveRequired for registration and access control
Email confirmation on registrationShould-haveImportant for UX; manual confirmation possible if unavailable
Event capacity managementShould-haveImportant for popular events; can be manual initially
Search and filter eventsShould-haveImportant as the number of events grows
QR code check-in at eventsCould-haveNice UX; manual check-in works
Event feedback and ratingsCould-haveValuable but not essential for launch
Social sharing of eventsCould-haveMarketing value but not a core function
Native mobile appsWon't-haveResponsive web is sufficient for the timeline
Payment gatewayWon't-haveEvents are free; paid events are out of scope
Analytics dashboard for organisersWon't-haveDeferred to a future version

XI. Practice Questions with Solutions (continued)

Solution 4
Acceptable DebtUnacceptable Debt
Hard-coded config values in a dev environment (timeouts, feature flags)Hard-coded secrets, API keys or passwords in a public repository
Minimal UI styling on internal admin pagesMissing input validation on public forms (SQL injection, XSS risk)
Skipped tests for a prototype feature that may be discardedNo tests for critical business logic (payment, authentication, data integrity)
Simple monitoring (single health endpoint)No error handling — crashes on unexpected input
Manual deployment scriptsDeployment that only one team member can run; no documentation
Temporary data migration scriptsDirect manipulation of the production database without a rollback plan
Reused component code with minor duplicationCopy-pasted security-critical code with divergent modifications
Basic logging (console output)Logging that includes passwords, tokens or personal data

Rule of thumb: if the debt could cause a security breach, data loss, or an undiagnosable failure, it is unacceptable. If it merely slows development, it can be documented and accepted with a plan to address it.

Solution 5

Stages of the campus placement process and preparation:

StagePreparation
Resume screeningATS-optimised CV; strong projects section; relevant keywords from the job description; proofread twice
Online assessmentTimed practice on aptitude (quantitative, logical, verbal); DSA speed; domain MCQs
Technical Round 1 (DSA)150–300 DSA problems solved; mock interviews; practise communicating thought process
Technical Round 2 (Domain)Revise DBMS, OS, networks, OOP; prepare project STAR stories; be ready to explain design decisions
System Design (some roles)Study common designs (URL shortener, chat, feed); practise articulating trade-offs
HR RoundResearch the company; prepare thoughtful questions; rehearse common HR questions; be genuine
Manager / Bar RaiserReflect on real decisions and outcomes; be honest about uncertainty; demonstrate ownership and integrity
Solution 6
ParameterProduct CompaniesService CompaniesConsulting Firms
Primary emphasisDSA, system design, problem-solvingAptitude, communication, trainabilityCase studies, structured thinking, communication
Interview format2–4 technical rounds with DSA and designAptitude test + technical + HRCase interview + guesstimates + fit round
Preparation focus300+ DSA problems; system design fundamentalsAptitude speed; clear communication; basic codingCase frameworks; business acumen; structured problem-solving
Typical rolesSDE, Data Scientist, Product ManagerSoftware Engineer, Systems EngineerTechnology Consultant, Business Analyst
CompensationHigher base; stock optionsLower base; predictable progressionModerate base; significant travel and exposure
GrowthDeep technical specialisationBroad exposure; project-basedBusiness and technology intersection
Solution 7

Two-pointer technique: A technique for solving array or string problems in \(O(n)\) time by maintaining two indices that move through the data structure according to a rule. Commonly used for: sorted array sum problems, sliding window problems, and problems where one pointer moves faster than the other.

Container With Most Water:

Problem: Given an array of non-negative integers where each element represents the height of a vertical line, find two lines that together with the x-axis form a container holding the most water.

Approach: Start with pointers at both ends. The area is \(\min(h_L, h_R) \times (R - L)\). Move the pointer with the smaller height inward, because the area is limited by the shorter line — moving the taller line inward can only decrease or maintain the width without the possibility of increasing the height.

def max_area(height):
    left, right = 0, len(height) - 1
    max_water = 0
    while left < right:
        h = min(height[left], height[right])
        w = right - left
        max_water = max(max_water, h * w)
        if height[left] < height[right]:
            left += 1
        else:
            right -= 1
    return max_water

Trace for height = [1,8,6,2,5,4,8,3,7]: left=0 (h=1), right=8 (h=7): area = 1×8 = 8; left++. left=1 (h=8), right=8 (h=7): area = 7×7 = 49; right--. left=1, right=7 (h=3): area = 3×6 = 18; right--. left=1, right=6 (h=8): area = 8×5 = 40; right--. left=1, right=5 (h=4): area = 4×4 = 16; right--. left=1, right=4 (h=5): area = 5×3 = 15; right--. left=1, right=3 (h=2): area = 2×2 = 4; right--. left=1, right=2 (h=6): area = 6×1 = 6; right--. Loop ends. Result: 49.

Complexity: Time \(O(n)\), Space \(O(1)\).

Solution 8

Longest Common Subsequence (LCS): Given two strings, find the length of the longest subsequence common to both. A subsequence is a sequence that appears in the same relative order but not necessarily contiguously.

Recurrence relation: Let \(dp[i][j]\) be the length of the LCS of the first \(i\) characters of string A and the first \(j\) characters of string B.

\[ dp[i][j] = \begin{cases} 0 & \text{if } i=0 \text{ or } j=0 \\ dp[i-1][j-1] + 1 & \text{if } A[i-1] = B[j-1] \\ \max(dp[i-1][j],\ dp[i][j-1]) & \text{otherwise} \end{cases} \]

Base cases: \(dp[0][j] = 0\) for all \(j\) (empty string A has no common subsequence); \(dp[i][0] = 0\) for all \(i\) (empty string B has no common subsequence).

def lcs(A, B):
    m, n = len(A), len(B)
    dp = [[0] * (n + 1) for _ in range(m + 1)]
    for i in range(1, m + 1):
        for j in range(1, n + 1):
            if A[i - 1] == B[j - 1]:
                dp[i][j] = dp[i - 1][j - 1] + 1
            else:
                dp[i][j] = max(dp[i - 1][j], dp[i][j - 1])
    return dp[m][n]

Trace for A = "ABCBDAB", B = "BDCABA": the final answer is 4, corresponding to the LCS "BCBA" or "BDAB".

Complexity: Time \(O(m \times n)\), Space \(O(m \times n)\). Space can be optimised to \(O(\min(m, n))\) by keeping only two rows.

XI. Practice Questions with Solutions (continued)

Solution 9

(a) Second-highest salary from Employees:

SELECT MAX(salary) AS second_highest
FROM Employees
WHERE salary < (SELECT MAX(salary) FROM Employees);

Alternative using LIMIT/OFFSET:

SELECT DISTINCT salary
FROM Employees
ORDER BY salary DESC
LIMIT 1 OFFSET 1;

(b) Departments with more than 10 employees:

SELECT department_id, COUNT(*) AS employee_count
FROM Employees
GROUP BY department_id
HAVING COUNT(*) > 10;

(c) Employees earning more than their department's average:

SELECT e.name, e.salary, e.department_id
FROM Employees e
WHERE e.salary > (
    SELECT AVG(salary)
    FROM Employees
    WHERE department_id = e.department_id
);

Alternative using a window function:

SELECT name, salary, department_id
FROM (
    SELECT name, salary, department_id,
           AVG(salary) OVER (PARTITION BY department_id) AS dept_avg
    FROM Employees
) sub
WHERE salary > dept_avg;
Solution 10
ParameterProcessThread
DefinitionIndependent program in executionUnit of execution within a process
Address spaceIts own address space, isolated from other processesShares the address space of its parent process
ResourcesOwns file descriptors, memory, signal handlersShares file descriptors and memory; own stack, registers, program counter
CommunicationInter-process communication (pipes, sockets, shared memory)Direct memory sharing (with synchronisation)
Creation costHigh — fork/exec, memory allocationLow — only stack and registers allocated
Context switch costHigh — MMU must switch page tables, TLB flushedLow — same address space, no MMU change, TLB preserved
IsolationStrong — a crash in one process does not affect othersWeak — a crash in one thread crashes the whole process

Why thread context switch is cheaper: When switching between processes, the OS must save and restore the full process state, including the memory management unit (MMU) state — the page tables and TLB (translation lookaside buffer). The TLB must be flushed because virtual-to-physical mappings change between processes, and the cache locality is destroyed. When switching between threads of the same process, the address space is identical, so the MMU state does not change, the TLB is preserved, and cache locality is largely retained. Only the thread-specific state (registers, program counter, stack pointer) needs to be saved and restored.

Solution 11

Sequence of events when a user types "https://example.com":

  1. URL parsing: The browser identifies the scheme (https), hostname (example.com), and default port (443).
  2. Browser cache check: The browser checks its cache for a recently resolved IP and any cached resources. If a valid entry exists and has not expired, it may skip steps 3–5.
  3. DNS resolution:
    • Check OS cache and hosts file.
    • If not found, query the configured recursive DNS resolver (typically the ISP or a public resolver like 8.8.8.8).
    • The resolver queries the root server → the TLD server for .com → the authoritative nameserver for example.com.
    • The IP address is returned and cached at multiple levels with a TTL.
  4. TCP three-way handshake:
    • Client sends SYN to the server's IP on port 443.
    • Server responds with SYN-ACK.
    • Client sends ACK. The connection is established.
  5. TLS handshake:
    • Client sends ClientHello with supported cipher suites and a random value.
    • Server responds with ServerHello, its certificate (containing public key and CA signature), and its own random value.
    • Client validates the certificate chain against its trust store, checks the domain name, and verifies expiry.
    • Both parties perform a key exchange (typically ECDHE) to derive a shared session key.
    • All subsequent traffic is encrypted with symmetric encryption (AES-GCM).
  6. HTTP request: The browser sends an encrypted GET / request with headers (Host, User-Agent, Accept, Cookies).
  7. Server processing: The server routes the request, executes application logic, queries the database if needed, and constructs an HTTP response.
  8. HTTP response: The server returns a status code (200), headers, and the HTML body. Static assets (CSS, JS, images) may be served from a CDN.
  9. Browser rendering: The browser parses HTML, builds the DOM, fetches and executes CSS and JavaScript, and paints the page. Sub-resources may trigger additional requests.
  10. Connection teardown or reuse: The connection may be kept alive for subsequent requests (HTTP keep-alive) or closed after a timeout.
Solution 12

Design a URL Shortener (e.g. bit.ly):

1. Requirements:

2. API design:

POST /api/v1/urls
  Body: { "long_url": "https://...", "custom_alias": "optional" }
  Response: { "short_url": "https://sho.rt/abc123", "expires_at": null }

GET /{short_code}
  Response: 302 Redirect to long_url

GET /api/v1/urls/{short_code}/stats
  Response: { "clicks": 1234, "created_at": "...", "referrers": {...} }

3. Data model:

urls table:
  short_code   VARCHAR(10) PRIMARY KEY
  long_url     TEXT NOT NULL
  user_id      BIGINT
  created_at   TIMESTAMP
  expires_at   TIMESTAMP NULL

clicks table (or use a time-series store):
  short_code   VARCHAR(10)
  clicked_at   TIMESTAMP
  referrer     VARCHAR(255)
  country      VARCHAR(2)
  user_agent   TEXT

4. URL generation:

5. Redirection flow:

6. Scaling considerations:

7. Analytics:

XI. Practice Questions with Solutions (continued)

Solution 13

Question: "Tell me about a time you had to make a difficult decision."

Model STAR response:

Why this works: It is a real, specific decision with genuine stakes. The candidate demonstrates structured thinking, evidence-based decision-making, collaborative leadership, and reflective learning. The response is honest about the trade-off (cutting features) rather than pretending there was a perfect solution.

Solution 14

Referral request email to a college alumnus:

Subject: CSE student seeking referral for SDE Intern role — Aarav Sharma

Dear Ms. Priya Nair,

I am Aarav Sharma, a third-year Computer Science student at [University].
I found your profile through the college alumni network — I noticed you
graduated from our CSE department in 2021 and currently work as a
Software Engineer at [Company].

I am applying for the SDE Intern role at [Company] (Job ID: 12345).
My background: strong in Python and JavaScript, two deployed full-stack
projects (including a campus notice portal used by 400+ students),
one AWS Cloud Practitioner certification, and 350+ DSA problems solved.
Portfolio: github.com/aarav

If you are open to it, would you be willing to refer me for this role?
I have attached my resume for your reference. If you are unable to, I
completely understand — thank you for considering it.

Thank you for your time and consideration.

Warm regards,
Aarav Sharma
+91-XXXXXXXXXX | aarav@example.com | linkedin.com/in/aarav-sharma

Justification of each element:

ElementWhy It Works
Professional subject lineStates purpose, name and role; easy to scan in an inbox
Formal salutationRespectful; appropriate for a first contact
Self-introductionEstablishes identity and context immediately
Shared context (college, department)Creates a genuine connection; increases likelihood of response
Specific role and Job IDMakes the referral actionable; shows you have done your research
Quantified backgroundDemonstrates capability concisely: two projects, one certification, 350 problems
Portfolio linkProvides verification; the alumnus can quickly assess quality
Specific, bounded ask"Would you be willing to refer me" is clear; not asking for too much
Attachment referenceProvides the resume directly; saves the alumnus a step
Graceful refusal acknowledgementRespects the alumnus's time; no pressure; increases likelihood of a positive response
Professional signatureComplete contact information; easy to act on

What to avoid: A generic template; asking without specifying the role; no resume or portfolio link; over-long messages; asking for more than a referral ("Can you get me a job?"); multiple follow-ups.

Solution 15

90-day plan for a new graduate joining a software team:

PeriodPrimary GoalSpecific ActionsSuccess Metrics
Days 1–30: OrientationUnderstand the product, codebase and team
  • Set up the development environment
  • Read product documentation and architecture docs
  • Meet every team member for a 1-on-1
  • Read existing code for 30 min daily
  • Complete one small task end-to-end
  • Shadow a code review
  • Can build, run and test the codebase locally
  • 1+ merged PR
  • Can explain the product in 3 minutes
  • Positive feedback from mentor
Days 31–60: First contributionOwn a small feature end-to-end
  • Pick a small, well-defined feature
  • Design it with a senior engineer
  • Implement, test, and submit for review
  • Address all review comments
  • Deploy to production (with supervision)
  • Document what you learned
  • Feature shipped to production
  • 2–3 additional merged PRs
  • Reviewed at least one teammate's code
  • Understands the deployment pipeline
Days 61–90: Independent contributionContribute without close supervision
  • Pick a task from the backlog independently
  • Propose an improvement (test coverage, doc, refactor, bug fix)
  • Help onboard a newer team member
  • Understand the team's key metrics (SLOs, error rates)
  • Start participating in on-call rotation (if applicable)
  • Shipped an improvement to production
  • Mentored or helped a new team member
  • Can explain the team's KPIs and current health
  • Positive end-of-probation review

Overarching habits for all 90 days:

XII. Final Takeaways, References & Course Closure

12.1 Textbooks and References

CodeTitleAuthorPublisher
T-1Operating System ConceptsAbraham Silberschatz, Peter B. Galvin, Greg GagneWiley
T-2Computer FundamentalsPradeep K. Sinha and Priti SinhaBPB Publication, New Delhi
R-1Data Communications and Networking with TCP/IP Protocol SuiteBehrouz A. ForouzanMcGraw Hill

12.2 Additional Reading

ResourceTopic
Cracking the Coding Interview — Gayle McDowellDSA interview preparation
Designing Data-Intensive Applications — Martin KleppmannSystem design and distributed systems
System Design Interview — Alex XuSystem design question bank
Clean Code — Robert C. MartinWriting maintainable code
The Pragmatic Programmer — Hunt & ThomasEngineering practice and career advice
The Lean Startup — Eric RiesBuild–Measure–Learn, MVP methodology
So Good They Can't Ignore You — Cal NewportCareer capital, skill development
IEEE/ACM Software Engineering Code of EthicsProfessional ethical framework
Scrum Guide (scrumguides.org)Definitive Scrum reference
OWASP Top 10Web application security risks

12.3 Final Key Takeaways — 12 Points

  1. Execution beats planning. A good plan executed poorly fails; a rough plan executed with discipline succeeds. The walking skeleton, weekly rhythm and milestone gates are the mechanisms of execution.
  2. Integration risk is the dominant risk. Build a thin end-to-end slice early. Every subsequent feature is an increment to a working system, not a new integration problem.
  3. Prioritise ruthlessly. MoSCoW (Must-have, Should-have, Could-have, Won't-have) prevents the trap of partially delivering many features instead of completely delivering the essential ones.
  4. Documentation written continuously is documentation that exists. README at week 6; API docs as endpoints are built; ADRs for design decisions. The final report becomes assembly, not authoring.
  5. Placement is a process, not a single event. Resume screening → aptitude → DSA → domain → design → HR. Prepare for each stage specifically.
  6. DSA remains the primary filter. 150–300 problems solved; comfortable with arrays, strings, hash maps, trees, graphs, DP, and binary search. Communicate your thought process continuously.
  7. Core CS knowledge differentiates at the second round. DBMS (normalisation, indexing, ACID), OS (processes, threads, virtual memory, deadlock), Networks (OSI/TCP-IP, TCP vs UDP, DNS, HTTPS) and OOP (SOLID, composition vs inheritance).
  8. Behavioural interviews are structured, not casual. Prepare 8–10 STAR stories covering teamwork, conflict, failure, leadership, initiative, learning, ethics and ambiguity.
  9. Networking is a multiplier. Referrals have a 10× higher response rate than cold applications. Invest in relationships before you need them.
  10. The first 90 days determine long-term trajectory. Orient quickly, contribute early, communicate consistently, ask questions, and take ownership beyond your task. Sustainable pace beats heroic bursts.
  11. Career capital compounds. Technical depth, reputation, relationships, communication and financial buffer all accumulate over years. Invest in them deliberately from day one.
  12. Fundamentals remain valuable across every technology cycle. DSA, systems thinking, communication, learning how to learn, mathematical reasoning and ethical reasoning will outlast any specific framework, language or tool.

12.4 Course Outcome Mapping — Final View

COStatementPrimary UnitsAssessment Component
CO1Apply computational thinking and computing environment concepts to solve basic computing problemsUnit ITest
CO2Explain software development practices, version control and fundamental cybersecurity conceptsUnit IITest, Dream CV
CO3Identify and utilize academic enrichment opportunities such as EDU-RevolUTIONUnit IIIEDU-RevolUTION Task
CO4Describe AI, ML, Generative AI, Agentic AI and emerging technologies with ethical considerationsUnit IIIAssignment, Dream CV
CO5Analyze cohorts, career pathways, competency requirements and skill gaps to prepare a career development planUnits III, IVAssignment, Dream CV
CO6Build a professional portfolio and Dream CV showcasing academic, technical and professional achievementsUnits IV, V, VIDream CV

12.5 Assessment Weightage — Final View

ComponentWeightageMapped COsKey Preparation Sections
Test25%CO1, CO2Units I, II; Unit V Sections I–IV; Unit VI Sections III–IV
Design Your Dream CV25%CO1, CO2, CO4, CO5, CO6Unit IV Sections VII–VIII; Unit V Section II; Unit VI Sections II, VI
EDU-RevolUTION Task25%CO3Unit III Section I; Unit IV Sections IV, X, XII
Assignment25%CO4, CO5Unit III Sections IV–VII; Unit IV Sections V–VI, IX, XI; Unit V Sections I, III, V; Unit VI Sections II, VIII

12.6 Final Self-Assessment — Complete Checklist

Before completing the course, confirm you can do each of the following without referring to notes:

Computational Thinking and Software Development

Version Control and Cyber Security

AI, Emerging Technologies and Career Planning

Operating Systems, Networking and Cloud

Ethics, Teams, Projects and Capstone

Industry Readiness and Career Launch

Final word — the professional's mindset

You have completed six units spanning the technical, ethical, professional and strategic dimensions of computing. The knowledge you have accumulated will be tested not in an exam but in your first job, your first project, your first production incident, your first ethical dilemma, your first leadership opportunity. The mark of a professional is not what they know but how they act when the pressure is on, when no one is watching, and when the easy choice and the right choice diverge. Build the foundations, maintain your integrity, keep learning, and be kind. Everything else follows.

12.7 Closing Reflection

CSE111 Orientation to Computing is not a course about software. It is a course about becoming an engineer — a person who thinks systematically, builds reliably, acts ethically and grows continuously. The specific technologies you learned will change. The Git commands may evolve. The cloud providers may be replaced. But the mental habits, the professional standards, and the personal discipline you have developed in this course will remain valuable for the whole of your career.

Go build something worth building. Go be the engineer that teammates trust, managers rely on, and users benefit from. And when you succeed — which you will, if you keep learning and keep your integrity — remember to help the next person behind you. That is what a profession is.

End of Unit VI

Industry Readiness, Capstone Execution & Career Launch
CSE111 — Orientation to Computing
Think Clearly · Build Well · Act Ethically · Keep Learning · Lift Others