C++ Programming Questions and Answers

C++ Programming Multiple Choice Questions and Answers MCQs
Our 1000+ multiple choice questions and answers (MCQs) on "C++ Programming" focus on all areas of C++ Programming covering 100+ topics. These topics are chosen from a collection of the most authoritative and best reference books on C++ Programming. One should spend 1 hour daily practicing these MCQs for 2-3 months to learn and assimilate C++ Programming subject comprehensively. This way of systematic learning will prepare anyone easily for C++ Programming exams, contests, online tests, quizzes, MCQ-tests, viva-voce, interviews, and certifications.

C++ Programming Multiple Choice Questions Highlights

- 1000+ Multiple Choice Questions & Answers (MCQs) in C++ Programming with a detailed explanation of every question.
- These MCQs cover theoretical concepts, true-false(T/F) statements, fill-in-the-blanks and match the following style statements.
- These MCQs also cover lots of code, code snippets and/or complete programs.
- These MCQs are organized chapterwise and each Chapter is futher organized topicwise.
- Every MCQ set focuses on a specific topic of a given Chapter in C++ Programming Subject.

Who should Practice C++ Programming MCQs?

– Students who are preparing for college tests and exams such as mid-term tests and semester tests on C++ Programming.
- Students who are preparing for Online/Offline Tests/Contests in C++ Programming.
– Students who wish to sharpen their knowledge of C++ Programming Subject.
- Anyone preparing for Aptitude test in C++ Programming.
- Anyone preparing for interviews (campus/off-campus interviews, walk-in interview and company interviews).
- Anyone preparing for entrance examinations and other competitive examinations.
- All - Experienced, Freshers and College / School Students.

C++ Programming Chapters

Here's the list of chapters on the "C++ Programming" subject covering 100+ topics. You can practice the MCQs chapter by chapter starting from the 1st chapter or you can jump to any chapter of your choice.

1. Basics Concepts of C++

