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
  • Linkage

C++ Programming

LINKAGE MCQs

Total Questions : 7

Question 1.

Which is used to use a function from one source file to another?


  1.    code
  2.    declaration
  3.    prototype
  4.    none of the mentioned
 Discuss Question
Answer is Option C. -> prototype

By defining a function's prototype in another file means, we can inherit all the features 

from the source function.

Question 2.

What is the use of no linkage?


  1.    make the entity visible to other programs
  2.    make the entity visible to other blocks in the same program.
  3.    make the entity visible only to that block
  4.    none of the mentioned
 Discuss Question
Answer is Option C. -> make the entity visible only to that block

None.

Question 3.

To use external linkage we have to use which keyword?


  1.    static
  2.    extern
  3.    const
  4.    none of the mentioned
 Discuss Question
Answer is Option B. -> extern

extern keyword is used to represent identifiers from other programs.

Question 4.

What is the defualt type oof linkage that are available for identifires?


  1.    internal
  2.    external
  3.    no linkage
  4.    none of the mentioned
 Discuss Question
Answer is Option B. -> external

None.

Question 5.


What will be the output of these two programs?



1.



1.

1.
#ifndef Exercise_H
2.
#define Exercise_H
3.
int num = 842;
4.
#endif



2.



1.
#include
2.
#include "exe.h"
3.
using namespace std;
4.
int main(int argc, char * argv[] )
5.
{
6.
cout
  1.    842
  2.    843
  3.    compile time error
  4.    none of the mentioned
 Discuss Question
Answer is Option A. -> 842

In this program, we have created a header file and linked that into the source program and we 

are post incrementing that because of that it is printed as 842.
Output:
$ g++ link.cpp
$ a.out
842

Question 6.

To use internal linkage we have to use which keyword?


  1.    static
  2.    extern
  3.    static or extern
  4.    none of the mentioned
 Discuss Question
Answer is Option A. -> static

None.

Question 7.

How any types of linkage are there in c++?


  1.    1
  2.    2
  3.    3
  4.    4
 Discuss Question
Answer is Option C. -> 3

There are three types of linkage in c++. They are internal linkage, external linkage and 

no linkage.

  • 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

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)
  • 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

Recent Questions

Q.   DIVA:OPERA

Q.   All Computers Must Have __________

Q.   Which Of The Following Statements Are Correct With Regard To....

Q.   (solve As Per The Direction Given Above)

Q.   Deficiency Of 'Thiamine' Causes

Q.   In Each Question Below A Sentence Broken Into Four Or Five P....

Q.   IRS 1A And 1B Satellites Can Carry Which Of The Following Se....

Q.   ....

Q.   For A Dc Machine Shunt Resistance And Armature Resistance Va....

Q.   ....

Q.   Who Among The Following Was The First English Man To Visit W....

Q.   Find The Correctly Spelt Word

Q.   The Color Of Fluorine Is

Q.   Rashi Went  toy Shopping With Her Mother And Saw A Toy ....

Q.   The Process Partially Responsible For The Life On Earth Is

Q.   What Is The Place Of The Indian Men's Cricket Team In The La....

Q.   ....

Q.   Match The Following: 1. Nishka (i) Later Vedic Coi....

Q.   Which Fertiliser Is Made (using Coke Oven Gas) In By Product....

Q.   ....

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
  • YouTube Channel
  • Maths Fast Trick
  • 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