Cards (105)

  • What is essential for programming according to the introduction?
    A fundamental knowledge of the language
  • Why is it important to test programs using an IDE or compiler?
    To ensure that each program functions as intended
  • Who created the C programming language?
    Dennis Ritchie
  • What was the primary goal of creating the C programming language?
    To be more powerful, flexible, and maintain simplicity
  • In what year was the C programming language created?
    1972
  • What impact did the C programming language have on software development?
    It influenced the development of software due to its simplicity, efficiency, and portability
  • Who extended the C programming language to create C++?
    Bjarne Stroustrup
  • What was the original name given to C++ when it was first extended?
    C with Classes
  • In what year was C++ formally introduced to the public?
    1983
  • What areas did C++ impact in the software industry?
    Game development, scientific computing, systems programming, and more
  • What are the programming paradigms supported by C++?
    • Procedural programming
    • Object-oriented programming
  • What is a characteristic of C++ as a programming language?
    It is case-sensitive
  • What are the four pillars of Object-Oriented Programming (OOP)?
    • Abstraction
    • Inheritance
    • Polymorphism
    • Encapsulation
  • What are the tools used in C++ programming?
    • Text editor
    • Compiler
    • Linker
    • Libraries
  • What is the role of a compiler in C++ programming?
    It checks syntax and translates source code into machine code
  • What file extension is commonly used for C++ source code files?
    .cpp
  • What does a linker do in C++ programming?
    It combines object files and libraries into a single executable program
  • What is the purpose of libraries in C++ programming?
    To provide pre-written codes and functionalities
  • What are the advantages of C++?
    • Simple
    • Portability
    • Fast and Efficient
    • Modularity
    • Irreplaceable
    • Low-level and high-level features
  • What are some popular C++ IDEs?

    • Visual Studio
    • Code::Blocks
    • CLion
    • Eclipse CDT
    • CodeLite
    • Apache NetBeans
    • Dev C++
  • What are some popular online C++ compilers?

    • Codiva.io
    • Programiz
    • OneCompiler
    • Tutorialspoint
  • What is the basic structure of a C++ program?
    #include <iostream> followed by main() function
  • What does the header file inclusion section do in a C++ program?
    It includes all required header files needed by the program
  • What is a class definition section in C++?
    It defines the structure and behavior of an object
  • What is the purpose of the namespace section in C++?
    To provide a scope to the identifiers and avoid name conflicts
  • What is the main() function in a C++ program?
    It is the entry point where program execution starts
  • What is the purpose of the comment section in a C++ program?
    To provide explanatory statements for better readability
  • What are the two types of comments in C++?
    Single line and multi-line comments
  • What does the return 0; statement signify in a C++ program?
    It indicates the successful end of the main function
  • What are variables in C++?
    Containers to store data values
  • What do data types define in C++?
    What kind of data a variable can hold and its memory size
  • What is an example of an integer variable declaration in C++?
    int age = 30;
  • What is the difference between float and double in C++?
    Float is used for six decimal digits, while double is for fifteen digits
  • How is a character declared in C++?
    char grade = 'A';
  • What does the boolean data type store in C++?
    Either true or false
  • What is the void data type used for in C++?
    To represent no value
  • What are the primitive data types in C++?
    • int
    • float
    • double
    • char
    • bool
    • void
  • What are the storage sizes for different data types in C++?
    • int: 4 bytes
    • float: 4 bytes
    • double: 8 bytes
    • char: 1 byte
    • bool: 1 byte
  • What is the string data type used for in C++?
    To store sequences of characters enclosed in double quotes
  • What are the data type modifiers in C++?
    • Signed
    • Unsigned
    • Short
    • Long