Chapter 1 Exercise Set 1ΒΆ

  1. Syntax and Semantics

    Do a web search (Wikipedia is your best place to start) and define the following terms in your own words:

    • alphabet

    • lexeme

    • syntax

    • semantics

    Write an English sentence with understandable semantics but incorrect syntax. Write another English sentence which has correct syntax but has semantic errors.

  2. Introducing the C++ Build Process

    The journey from C++ source file to compiled machine language executable goes through four stages, each controlled by a separate program. Do a web search on the following programs, and summarize what each of them do in your own words.

    • Preprocessor

    • Compiler

    • Assembler

    • Linker