Linkage

1

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

A. code
B. declaration
C. prototype
D. none of the mentioned

2

What is the use of no linkage?

A. make the entity visible to other programs
B. make the entity visible to other blocks in the same program.
C. make the entity visible only to that block
D. none of the mentioned

3

To use external linkage we have to use which keyword?

A. static
B. extern
C. const
D. none of the mentioned

4

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

A. internal
B. external
C. no linkage
D. none of the mentioned

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 << number++;
7.
        return 0;
8.
    }
A. 842
B. 843
C. compile time error
D. none of the mentioned