Linux Programming Interface: Chapter 6

Description

0 Computer Science Quiz on Linux Programming Interface: Chapter 6, created by Jon Schipp on 05/01/2016.
Jon Schipp
Quiz by Jon Schipp, updated more than 1 year ago
Jon Schipp
Created by Jon Schipp over 8 years ago
3
0

Resource summary

Question 1

Question
Which data segments of a process contain global and static variables?
Answer
  • initialized data segment
  • uninitialized data segment
  • stack
  • heap
  • text

Question 2

Question
Was process segment does globBuf reside in?
Answer
  • initialized data segment
  • uninitialized data segment
  • text
  • heap
  • stack

Question 3

Question
What process data segment does primes reside in?
Answer
  • initialized data segment
  • uninitialized data segment
  • text
  • heap
  • stack

Question 4

Question
In what process segment does result (depicted) reside?
Answer
  • initialized data segment
  • uninitialized data segment
  • text
  • stack
  • heap

Question 5

Question
The name for: tendency of a program to reference memory addresses that are near those that were recently accessed (because of sequential process- ing of instructions, and, sometimes, sequential processing of data structures).
Answer
  • Spatial locality
  • Temporal locality

Question 6

Question
The name for: tendency of a program to access the same memory addresses in the near future that it accessed in the recent past (because of loops).
Answer
  • Spatial locality
  • Temporal locality

Question 7

Question
argv and environ contains pointers that are terminated with NULL characters
Answer
  • True
  • False

Question 8

Question
The stack grows upward toward higher memory addresses
Answer
  • True
  • False

Question 9

Question
The heap grows upward toward higher memory addresses
Answer
  • True
  • False

Question 10

Question
Where is argv and environ located in a vertical view of a processes virtual memory space?
Answer
  • Below kernel mappings (top)
  • Above stack segment
  • Below stack segment
  • Below initialized data segment
  • Above uninitialized data segment
  • Above text segment (bottom)
Show full summary Hide full summary

Similar

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr