LINKING AND RELOCATION

LINKING AND RELOCATION

University

10 Qs

quiz-placeholder

Similar activities

The Fruitcake Special - Characters

The Fruitcake Special - Characters

University

10 Qs

MSD QUIZ-04

MSD QUIZ-04

University

15 Qs

Quiz 3

Quiz 3

University

10 Qs

The face of Internet

The face of Internet

University

10 Qs

Python Introduction

Python Introduction

6th Grade - Professional Development

7 Qs

FUNDAMENTALS OF DESIGN

FUNDAMENTALS OF DESIGN

University

10 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

Object Oriented Modeling & Design

Object Oriented Modeling & Design

University - Professional Development

10 Qs

LINKING AND RELOCATION

LINKING AND RELOCATION

Assessment

Quiz

Education

University

Medium

Created by

SHARANYANIVASINI JS

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?