Search Header Logo

LINKING AND RELOCATION

Authored by SHARANYANIVASINI JS

Education

University

Used 1+ times

LINKING AND RELOCATION
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Remember: What is the main purpose of a linker?

a. To combine source files into one
b. To convert machine code into source code
c. To perform program analysis
d. To compile code

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Remember: Which of the following is NOT a relocation type?

a. Absolute
b. PC-relative
c. Base-relative
d. Stack-relative

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Remember: Which of the following describes dynamic linking?

a. Linking at compile-time
b. Linking at load-time
c. Linking at runtime
d. Linking after program termination

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Understand: What is the difference between static linking and dynamic linking?

a. Static linking happens at runtime while dynamic linking happens at compile-time
b. Static linking combines all necessary code into one executable file while dynamic linking loads external libraries at runtime
c. Static linking only links external libraries while dynamic linking also links object files
d. Static linking is performed by the operating system while dynamic linking is performed by the compiler

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Understand: What is the purpose of a relocation table?

a. To store the names of all linked libraries
b. To store the addresses of all linked functions
c. To store the addresses of all external symbols
d. To store the addresses of all relocated sections

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Understand: What is a symbol table in a linker?

a. A table that contains information about the memory layout of a program
b. A table that maps symbols to their corresponding memory addresses
c. A table that stores the names of all linked libraries
d. A table that stores the addresses of all external symbols

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Apply: Suppose a program references a function in an external library. Which relocation type should be used to update the function's address during linking?

a. Absolute
b. PC-relative
c. Base-relative
d. Relative to the load module

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?