CS Fundamentals

479 articles in this topic

Undefined Behavior in C: Common Causes, Examples, and Fixes

Learn to find the first undefined operation in common C programs, repair the missing invariant, and verify the corrected result with worked examples.

Updated 14 Oct 20266 min readC Programming & Data Structures

Basics of Cyber Security: CIA Triad, Risks and a Worked Defence

Learn a consistent security vocabulary, connect common attack paths to suitable controls, and calculate how two defensive layers reduce account takeovers.

Updated 14 Oct 20266 min readComputer Networks

Bottom-Up Parsing in Compiler Design: Shift-Reduce Trace, LR Items and Conflicts

Follow a nested-parentheses LR(0) parse from input to acceptance, derive every item set, and see why lookahead changes parser-family conflicts.

Updated 14 Oct 20265 min readCompiler Design

Commutative Property and Abelian Groups: Tests, Worked Examples and Exam Traps

Learn how to separate commutativity from the other group axioms, test custom operations step by step, and avoid the usual classification traps.

Updated 13 Oct 20266 min readEngineering Mathematics

Semaphores and Process Ordering in OS: P/V Traces, Worked Examples and GATE Traps

Learn one consistent semaphore convention, then trace ordering constraints, shared-variable updates, bounded-buffer permits, rendezvous, and deadlock step by step.

Updated 13 Oct 20265 min readOperating Systems

SQL Aggregate Functions: COUNT, SUM, AVG, MIN and MAX with Examples

Use one runnable sales table to see exactly how SQL aggregates treat rows, NULL values, duplicates and groups. Every result includes the arithmetic behind it.

Updated 13 Oct 20265 min readDBMS

PDA Design and Basics: Worked Stack Traces and Exam Question Patterns

Learn how a pushdown automaton uses its stack, then design and trace a complete machine for a^n b^n. The worked CFG conversion and rejection checks make every move testable.

Updated 13 Oct 20266 min readTheory of Computation

Computer Classification and Flynn’s Taxonomy: The Four Classes with a Worked Vector Example

A machine can belong to several computer classes at once. Learn the four classification axes, Flynn’s matrix, vector and multicore traces, and exam traps.

Updated 11 Oct 20266 min readComputer Organization & Architecture

Decimal Conversion Explained: Binary, Octal and Hexadecimal Worked Examples

Learn one dependable method for converting values between decimal, binary, octal and hexadecimal, including fractions, shortcuts and checks.

Updated 11 Oct 20265 min readDigital Logic

Structures in C: Syntax, Member Access and Worked Examples

Learn how C structures group related values, then trace object and pointer access through complete, implementation-safe examples.

Updated 10 Oct 20266 min readC Programming & Data Structures

Cyber Threats and Attacks Explained: Types, Worked DDoS Example and Exam Traps

Learn to separate threats, vulnerabilities, vectors and attacks, then apply the distinctions to a calculated DDoS scenario and exam-style questions.

Updated 10 Oct 20266 min readComputer Networks

Intermediate Code Generation in Compiler Design: One Cross-Concept Worked Example

Carry one C-like fragment from its source facts to typed temporaries, three-address code, quadruples and a control-flow graph, with every value traced.

Updated 10 Oct 20266 min readCompiler Design