The section contains multiple choice questions and answers on basics, oops concepts, c++ concepts, static constant keyword, differences between c and c++.

  • C++ Basics
  • OOPs Concept – 1
  • OOPs Concept – 2
  • OOPs Concept – 3
  • OOPs Concept – 4
  • C++ vs C
  • C++ Concepts – 1
  • C++ Concepts – 2
  • C++ Concepts – 3
  • Static Constant Keyword
  • advertisement

    2. Types, Pointers, Arrays & Structures in C++

    The section contains questions and answers on integer, float, character and boolean types. It also contains arrays, pointers, references and structures.

  • Types
  • Booleans
  • Character Types
  • Integer Types
  • Floating Point Types
  • Sizes
  • Void
  • Enumerations
  • Declaration
  • Pointers
  • Arrays
  • Pointers into Arrays
  • Constants
  • References – 1
  • References – 2
  • References – 3
  • Pointer to Void
  • Structures
  • Character Classification
  • 3. Functions, Namespaces & Exceptions in C++

    The section contains MCQs on function declaration and overloading, operators and statements, values and arguments, macros, namespaces and exceptions.

  • Operators
  • Statements
  • Comments and Indentation
  • Function Declarations
  • Functions
  • Argument Passing
  • Value Return
  • Overloaded Function Names
  • Default Arguments
  • Unspecified Number of Arguments
  • Pointer to Function
  • Macros
  • Modularization and Interfaces
  • Namespaces – 1
  • Namespaces – 2
  • Exceptions
  • advertisement

    4. Source Files, Classes and Operator Overloading in C++

    The section contains multiple choice questions and answers on classes and functions, fiend function, objects and operators, operator overloading, constructors and destructors, subscripting and dereferencing and other string classes.

  • Linkage
  • Header Files Usage
  • Classes – 1
  • Classes – 2
  • User Defined Types
  • Objects
  • Operator Functions
  • Operator Overloading – 1
  • Operator Overloading – 2
  • Complex Number Type
  • Conversion Operators
  • Friends
  • Friend Function
  • Large Objects
  • Essential Operators
  • Subscripting
  • Function Call
  • Dereferencing
  • Increment and Decrement
  • String Class
  • String – 1
  • String – 2
  • Constructors and Destructors – 1
  • Constructors and Destructors – 2
  • Constructors and Destructors – 3
  • 5. Derived Classes, Templates & Exception Handling in C++

    The section contains questions and answers on different types of classes like abstract, derived and their hierarchies, different types of templates like simple string and function and their derivation and specialization. The section also has error and exception handling, different types of exceptions and their resource management.

  • Derived Classes
  • Abstract Classes – 1
  • Abstract Classes – 2
  • Design of Class Hierarchies
  • Class Hierarchies & Abstract Classes
  • Simple String Template
  • Function Templates – 1
  • Function Templates – 2
  • Class Templates
  • Template Arguments for Policy Usage
  • Specialization
  • Derivation and Templates
  • Standard Template Library
  • Templates
  • Error Handling
  • Grouping of Exceptions
  • Catching Exceptions
  • Resource Management
  • Exceptions That Are Not Errors
  • Exception Specifications
  • Uncaught Exceptions
  • Exceptions and Efficiency
  • Exception Handling – 1
  • Exception Handling – 2
  • Exception Handling – 3
  • Error Handling Alternatives
  • Standard Exceptions
  • advertisement

    6. Class Hierarchies, Library & Containers

    The section contains MCQs on different aspects of a container which includes creation and design of new containers, vectors and sequences, types of inheritance and various class hierarchies, sequences like seq_con array class, seq_con vector class, stl – pair and heap, vtable, vptr, generators, array type manipulations, tuples, complex library, valarray, bitset and class relationships.

  • Class Hierarchies Introduction
  • Multiple Inheritance
  • Inheritance – 1
  • Inheritance – 2
  • Access Control
  • Run Time Type Information
  • Pointers to Members
  • Free Store
  • Standard Library Design
  • Container Design
  • Vector
  • Sequences
  • Sequence Adapters
  • Associative Containers
  • Almost Containers
  • Defining a New Container
  • seq_con Array Class – 1
  • seq_con Array Class – 2
  • seq_con Vector Class – 1
  • seq_con Vector Class – 2
  • seq_con List
  • STL – Pair
  • STL Container Any – 1
  • STL Container Any – 2
  • STL- Heap
  • vtable and vptr
  • Generators
  • Array Type Manipulation
  • Tuples – 1
  • Tuples – 2
  • Complex Library – 1
  • Complex Library – 2
  • Valarray
  • Bitset – 1
  • Bitset – 2
  • Bitset – 3
  • Class Relationships
  • More Containers
  • 7. Algorithms, Objects & Iterators in C++

    The section contains multiple choice questions and answers on different types of algorithms like C style, standard library, modifying sequence and non modifying sequence, different types of iterators, stl algorithms, functors, sequences, containers and allocators.

  • Standard Library Algorithms
  • Sequences and Containers
  • Function Objects
  • Nonmodifying Sequence Algorithms
  • Modifying Sequence Algorithms
  • Stored Sequences
  • Heaps
  • Min and Max
  • Permutations
  • C Style Algorithms
  • Iterators and Sequences
  • Checked Iterators
  • Allocators
  • Iterators
  • STL Algorithms
  • Functors
  • advertisement

    8. Strings, Streams & Numerics in C++

    The section contains questions and answers on basic strings and their characters, I/O streams, file and string streams, standard library and mathematical applications like numeric limits, file handling, vector arithmetic and random numbers.

  • String Characters
  • Basic String
  • C Standard Library
  • Output Stream
  • Input Stream
  • Formatting
  • File Streams and String Streams
  • Buffering
  • Locale
  • C Input Output
  • Numeric Limits
  • Standard Mathematical Functions
  • Vector Arithmetic
  • Generalized Numeric Algorithms
  • Random Numbers
  • File Handling
  • 9. C++ Advanced

    The section contains MCQs on lambda expressions and command line arguments.

  • Lambda Expressions
  • Command Line Arguments
  • If you would like to learn "C++ Programming" thoroughly, you should attempt to work on the complete set of 1000+ MCQs - multiple choice questions and answers mentioned above. It will immensely help anyone trying to crack an exam or an interview.

    Wish you the best in your endeavor to learn and master C++ Programming!

    advertisement
    advertisement
    Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Instagram | Facebook | Twitter