Coursify

Foundations of Software Engineering

Variables and Data Types

30 mins

Introduces primitive types, literals, and variable scope.

Learning Goals

  • Identify primitive data types (int, float, bool, char, string).
  • Declare variables with appropriate scope and lifetime.
  • Perform type conversion and casting safely.
  • Explain the concept of immutable vs mutable data.
  • Write code that correctly initializes and uses variables.

Variables and Data Types | Foundations of Software Engineering | Coursify