LakshyaEducation.in

VEDIC MATHS Video Series
  • Home
  • Video Series
    • Vedic Maths Videos
    • Quantitative Aptitude Videos
    • Class 8 Maths Videos
    • Class 9 Maths Videos
    • Class 10 Maths Videos
  • Quiz & Solutions
  • Blog
  • Store
  • Login
  • Contact Us
  • Home
  • Topic
  • C++ Programming
  • Types

C++ Programming

TYPES MCQs

Total Questions : 10

Question 1.

Pick the odd one out.



  1.    integer, character, boolean, floating
  2.    enumeration, classes
  3.    integer, enum, void
  4.    arrays, pointer, classes
 Discuss Question
Answer is Option C. -> integer, enum, void

Option a consists of all fundamental types, option b consists of user-definied types and option d consists 

of derived types but option c is a mixture.

Question 2.

When a language has the capability to produce new data type mean, it can be called as


  1.    overloaded
  2.    extensible
  3.    encapsulated
  4.    reprehensible
 Discuss Question
Answer is Option B. -> extensible

Extensible is used to add new features to C++.

Question 3.

The value 132.54 can represented using which data type?


  1.    double
  2.    void
  3.    int
  4.    bool
 Discuss Question
Answer is Option A. -> double

The given value is with decimal points, so float or double can be used.

Question 4.

Which of the following statements are true?
 int f(float)


  1.    f is a function taking an argument of type int and retruning a floating point number
  2.    f is a function taking an argument of type float and returning a integer.
  3.    f is a function of type float
  4.    none of the mentioned
 Discuss Question
Answer is Option B. -> f is a function taking an argument of type float and returning a integer.

The argument that is passed to a function f is of float type and the function finally retruns a value

that id is of integer type.

Question 5.

Identify the user-defined types from the following?


  1.    enumeration
  2.    classes
  3.    both a and b
  4.    int
 Discuss Question
Answer is Option C. -> both a and b

They must be defined by the users before use unlike the other types which are readily available.

Question 6.

Which type is best suited to represent the logical values?


  1.    integer
  2.    boolean
  3.    character
  4.    all of the mentioned
 Discuss Question
Answer is Option B. -> boolean

Logical values can be either true or false, so the boolean type is suited for it.

Question 7.

What does a escape code represent?


  1.    alert
  2.    backslash
  3.    tab
  4.    form feed
 Discuss Question
Answer is Option A. -> alert

Because a is used to produce a beep sound.

Question 8.

Pick the odd one out


  1.    array type
  2.    character type
  3.    boolean type
  4.    integer type
 Discuss Question
Answer is Option A. -> array type

Array type is not the basic type and it is constructed using the basic type.

Question 9.

Which datatype is used to represent the absence of parameters?


  1.    int
  2.    short
  3.    void
  4.    float
 Discuss Question
Answer is Option C. -> void

void will not return anything.

Question 10.

What is the size of wchar_t in C++?


  1.    2
  2.    4
  3.    2 or 4
  4.    based on the number of bits in the system
 Discuss Question
Answer is Option D. -> based on the number of bits in the system

Compiler wants to make CPU as more efficient in accessing the next value.

  • Share on Facebook!
  • Share on Pinterest!

Sub Topics

  • Abstract Classes
  • Access Control
  • Argument Passing
  • Arrays
  • Booleans
  • C++ Concepts
  • Catching Exceptions
  • Character Types
  • Class Hierarchies And Abstract Classes
  • Class Hierarchies Introduction
  • Classes
  • Comments And Indentation
  • Complex Number Type
  • Constants
  • Constructors And Destructors
  • Container Design
  • Conversion Operators
  • Declaration
  • Default Arguments
  • Dereferencing
  • Derivation And Templates
  • Derived Classes
  • Design Of Class Hierarchies
  • Enumerations
  • Error Handling
  • Error Handling Alternatives
  • Essential Operators
  • Exception Specifications
  • Exceptions
  • Exceptions And Efficiency
  • Exceptions That Are Not Errors
  • Floating Point Types
  • Free Store
  • Friends
  • Function Call
  • Function Declarations
  • Function Templates
  • Functions
  • Grouping Of Exceptions
  • Header Files Usage
  • Increment And Decrement
  • Integer Types
  • Large Objects
  • Linkage
  • Macros
  • Modularization And Interfaces
  • Multiple Inheritance
  • Namespaces
  • Objects
  • Objects And Classes
  • Oops Concepts
  • Operator Functions
  • Operators
  • Overloaded Function Names
  • Pointer To Function
  • Pointer To Void
  • Pointers
  • Pointers Into Arrays
  • Pointers To Members
  • References
  • Resource Management
  • Run Time Type Information
  • Sequence Adapters
  • Sequences
  • Simple String Template
  • Sizes
  • Specialization
  • Standard Exceptions
  • Standard Library Design
  • Statements
  • String Class
  • Structures
  • Subscripting
  • Template Arguments To Specify Policy Usage
  • Types
  • Uncaught Exceptions
  • Unspecified Number Of Arguments
  • User Defined Types
  • Value Return
  • Vector
  • Void

