ExitPrep

Home / Exit exam / CSE Exit Must Know

CSE Exit Must Know: exit exam notes

Quick revision sheet based on previous CSE exit exam questions only. Written for the exam in 1 chapter, about 12 minutes of reading in total. Chapter 1 is below in full and free for everyone. The other chapters open with Premium.

Part of the Computer Science & Engineering exit exam prep.

Chapters

  1. Must-Know Concepts Free (12 min)

Chapter 1: Must-Know Concepts

Quick revision sheet based on previous CSE exit exam questions only. Read this before full notes — these topics show up repeatedly.


Fundamentals of Programming (C++)

ConceptSyntax / rule
User-defined header#include "filename" (quotes) — library uses <...>
Reference variableint &y = x; — alias, must be initialized
Dynamic memorynew allocates; array: int *arr = new int[10];
Function overloadingSame name, different parameter list
Array → pointerArrays decay to pointers; can't pass "by value"
Constantconst float PI = 3.14; (not #define PI = 3.14)
Multi-branchswitch tests one value against many cases

File for read + write: ios::in | ios::out

Object Oriented Programming

PillarOne-liner
EncapsulationHide data (private), expose via getters/setters with validation
AbstractionShow only essentials; model the problem domain
InheritanceReuse common attributes — Student extends Person ("is-a")
PolymorphismSame interface, different behavior (message passing)

private prevents direct external access to sensitive data. Static block runs once when the class loads.

Java GUI: button click → implement ActionListener | JPanel groups components | setBounds() (no layout manager) | GridLayout = equal cells

Data Structure and Algorithms

StructureKey fact
StackLIFO — implements recursion
Queue / DequeFIFO / insert-delete at both ends
GraphThe non-linear structure (others are linear)
BST inorderGives ascending sorted order
HeapImplements a priority queue (log n insert/delete)
HashingDirect access by key

Sorting: Merge & Quick sort are divide-and-conquer — Merge is stable, Quick is not. Big-O (memorize): O(1) < O(log n) < O(n) < O(n log n) < O(n²). Shortest path: Dijkstra (weighted graph). Infix → postfix: A*(B+C*D) → ABCD*+*

Fundamentals of Software Engineering

ModelIdea
WaterfallSequential — each phase finishes before the next
Spiral (Boehm)Risk-driven, looping
AgileIterative, embraces change; working software over documentation
ScrumProduct Owner, Scrum Master, Sprint, Daily Standup
RADFast delivery under tight deadlines
Evolutionary prototypingIncremental development
MaintenanceCorrective, Adaptive, Perfective, Preventive

Functional req = system behavior | Non-functional = constraints. Black-box testing = no view of internal structure. Good design = low coupling + high cohesion (modularity = dividing the system into independent modules).

Database Systems

Normal FormRule
1NFAtomic values only
2NF1NF + full dependency on the whole key (no partial)
3NF2NF + no transitive dependency
BCNFEvery determinant is a super key

Relational model: data = relations (tables); a schema = relation name + attributes; rows = tuples. ER mapping: 1:1 → FK either side | 1:N → FK on the N-side | M:N → junction table. Keys: primary (unique row), foreign (references another relation), candidate / super key. Normalization minimizes redundancy + update anomalies. Commands: CREATE = DDL | INSERT / UPDATE / DELETE / SELECT = DML. Inner join returns rows matching in both tables. A view restricts a user to a subset of data. Models: conceptual (global view) → logical → physical (file/page/record). Referential integrity keeps foreign keys consistent.

Digital Logic & Design

TopicMust know
Universal gateNAND (and NOR)
2's complementInvert bits + 1 → 101101 becomes 010011
Half / Full adderFull adder = 2 half adders; half adder has no Borrow
MUXData selector; decoder 3-to-8 → 8 outputs
EncoderConverts inputs to binary code; priority encoder picks highest
D flip-flopQ(next) = D; SR latch is level-triggered
Canonical SOPSum of minterms; PLA = programmable AND + OR
Boolean simplifyK-map / identities — e.g. (A+B)(A'+C) = A + BC

Address lines: a 32×8 memory needs 5 lines (2⁵ = 32). Base-16 = hexadecimal.

Computer organization and architecture

TopicDetail
Program CounterHolds address of the next instruction (PC ← PC + I)
Instruction cycleFetch → Decode (interprets opcode) → Execute
MBR / AccumulatorMBR holds data to/from memory; Accumulator = implicit register for 1-address
Cache memoryFaster than RAM; exploits locality (hit/miss)
PipeliningIncreases instruction throughput
Branch predictionMitigates control hazards
SuperscalarMultiple instructions issued/executed per cycle

Addressing: Immediate (operand in instruction) | Indexed (best for arrays). Three-address format → shortest program.

Operating System

TopicMust know
Process vs ThreadThread shares the address space of its process
Process statesNew → Ready → Running → Blocked → Terminated
fork()System call that creates a process (UNIX/Linux)
ZombieTerminated process whose PCB still exists
Deadlock (4 conditions)Mutual exclusion, hold & wait, no preemption, circular wait
Banker's algorithmDeadlock avoidance via safe-state check
ThrashingExcessive page faults from too little memory
FIFO replacementCan suffer Belady's anomaly
SchedulingFCFS is non-preemptive; turnaround = submit → complete

Indexed allocation → efficient direct access. Producer–Consumer = a synchronization problem.

Micro Computer & Interfacing (8086)

TopicDetail
Physical addresssegment × 16 (shift left 4) + offset → addresses 1 MB
Data busInternal data bus = 16 bits
BIUBus Interface Unit fetches instructions
Default stack segmentSS (for the stack pointer)
AD0–AD15Multiplexed address/data → fewer pins
Interrupts8259 PIC expands them; divide-by-zero = internal Type 0

Addressing modes: MOV AL,55H = immediate | MOV AX,[BX] = register-indirect | MOV AX,[2000H] = direct. CALL pushes return address; DAA fixes packed BCD.

Data Communication and Computer Networking

OSI layers (top→bottom): Application → Presentation → Session → Transport → Network → Data Link → Physical

NetworkingDetail
RouterNetwork-layer device; switches reduce collision domains
TCP vs UDPTCP = reliable, connection-oriented; UDP = fast, connectionless
DNSResolves domain names ↔ IP addresses
Star topologyAll devices connect to a central hub/switch
AttenuationSignal loss over distance; impulse noise = sudden spikes
PCM / FDMPCM digitizes analog (sampling); FDM splits bandwidth by frequency

Private IPs (192.168.x.x, 10.x) aren't routed on the Internet; a subnet mask splits network/host bits. IPv6 fixes address exhaustion. MPLS improves WAN routing. Simplex = one-way only.

Computer Systems Security

CIA Triad: Confidentiality, Integrity, Availability (DoS attacks availability).

ConceptMeaning
Symmetric cryptoSame key both ways (AES, DES) — weakness is key distribution
Asymmetric cryptoPublic + private key pair — RSA
AES keys128 / 192 / 256 bits
Virus vs WormVirus modifies other programs; Worm self-replicates
Passive attackLearns info without altering resources
RBACAccess based on job role
IDSDetects/responds to malicious activity
AuthenticationSmartcard = "something you have"; one-to-many = identification

Strong password = long + mixed symbols. The biggest vulnerability is usually human factors.

Distributed Systems

ConceptDetail
DefinitionIndependent computers that appear as one system
No global clockNot a characteristic of a DS
TransparencyHides complexity; location transparency hides where resources are
Partial failureSome nodes fail while others continue
RPCMakes remote resources appear local
Byzantine faultAssumes malicious behavior
ConsensusEnsures progress despite failures

Eventual consistency → NoSQL. Read replication scales read-heavy loads. Serverless abstracts server management.

Compiler Design

Phase order (memorize):

Lexical → Syntax → Semantic → Intermediate Code → Optimization → Code Generation

Phase / ConceptDetail
Lexical analyzerRemoves comments, builds tokens, first fills the symbol table
Syntax analysisDetects a missing semicolon; output = parse / syntax tree
Semantic analyzerChecks operand types
Ambiguous grammarProduces more than one parse tree
Left recursionBreaks top-down (LL) parsers — infinite loop
Bottom-up parsingBuilds the tree from leaves to root

Cross compiler runs on one machine, targets another. Linker combines object files.

Introduction to Artificial Intelligence

TopicMust know
AgentArchitecture + Program; acts on a percept sequence
Simple reflex agentCondition–action rules
Utility-based agentReasons about happy/unhappy states
Turing TestEvaluates machine intelligence
SearchBFS explores shallowest nodes first
UncertaintyHandled with probabilistic reasoning

Learning: Supervised = labeled data | Unsupervised = patterns in unlabeled data | Reinforcement = reward/penalty. Dropout prevents overfitting; NLP handles human language.


Top 15 "Always Appear" Facts (Memorize Tonight)

  1. NAND / NOR are universal gates; 2's complement = invert + 1.
  2. Stack = LIFO (implements recursion) | Queue = FIFO.
  3. Merge & Quick sort = divide-and-conquer — Merge stable, Quick not.
  4. BST inorder = ascending | Dijkstra = shortest path.
  5. 1NF atomic → 2NF full-key dep → 3NF no transitive → BCNF determinant is a super key.
  6. CREATE = DDL; INSERT / UPDATE / DELETE / SELECT = DML.
  7. fork() creates a process; a thread shares its process's address space.
  8. Banker's algorithm = deadlock avoidance; thrashing = too many page faults.
  9. FIFO page replacement → Belady's anomaly.
  10. Router = network layer; DNS maps names ↔ IPs; IPv6 fixes address exhaustion.
  11. Compiler order: Lexical → Syntax → Semantic → Intermediate → Optimization → Code gen.
  12. Ambiguous grammar = multiple parse trees; left recursion breaks LL parsers.
  13. 8086: physical address = segment×16 + offset → 1 MB; data bus = 16-bit.
  14. CIA; AES = 128/192/256-bit keys; symmetric weakness = key distribution.
  15. Encapsulation, Inheritance, Polymorphism, Abstraction = the four OOP pillars.

Study CSE Exit Must Know in the app

Read on your phone or laptop, drill the practice questions for this course and track what you got wrong. Free to start.

Start studying free Log in

All Computer Science & Engineering courses, papers and practice