History of C++ Programming by Bjarne Stroustrup
12 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is a class in C++?

  • A data type that defines the way storage is used
  • A template that describes the behaviors and states an object supports (correct)
  • An identifier used to name user-defined items
  • A behavior that describes the state of an object
  • Why are instance variables important in C++?

  • They define the basic built-in data types
  • They store the method behaviors
  • Each object has a unique set and defines the object's state (correct)
  • They are used to define the way storage is used
  • What is the purpose of an identifier in C++?

  • To establish basic built-in datatypes
  • To identify a variable, function, or class (correct)
  • To store user-defined items
  • To define different datatypes
  • Why is whitespace important in C++ programming?

    <p>To separate different parts of a statement</p> Signup and view all the answers

    Which datatype is used for storing single precision floating point numbers in C++?

    <p>float</p> Signup and view all the answers

    What is the role of modifiers in C++?

    <p>They define the type of variables and their contents</p> Signup and view all the answers

    When did Bjarne Stroustrup start working on 'C with Classes'?

    <p>1979</p> Signup and view all the answers

    What are objects in C++ defined as?

    <p>Instances of classes that communicate via invoking each other’s method</p> Signup and view all the answers

    What significant features were added in the 1983 version of C++?

    <p>Classes, inheritance, polymorphism, encapsulation</p> Signup and view all the answers

    Who developed C programming language?

    <p>Dennis Ritchie</p> Signup and view all the answers

    What is the correct timeline of C++ development?

    <p>1979 -&gt; 1983 -&gt; 1985 -&gt; 1989 -&gt; 1998</p> Signup and view all the answers

    What were the main concepts used in the development of C by Dennis Ritchie?

    <p>BCPL and B</p> Signup and view all the answers

    Study Notes

    OOP Concepts

    • A class is a template/blueprint that describes the behaviors/states that an object of its type supports.
    • A method is a behavior, and a class can contain many methods.
    • Instance variables are unique to each object, and an object's state is created by the values assigned to these instance variables.

    C++ Basics

    • Identifiers are names used to identify a variable, function, class, module, or any other user-defined item.
    • Identifiers start with a letter (A-Z or a-z) or an underscore (_) followed by zero or more letters, underscores, and digits (0-9).
    • C++ is a case-sensitive programming language, so "Manpower" and "manpower" are two different identifiers.

    Whitespace in C++

    • A line containing only whitespace, possibly with a comment, is known as a blank line, and the C++ compiler ignores it.
    • Whitespace separates one part of a statement from another and enables the compiler to identify where one element in a statement ends and the next begins.

    Datatypes in C++

    • Built-in datatypes are predefined and wired directly into the compiler, such as int, char, float, double, bool, and void.
    • User-defined or abstract data types are created by the user as a class or structure.
    • Basic built-in datatypes in C++ include char (1 byte), int (2 bytes), float (4 bytes), double (8 bytes), bool, and wchar_t.

    History of C++

    • C++ was developed by Bjarne Stroustrup at AT&T Bell Labs.
    • C++ is a successor to the C programming language, which was developed by Dennis Ritchie in 1972.
    • C++ development began in 1979, and the first commercial edition was released in 1985.

    C++ Timeline

    • 1979: Stroustrup starts working on "C with Classes" at Bell Labs.
    • 1983: "C with Classes" is renamed to "C++".
    • 1985: The first edition of "The C++ Programming Language" is released.
    • 1989: C++ 2.0 is released.
    • 1998: The first ISO Standard (C++98) is released.
    • 2003: C++03, bugfixes of C++98, is released.
    • 2011: C++11, a major revision, is released.
    • 2014: C++14, bugfixes and small improvements of C++11, is released.
    • 2017: C++17, the upcoming major version, is planned.

    C++ Program

    • A C++ program is a collection of objects that communicate via invoking each other's methods.
    • An object has states (e.g., color, name, breed) and behaviors (e.g., wagging, barking, eating).
    • An object is an instance of a class.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Learn about the history of C++ programming language, starting from its inception at AT&T Bell Labs by Bjarne Stroustrup. Understand the evolution from C programming to C++, and the key features introduced. Dive into the background of Dennis Ritchie and the development of C programming.

    More Like This

    Use Quizgecko on...
    Browser
    Browser