Recent Posts

  • Vedic Maths Faq
  • Sail E0 Results 2022
  • Is Ssc Difficult Than Upsc?
  • Sail E0 Exam Results Cancelled - Exam Will Be Rescheduled
  • Ssc Exam Guide Book
  • Best Ssc Exam For Girls
  • Quantitative Aptitude Faqs

Recent Questions

Q.   The Value Engineering Technique In Which Experts Of The Same....

Q.   If Transcription Should Not Be Carried Out Beyond The Insert....

Q.   Buffalo Is To Leather As Llama Is To....?

Q.   Choose The Correct Answer From The Given Options To Fill The....

Q.   The Arithmetic Mean (average) Of The First 10 Whole Numbers ....

Q.   Which Governor General Is Remembered For The Annulment Of Th....

Q.   When The Voltage Across A Capacitor Is Tripled, The Stored C....

Q.   My Mother Bakes Cakes.

Q.   Log Mean Temperature Difference In Case Of Counter Flow Comp....

Q.   Which Of The Following Is Not A Matter Of Local Government?

Q.   Which Drugs Can Easily Pass The Placental Barrier?

Q.   Which Of The Following Is Not A Benefit Of BLAST?

Q.   A Part Of John's Salary Was Cut By The Government. What....

Q.   The Swollen Part Of The Pistil Is Known As ________ .

Q.   By Definition, Make A Map Is To Select Certain Features As R....

Q.   Which Of The Following Is The Best Tube Material From Therma....

Q.   If You Are Going To Use A Combination Of Three Or More AND A....

Q.   (a) A Ball Is Dropped From A Height Of 30m. After Striking T....

Q.   What Is The Approx. Value Of W, If W=(1.5)11, Given Log2 = 0....

Q.   In The Following Questions, The Symbols $, ©, *, @ And # Ar....

Topics

Computer Aptitude
SAIL Junior Officer (E-0)
10th Grade
11th Grade
12th Grade
4th Grade
5th Grade
6th Grade
7th Grade
8th Grade
9th Grade
NCERT
Cat
Commerce
Computer Science
Engineering
English
General Knowledge
Ias
Management
Quantitative Aptitude
Reasoning Aptitude
General Studies (Finance And Economics)
Vedic Maths
Analytical Instrumentation
Biochemistry
Bioinformatics
Biology
Biotechnology
Bitsat
Business Statistics
C Programming
C++ Programming
Cell Biology
Chemistry
Cost Accounting
Drug And Pharmaceutical Biotechnology
Electrical Measurement And Instrumentation
Environment Management
Environmental Biotechnology
Enzyme Technology
Financial Management And Financial Markets
Gate
General Science
Geography
Heat Transfer
History And National Movements
Human Anatomy And Physiology
Human And Cultural Diversity
Human Resource Management
Indian Economy
Indian Geography
Indian History
Indian Polity
Instrumentation Transducers
International Relations
Life Sciences
Marketing And Marketing Management
Mass Transfer
Mechanics Of Materials
Microbiology
Neet
Professional Communication
Renewable Energy
Sociology
Surveying
Total Quality Management
Uidai Aadhaar Supervisor Certification
Virology
LakshyaEducation.in
Lakshya Education
Bhilai,Chattisgarh,India
Email: admin@lakshyaeducation.in Phone: 07893519977 (WhatsApp)

Quick Links

  • Vedic Maths
  • Quantitative Aptitude
  • Class – IX Maths
  • Class – X Maths
  • Blog

Our Services

  • About us
  • Privacy
  • TOS
  • Refund / Cancellation
  • Contact
  • Affiliate Program
  • Copyright © 2022 All Right Reserved | Lakshya Education     ( )
    Login / Register

    Your Account will be created automatically when you click the below Google or Facebook Login Button.
    •   Login With Facebook
    •  Login With Google
     Login With Email/Password