Curriculum
Course: Complete C++ Programming Course
time left:
:
:
Login

Curriculum

Complete C++ Programming Course

Quiz

Quiz – Introduction to C++

Submit quiz
Once you submit, you will no longer be able to change your answers. Are you sure you want to submit the quiz?
    1.
    Which feature of OOP allows the creation of new classes based on existing ones?
    Polymorphism
    Inheritance
    Encapsulation
    Abstraction
    2.
    Which of the following is a popular C++ compiler?
    GCC (GNU Compiler Collection)
    CPython
    JIT (Just-In-Time Compiler)
    JVM (Java Virtual Machine)
    3.
    What is encapsulation in C++?
    The ability to define multiple functions with the same name
    Bundling of data and functions operating on that data within one unit
    Hiding the implementation details of a class
    The process of creating a new class from an existing class
    4.
    Which of the following is an example of polymorphism in C++?
    Function overloading
    Data hiding
    Creating a class
    Using a constructor
    5.
    What is the main focus of C++ that differentiates it from C?
    System-level programming
    Hardware-level programming
    Object-oriented programming
    Procedural programming
    6.
    Which of the following is a feature unique to C++ but not present in C?
    Pointers
    Functions
    Class
    Macros
    7.
    Which of the following best describes the type of language C is?
    High-level, object-oriented
    Low-level, procedural
    High-level, procedural
    High-level, functional
    8.
    Who is the creator of C++?
    James Gosling
    Dennis Ritchie
    Bjarne Stroustrup
    Guido van Rossum
    9.
    Who is known as the father of the C programming language?
    Bjarne Stroustrup
    Dennis Ritchie
    James Gosling
    Guido van Rossum
    10.
    Which generation of languages focuses on declarative programming rather than procedural?
    First generation
    Second generation
    Third generation
    Fouth generation
    11.
    C++ is a:
    Procedural programming language
    Object-oriented programming language
    Functional programming language
    Both Procedural and Object Oriented Programming Language
    12.
    Fourth-generation languages (4GL) are primarily designed for:
    System programming
    Application development
    Database management
    Web development
    13.
    Which of the following statements is true about C++ compilers?
    They convert C++ code into executable machine code
    They execute code directly
    They interpret code line by line
    They do not perform optimization
    14.
    Which of the following is a characteristic of third-generation languages (3GL)?
    Machine-level instructions
    Assembly language
    High-level programming languages
    Natural language processing
    15.
    Which statement is true about interpreted languages compared to compiled languages?
    Interpreted languages are generally faster
    Interpreted languages are converted into machine code all at once
    Interpreted languages are executed line by line
    Interpreted languages do not need an interpreter to run
    16.
    Which of the following is not a principle of object-oriented programming?
    Encapsulation
    Abstraction
    Inheritance
    Compilation
    17.
    Which generation of computer languages is C++ categorized under?
    First generation
    Second generation
    Third generation
    Fourth generation
    18.
    Which language is considered a first-generation language?
    C
    FORTRAN
    Machine Language
    COBOL
    19.
    One disadvantage of interpreted languages is:
    Platform dependence
    Difficulty in debugging
    Slower execution time
    Lack of portability
    20.
    What is the role of a compiler in programming?
    Execute code line by line
    Translate high-level code into machine code
    Detect runtime errors
    Interpret scripts
    21.
    Which of the following is a feature of OOP in C++?
    Pointers
    Inheritance
    Macros
    Preprocessors
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21