1. Home
  2. Explore
  3. Computer Science
  4. Microsoft’s Early Beginnings

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Microsoft’s Early Beginnings

  • 128Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Origins and Memory
The software Allen and Gates hoped to develop for the Altair 8800 was an implementation of
.

128 questions

  1. 1
    The software Allen and Gates hoped to develop for the Altair 8800 was an implementation of
    _____
    .
    Hint

    It is a programming language they planned to implement for the new computer.

    Answer

    BASIC

    Explanation

    Allen and Gates sought a contract to develop an implementation of BASIC for the Altair 8800.

  2. 2
    The company that released the Altair 8800 was
    _____
    .
    Hint

    This company manufactured the Altair 8800.

    Answer

    MITS

    Explanation

    MITS released the Altair 8800 at a price that consumers could afford, creating an opportunity for Allen and Gates.

  3. 3
    Microsoft licensed its modified version of 86-DOS to IBM as
    _____
    .
    Hint

    It was the operating system Microsoft licensed to IBM after acquiring 86-DOS.

    Answer

    MS-DOS

    Explanation

    Microsoft acquired 86-DOS, modified it, and licensed it to IBM as MS-DOS.

  4. 4
    The 1985 release of Windows was a
    _____
    running on top of DOS.
    Hint

    It provided a visual way to interact with the computer rather than only using text commands.

    Answer

    graphical interface

    Explanation

    Windows first appeared as a graphical interface running on top of DOS.

  5. 5
    A unit of data consisting of 8 bits is a
    _____
    .
    Hint

    It is the standard unit made up of eight bits.

    Answer

    byte

    Explanation

    A byte consists of 8 bits and is a common unit for measuring data.

  6. 6
    In the described size convention, a 16-bit unit is a
    _____
    .
    Hint

    It is twice the size of a byte in this context.

    Answer

    word

    Explanation

    In the terminology described, a word represents 16 bits.

  7. 7
    A unit that is 2 times the size of a word is a
    _____
    .
    Hint

    It is one of the larger units formed by multiplying a word's size.

    Answer

    double word

    Explanation

    A double word is twice the size of a word.

  8. 8
    A unit that is 4 times the size of a word is a
    _____
    .
    Hint

    It is four times as large as a word.

    Answer

    quadruple word

    Explanation

    A quadruple word is four times the size of a word.

  9. 9
    Once a program has been executed and loaded into memory, it is called a
    _____
    .
    Hint

    It is the running form of a program.

    Answer

    process

    Explanation

    A program that has been executed and loaded into memory is called a process.

  10. 10
    Virtual memory constricts each process into its own
    _____
    .
    Hint

    It is the set of memory addresses available to a process.

    Answer

    address space

    Explanation

    An address space is the range of addresses a process uses to access its memory; virtual memory gives each process its own.

  11. 11
    The chunks of memory associated with applications through address translation tables are called
    _____
    .
    Hint

    These are the chunks of memory described by the tables.

    Answer

    pages

    Explanation

    Virtual memory divides memory into chunks called pages, which are associated with processes through address translation tables.

  12. 12
    When shared library pages should be copied only when a process writes to them, the page table entries specify
    _____
    .
    Hint

    This mechanism delays copying shared data until a process tries to modify it.

    Answer

    copy-on-write

    Explanation

    With copy-on-write, processes can initially share a physical page, but a writing process receives a private copy when it modifies that page.

  13. 13
    A usual memory page is
    _____
    in size.
    Hint

    This is the usual page size, equivalent to 4096 bytes.

    Answer

    4 kilobytes

    Explanation

    A standard page is usually 4096 bytes, or 4 kilobytes.

  14. 14
    Pages of 2 megabytes are called
    _____
    .
    Hint

    This page type is larger than a standard page but smaller than a giant page.

    Answer

    huge pages

    Explanation

    The system can use huge pages of 2 megabytes instead of the usual 4-kilobyte pages.

  15. 15
    Pages of 1 gigabyte are called
    _____
    .
    Hint

    This is the 1-gigabyte page type.

    Answer

    giant pages

    Explanation

    The described system can use giant pages that are 1 gigabyte in size.

  16. 16
    The virtual address translation scheme described usually uses
    _____
    of tables.
    Hint

    This is the usual number of table layers in the described arrangement.

    Answer

    four levels

    Explanation

    The described virtual address translation usually uses four levels of tables.

  17. 17
    Each memory translation table contains
    _____
    entries.
    Hint

    This is the number of entries in each table.

    Answer

    512

    Explanation

    Each table has 512 entries, with each entry pointing to a lower-level table except at the final level.

  18. 18
    The virtual address uses
    _____
    to index into each table level before the final page offset.
    Hint

    Each table index in the described scheme uses this many bits.

    Answer

    9 bits

    Explanation

    Nine bits of a virtual address index into each of the first three levels of tables.

  19. 19
    The final
    _____
    of a virtual address offset into a 4096-byte page.
    Hint

    Since 4096 is a power of two, this many bits select a byte within the page.

    Answer

    12 bits

    Explanation

    The final 12 bits of the virtual address provide the offset into a 4096-byte page.

  20. 20
    Each memory table entry is
    _____
    wide.
    Hint

    This is the bit width of an individual table entry.

    Answer

    64 bits

    Explanation

    Each entry in the described memory tables is 64 bits in size.

  21. 21
    A table of 512 entries, each 64 bits long, occupies
    _____
    .
    Hint

    Multiplying 512 entries by 8 bytes per entry gives this size.

    Answer

    4096 bytes

    Explanation

    A table with 512 entries of 64 bits each occupies 4096 bytes, the same size as a standard memory page.

  22. 22
    Pages containing Windows system code are marked with the
    _____
    so user-mode code cannot access them.
    Hint

    This page-table bit restricts access to privileged execution.

    Answer

    kernel bit

    Explanation

    The kernel bit marks mapped system pages so that they are accessible only when the CPU is in privileged mode.

  23. 23
    On x86-64, the register that points to the current instruction is
    _____
    .
    Hint

    This register tracks the current position in the instruction stream.

    Answer

    RIP

    Explanation

    RIP, the instruction pointer, points to the instruction currently being executed by a core.

  24. 24
    The execution unit that handles arithmetic operations is the
    _____
    .
    Hint

    It is the execution unit named for arithmetic and logic.

    Answer

    ALU

    Explanation

    The arithmetic logical unit handles arithmetic operations and, as its name indicates, logical operations.

  25. 25
    The CPU component responsible for handling virtual memory is the
    _____
    .
    Hint

    This CPU component is responsible for managing memory translation.

    Answer

    MMU

    Explanation

    The memory management unit handles memory operations, including virtual memory.

  26. 26
    The large CPU cache shared between all cores is the
    _____
    cache.
    Hint

    It is the higher-numbered cache level described as shared between cores.

    Answer

    L3

    Explanation

    The L3 cache is a large cache shared among all processor cores.

  27. 27
    A function's return value is often stored in the
    _____
    register.
    Hint

    This general-purpose register commonly carries a function result.

    Answer

    RAX

    Explanation

    Although registers such as RAX have no mandatory role, RAX is often used to hold a function's return value.

  28. 28
    On x86-64, accessing
    _____
    reads the first 32 bits of RAX.
    Hint

    This register name refers to the lower 32-bit portion of RAX.

    Answer

    EAX

    Explanation

    EAX accesses only the first 32 bits of the RAX register.

  29. 29
    The CPU uses
    _____
    as a bitfield for conditions and configuration.
    Hint

    This register holds status and control flags.

    Answer

    RFLAGS

    Explanation

    RFLAGS is a bitfield that records CPU conditions and configuration, including the zero flag.

  30. 30
    The sixth bit in RFLAGS is the
    _____
    ; when set after a test, it indicates a zero value.
    Hint

    It indicates whether a tested value equals zero.

    Answer

    zero flag

    Explanation

    If the zero flag is set after testing a register, the value in that register is zero.

  31. 31
    Only the
    _____
    part of RFLAGS is accessible in user mode.
    Hint

    This is the accessible portion of the flags register in user mode.

    Answer

    EFLAGS

    Explanation

    In the described system, only the EFLAGS portion of RFLAGS is accessible in user mode.

  32. 32
    The register that stores the current program's first-level translation table is
    _____
    .
    Hint

    This control register points to the top level of the current address translation tables.

    Answer

    CR3

    Explanation

    CR3 stores the first-level table used to translate the current program's virtual addresses.

  33. 33
    The individual execution contexts contained in a process are its
    _____
    .
    Hint

    These are the execution contexts that run within a process.

    Answer

    threads

    Explanation

    A process contains threads, each representing an execution context and associated CPU state.

  34. 34
    A thread's fixed-size memory area for local variables and function arguments is its
    _____
    .
    Hint

    Functions use this per-thread memory area for local data and arguments.

    Answer

    stack

    Explanation

    Each thread has a fixed-size, readable and writable stack for function arguments and local variables.

  35. 35
    The portion of a thread's stack reserved for a function is called a
    _____
    .
    Hint

    It is the function-specific region of the stack.

    Answer

    stack frame

    Explanation

    A stack frame is the portion of the thread stack reserved for a particular function.

  36. 36
    The register that points to the top of the stack is
    _____
    .
    Hint

    This register tracks the top of the stack.

    Answer

    RSP

    Explanation

    RSP is the stack pointer and points to the top of the stack.

  37. 37
    The register that points to the base of the current stack frame is
    _____
    .
    Hint

    This register tracks the base of the current function's stack frame.

    Answer

    RBP

    Explanation

    RBP is the base pointer and points to the base of the current stack frame.

  38. 38
    A program would generally use the
    _____
    rather than the fixed-size thread stack to store large data such as an image.
    Hint

    This is the alternative memory area mentioned for large data such as images.

    Answer

    heap

    Explanation

    Large data that is unsuitable for a fixed-size thread stack can instead be stored on the heap.

  39. 39
    Windows executable files use the
    _____
    format, which supports multiple architectures.
    Hint

    This executable format is abbreviated PE.

    Answer

    portable executable

    Explanation

    The portable executable format, or PE, is the format used by Windows executable files and supports multiple architectures.

  40. 40
    The small 16-bit program in a PE file that commonly prints a DOS-mode message is the
    _____
    .
    Hint

    This legacy program appears near the beginning of many PE files.

    Answer

    DOS stub

    Explanation

    The DOS stub is a small 16-bit program that can run under an old DOS system and commonly displays a message that the program cannot run in DOS mode.

  41. 41
    The first chunk of information in a PE file, containing values for locating the NT headers, is the
    _____
    .
    Hint

    It appears before the DOS stub and points toward the NT headers.

    Answer

    DOS header

    Explanation

    The DOS header is the first chunk of information in a PE file and contains values used to locate the NT headers.

  42. 42
    The NT header that stores details such as architecture is the
    _____
    .
    Hint

    It is one of the NT headers and records basic file information.

    Answer

    file header

    Explanation

    The file header contains information including the executable's architecture and creation time.

  43. 43
    The PE header that stores information such as where the code begins is the
    _____
    .
    Hint

    This NT header is important even though its name suggests otherwise.

    Answer

    optional header

    Explanation

    Despite its name, the optional header is important and includes information such as where the code begins.

  44. 44
    The PE structure that lists section names, sizes, and attributes is the
    _____
    .
    Hint

    It contains entries describing the sections in the executable.

    Answer

    section table

    Explanation

    The section table lists executable sections and records their names, sizes, and attributes.

  45. 45
    The PE section conventionally used to store executable code is
    _____
    .
    Hint

    This conventional section name is associated with program instructions.

    Answer

    .text

    Explanation

    The .text section is used to store executable code.

  46. 46
    The PE section conventionally used for writable data is
    _____
    .
    Hint

    This conventional section holds writable data.

    Answer

    .data

    Explanation

    The .data section stores data that should be writable.

  47. 47
    The PE section conventionally used for read-only data is
    _____
    .
    Hint

    The letter in this section name indicates that its data is readable but not meant to be written.

    Answer

    .rdata

    Explanation

    The .rdata section stores data that should be read-only.

  48. 48
    If code tries to write to a section marked non-writable, an
    _____
    exception occurs.
    Hint

    This exception results from trying to perform an operation that the page protections forbid.

    Answer

    access violation

    Explanation

    Writing to a non-writable section causes an access violation exception and can crash the program.

  49. 49
    The set of utilities programmers use to interact with Windows is the
    _____
    .
    Hint

    It provides programmer-facing functions for working with Windows.

    Answer

    Windows API

    Explanation

    The Windows API is a large set of utilities that programmers use to interact with the operating system.

  50. 50
    Libraries stored separately and mapped into processes when needed are called
    _____
    .
    Hint

    These separate libraries can be shared by programs at runtime.

    Answer

    dynamically linked libraries

    Explanation

    Dynamically linked libraries are stored as separate files and can be mapped into multiple processes that need them, avoiding duplicated copies in executables.

  51. 51
    The files used for dynamically linked libraries are commonly abbreviated
    _____
    .
    Hint

    This common abbreviation names Windows' dynamically loaded library files.

    Answer

    DLLs

    Explanation

    DLL is short for dynamically linked library.

  52. 52
    The legacy Windows API library retained for backwards compatibility is
    _____
    .
    Hint

    This legacy Windows API library mostly forwards functions to its modern replacement.

    Answer

    kernel32.dll

    Explanation

    kernel32.dll is the legacy version of kernelbase.dll and is retained for backwards compatibility.

  53. 53
    The modern intended replacement for kernel32.dll is
    _____
    .
    Hint

    This library is the newer version that receives many forwarded calls.

    Answer

    kernelbase.dll

    Explanation

    kernelbase.dll is the modern intended replacement for kernel32.dll.

  54. 54
    The subsystem DLL that provides functions for graphical interfaces and user input is
    _____
    .
    Hint

    This subsystem is associated with windows, graphical interfaces, and input.

    Answer

    user32

    Explanation

    The user32 subsystem DLL provides functions for managing graphical interfaces and user input.

  55. 55
    The library that contains native system call wrappers and runtime helper functions is
    _____
    .
    Hint

    This library contains system call wrappers and runtime helper functions.

    Answer

    NTDLL

    Explanation

    Many subsystem functions eventually invoke routines in NTDLL, which provides native, Zw, and runtime library functions.

  56. 56
    The
    _____
    functions in NTDLL are essentially system call wrappers.
    Hint

    This prefix identifies NTDLL's native system call wrapper functions.

    Answer

    NT

    Explanation

    NT or native functions in NTDLL are essentially system call wrappers.

  57. 57
    The
    _____
    functions implement the same system calls as their NT equivalents for certain kernel-code uses.
    Hint

    This prefix identifies the system-call variants used by kernel code in some cases.

    Answer

    Zw

    Explanation

    Zw functions implement the same system calls as their NT equivalents, but are intended for kernel code to use in certain cases.

  58. 58
    The
    _____
    functions in NTDLL are runtime helpers that may or may not perform system calls.
    Hint

    This prefix marks NTDLL's runtime library functions.

    Answer

    Rtl

    Explanation

    Rtl functions are runtime library helpers and may or may not perform system calls.

  59. 59
    Libraries such as kernel32 and user32 that expose subsets of the Windows API are called
    _____
    .
    Hint

    These libraries provide particular parts of the Windows API.

    Answer

    subsystem DLLs

    Explanation

    Subsystem DLLs expose subsets of the Windows API to user processes.

  60. 60
    The Windows component that decides when and for how long threads run is the
    _____
    .
    Hint

    This system component determines which threads run and for how long.

    Answer

    scheduler

    Explanation

    The scheduler decides when and for how long each thread should run.

  61. 61
    The scheduler is part of the Windows
    _____
    .
    Hint

    This larger Windows component group includes lower-level features such as scheduling.

    Answer

    kernel

    Explanation

    The scheduler is part of the larger group of Windows components called the kernel.

  62. 62
    The Windows kernel-mode layer containing the memory manager and object manager is the
    _____
    .
    Hint

    This higher-level kernel-mode component group includes the memory and object managers.

    Answer

    executive

    Explanation

    The executive is the higher-level part of kernel-mode Windows and contains components such as the memory manager and object manager.

  63. 63
    The lowest, hardware-specific part of Windows is the
    _____
    .
    Hint

    This layer hides architecture-specific hardware details from higher components.

    Answer

    hardware abstraction layer

    Explanation

    The hardware abstraction layer is the lowest part of Windows and provides the hardware-specific implementation that varies across architectures.

  64. 64
    Processes such as Windows Defender that generally run outside a logged-in user's context are
    _____
    .
    Hint

    These processes commonly run independently of an interactive user's session.

    Answer

    service processes

    Explanation

    Service processes generally do not execute within the context of a logged-in user; Windows Defender is an example.

  65. 65
    Fixed processes with specific system-related purposes are called
    _____
    .
    Hint

    The logon manager is an example of this category.

    Answer

    system processes

    Explanation

    System processes are fixed processes with specific system-related purposes, such as handling logins and logouts.

  66. 66
    To start a program selected by the user, explorer.exe calls
    _____
    .
    Hint

    This Windows API utility is used to start a new process.

    Answer

    CreateProcess

    Explanation

    When a user executes a program through the desktop, explorer.exe calls the Windows API function CreateProcess.

  67. 67
    The function called by CreateProcess to gather arguments and initiate the process-creation sequence is
    _____
    .
    Hint

    This internal function sets the process-creation sequence in motion.

    Answer

    CreateProcessInternalW

    Explanation

    CreateProcess itself does little; CreateProcessInternalW gathers and formats the arguments before invoking NtCreateUserProcess.

  68. 68
    The system call used to hand process creation to Windows is
    _____
    .
    Hint

    This NTDLL system call requests creation of a user process.

    Answer

    NtCreateUserProcess

    Explanation

    CreateProcessInternalW invokes NtCreateUserProcess, the system call that hands control to Windows to create the process.

  69. 69
    Most of the Windows executive and kernel code is stored in
    _____
    .
    Hint

    This file contains the main Windows executive and kernel code.

    Answer

    ntoskrnl.exe

    Explanation

    ntoskrnl.exe contains most of the Windows executive and kernel, including system call handling and the functions that process operations.

  70. 70
    The system call dispatcher in the described x64 path is named
    _____
    .
    Hint

    This dispatcher is associated with x64 system call handling.

    Answer

    KiSystemCall64

    Explanation

    KiSystemCall64 is the system call dispatcher that handles the transition and routes the request.

  71. 71
    The system call dispatcher first executes the
    _____
    instruction.
    Hint

    This assembly instruction swaps the current GS value with the kernel GS base value.

    Answer

    swapgs

    Explanation

    The dispatcher first executes swapgs to exchange the GS segment register value with the value in the IA32_KERNEL_GS_BASE model-specific register.

  72. 72
    The per-processor kernel structure pointed to through the kernel GS base is the
    _____
    .
    Hint

    This per-core structure is also known as the Processor Control Region.

    Answer

    KPCR

    Explanation

    The Processor Control Region is a per-processor kernel structure pointed to by the IA32_KERNEL_GS_BASE model-specific register.

  73. 73
    The structure contained within the KPCR is the
    _____
    .
    Hint

    This processor-specific structure is contained within the KPCR.

    Answer

    KPRCB

    Explanation

    The Processor Control Region contains another structure known as the Processor Control Block.

  74. 74
    To isolate kernel-mode execution, the system switches to a special
    _____
    .
    Hint

    This special stack is used while the CPU is in kernel mode.

    Answer

    kernel stack

    Explanation

    The system call path saves the user stack pointer and switches to a special kernel stack to isolate kernel-mode execution.

  75. 75
    The structure containing information about the SSDT is the
    _____
    .
    Hint

    The system service path consults this structure for information about the SSDT.

    Answer

    service descriptor table

    Explanation

    The service descriptor table contains information regarding the system service dispatch table.

  76. 76
    The table of offsets to system call functions, indexed by the service number, is the
    _____
    .
    Hint

    This table maps a system call number to the corresponding function offset.

    Answer

    system service dispatch table

    Explanation

    The SSDT contains offsets to the actual system call functions and is indexed by the system call number.

  77. 77
    After restoring the saved state, the system call path executes
    _____
    to return.
    Hint

    This instruction returns from a system call to user-mode execution.

    Answer

    sysret

    Explanation

    After restoring saved state and swapping GS back, the system call path executes sysret to return to user mode.

  78. 78
    The system's tracked representations of resources such as processes, files, and threads are called
    _____
    .
    Hint

    They are kernel-managed representations of resources in use.

    Answer

    Windows objects

    Explanation

    Windows objects represent resources the system tracks, such as processes, files, and threads.

  79. 79
    The executive component responsible for managing the lifetime of Windows objects is the
    _____
    .
    Hint

    This executive component handles object lifetimes.

    Answer

    object manager

    Explanation

    The object manager manages the lifetime of Windows objects and removes them when their relevant counts reach zero, unless they are permanent.

  80. 80
    The common structure at the beginning of every Windows object is its
    _____
    .
    Hint

    This structure precedes an object's type-specific information.

    Answer

    object header

    Explanation

    Every Windows object begins with an object header containing details such as reference and handle counts.

  81. 81
    A process uses a permission-bearing
    _____
    to interact with a Windows object from user mode.
    Hint

    It acts like a permission-bearing key to an object.

    Answer

    handle

    Explanation

    User-mode code opens a handle to interact with a Windows object, and the handle carries permissions for that interaction.

  82. 82
    The Windows API function used to close an unneeded handle is
    _____
    .
    Hint

    This function releases a handle that a process has finished using.

    Answer

    CloseHandle

    Explanation

    User-mode code should call CloseHandle when it is finished with a handle so the object manager can track when the object is no longer needed.

  83. 83
    Kernel code increases an object's reference count by calling
    _____
    .
    Hint

    This kernel function indicates that an object is needed by incrementing its reference count.

    Answer

    ObReferenceObject

    Explanation

    Kernel-mode code can call ObReferenceObject to increase an object's reference count.

  84. 84
    Kernel code decreases an object's reference count by calling
    _____
    .
    Hint

    This kernel function reduces the reference count when an object is no longer needed.

    Answer

    ObDereferenceObject

    Explanation

    Kernel-mode code calls ObDereferenceObject to decrease an object's reference count.

  85. 85
    The structure associated with a Windows object that describes its security information is its
    _____
    .
    Hint

    This structure associates ownership and access-control information with an object.

    Answer

    security descriptor

    Explanation

    A security descriptor stores security information about an object, including its owner and references to its access control lists.

  86. 86
    The ACL that describes what operations and users should generate audit logs is the
    _____
    .
    Hint

    This ACL controls auditing rather than ordinary access permissions.

    Answer

    SACL

    Explanation

    The system access control list specifies which operations and users should generate audit logs.

  87. 87
    The ACL that describes who has what permission over an object is the
    _____
    .
    Hint

    This ACL controls which users are allowed or denied access.

    Answer

    DACL

    Explanation

    The discretionary access control list describes who has which permissions over an object.

  88. 88
    An individual entry in an access control list that grants or denies permissions is an
    _____
    .
    Hint

    An ACL is followed by zero or more of these individual entries.

    Answer

    ACE

    Explanation

    An access control entry specifies access for a user, including whether access is allowed or denied and which permissions apply.

  89. 89
    The unique identifier used to identify an authenticated entity is a
    _____
    .
    Hint

    This identifier associates an access control entry with a particular user or other entity.

    Answer

    SID

    Explanation

    A security identifier uniquely identifies an entity that the system can authenticate.

  90. 90
    The SID component that specifies which version of the identifier is being used is the
    _____
    .
    Hint

    This first numeric component specifies the SID version.

    Answer

    revision number

    Explanation

    The revision number in an SID indicates the version of the identifier format; the described version is 1.

  91. 91
    The 48-bit SID component that identifies who issued the identifier is the
    _____
    .
    Hint

    This SID component identifies the issuing component.

    Answer

    authority

    Explanation

    The authority is a 48-bit number identifying the component that issued the SID; an authority of 5 indicates the Windows security subsystem.

  92. 92
    The SID value that usually appears last and identifies a specific entity is the
    _____
    .
    Hint

    This final identifier distinguishes an entity within the relevant group or domain.

    Answer

    relative identifier

    Explanation

    The relative identifier, or RID, usually appears last and identifies a specific entity within a subauthority.

  93. 93
    A section object that represents a file to be mapped into memory is
    _____
    .
    Hint

    This section-object type is tied to a particular file.

    Answer

    file-backed

    Explanation

    A file-backed section object represents a file that can be mapped into memory.

  94. 94
    A section object that does not represent a file and can share memory is
    _____
    .
    Hint

    This section-object type is useful for shared memory without a backing file.

    Answer

    page-backed

    Explanation

    A page-backed section object does not represent a particular file and can be used to share memory between processes.

  95. 95
    The Windows API function used to open or create a file and get its handle is
    _____
    .
    Hint

    This API function obtains a handle for working with a file.

    Answer

    CreateFile

    Explanation

    CreateFile can open or create a file and return a handle to it.

  96. 96
    A program checks the result of CreateFile against
    _____
    to detect failure.
    Hint

    This is the failure value checked for the handle returned by CreateFile.

    Answer

    INVALID_HANDLE_VALUE

    Explanation

    CreateFile indicates failure with INVALID_HANDLE_VALUE, which is defined as negative one.

  97. 97
    A program checks the result of CreateFileMappingA against
    _____
    to detect failure.
    Hint

    This is the failure value checked for the handle returned by CreateFileMappingA.

    Answer

    nullptr

    Explanation

    CreateFileMappingA indicates failure by returning a null pointer value, unlike CreateFile's invalid-handle value.

  98. 98
    A Windows API function name ending in
    _____
    denotes its regular-string variant.
    Hint

    This suffix identifies the regular-string variant of a Windows API routine.

    Answer

    A

    Explanation

    Windows API functions with an A suffix use regular strings and generally convert them to wide strings as needed.

  99. 99
    A Windows API function name ending in
    _____
    denotes its wide-string variant.
    Hint

    This suffix identifies the wide-string variant.

    Answer

    W

    Explanation

    Windows API functions with a W suffix use wide strings, which are the standard string form in modern Windows.

  100. 100
    The Windows API function that creates a file-backed section object is
    _____
    .
    Hint

    Despite its name, this function creates the section object used for file mapping.

    Answer

    CreateFileMapping

    Explanation

    CreateFileMapping creates a file-backed section object; internally, it calls NtCreateSection.

  101. 101
    The function that maps a file's pages into a process address space is
    _____
    .
    Hint

    This function makes file contents accessible through mapped memory.

    Answer

    MapViewOfFile

    Explanation

    MapViewOfFile maps the memory pages representing a file into a process's address space.

  102. 102
    The function used to write modified mapped pages back to a file is
    _____
    .
    Hint

    This function ensures changes made through a mapped view are written to the file.

    Answer

    FlushViewOfFile

    Explanation

    FlushViewOfFile writes modified mapped pages back into the file.

  103. 103
    The extra header placed before an object header to hold a specified name is the
    _____
    .
    Hint

    This additional header appears before the object header when an object is named.

    Answer

    Object Name Info Header

    Explanation

    When a Windows object has a name, an additional Object Name Info Header is placed before the object header.

  104. 104
    The executive kernel object that represents a process is the
    _____
    .
    Hint

    This is the executive object used to represent a process in the kernel.

    Answer

    EPROCESS

    Explanation

    The executive process object represents a process and points to information such as its handle table and process ID.

  105. 105
    The structure within EPROCESS that separates kernel-specific process data is the
    _____
    .
    Hint

    This structure contains the process data specifically used by the kernel.

    Answer

    KPROCESS

    Explanation

    The KPROCESS structure at the top of EPROCESS separates kernel-specific process data from data used by the executive.

  106. 106
    The permission-bearing object assigned to a login session and copied to its processes is an
    _____
    .
    Hint

    It acts like a key containing permissions for a process.

    Answer

    access token

    Explanation

    An access token carries permissions; processes started after login receive a copy of the token assigned to the user's session.

  107. 107
    The set of a process's pages currently loaded into physical memory is its
    _____
    .
    Hint

    It describes the pages of a process currently resident in physical memory.

    Answer

    working set

    Explanation

    A process's working set is the set of memory pages it currently has loaded into physical memory.

  108. 108
    The session that exists at all times for system processes is
    _____
    .
    Hint

    This persistent session is reserved for system processes.

    Answer

    session zero

    Explanation

    Session zero exists at all times for system processes.

  109. 109
    The components within a session that hold desktops and clipboard state are
    _____
    .
    Hint

    These session components contain desktops and clipboard state.

    Answer

    window stations

    Explanation

    Within a session, window stations hold desktops and the state of the clipboard.

  110. 110
    An application can request virtual memory through the Windows API function
    _____
    .
    Hint

    This API function reserves or commits a region of a process's virtual address space.

    Answer

    VirtualAlloc

    Explanation

    VirtualAlloc is the Windows API function used by applications to allocate virtual memory.

  111. 111
    The allocation flag that reserves a region without committing it is
    _____
    .
    Hint

    This allocation flag reserves address space without committing it.

    Answer

    MEM_RESERVE

    Explanation

    MEM_RESERVE reserves a memory region without charging the memory to the system; writing to it is not allowed unless it is committed.

  112. 112
    The allocation flag used to commit a memory region is
    _____
    .
    Hint

    This flag commits a region so that access does not fail merely because it is uncommitted.

    Answer

    MEM_COMMIT

    Explanation

    MEM_COMMIT charges a reserved region to the system so it can be accessed; it can be combined with MEM_RESERVE.

  113. 113
    The tree structures whose nodes describe allocated memory regions are called
    _____
    .
    Hint

    These structures record the regions allocated in a process address space.

    Answer

    virtual address descriptors

    Explanation

    Virtual address descriptors are tree nodes that describe allocated regions of a process's virtual memory.

  114. 114
    When an accessed virtual region lacks a page table entry, a
    _____
    can prompt the system to look up its allocation.
    Hint

    This exception causes the system to resolve a missing memory mapping.

    Answer

    page fault

    Explanation

    Accessing a region without an existing page table entry can cause a page fault, after which the system checks the relevant virtual address descriptor and creates an entry if the region is committed.

  115. 115
    The user-mode structure that records process details such as loaded DLLs is the
    _____
    .
    Hint

    This user-mode process structure is the counterpart to process information stored in EPROCESS.

    Answer

    PEB

    Explanation

    The Process Environment Block is a user-mode structure containing information such as loaded DLLs, the image base address, and debugging status.

  116. 116
    The user-mode information structure that every thread has separately is the
    _____
    .
    Hint

    This is the per-thread user-mode information structure.

    Answer

    TEB

    Explanation

    Each thread has its own Thread Environment Block, which stores information for user-mode code.

  117. 117
    The kernel thread structure contained within ETHREAD is the
    _____
    .
    Hint

    This structure contains thread information used by the kernel.

    Answer

    KTHREAD

    Explanation

    KeInitThread sets up the KTHREAD structure that is part of the ETHREAD object.

  118. 118
    A newly prepared thread that is ready for a core but not yet running is in the
    _____
    .
    Hint

    This state indicates readiness to run without current execution.

    Answer

    deferred ready state

    Explanation

    KeReadyThread places the initial thread in a deferred ready state, meaning it is ready for a specific core but is not yet running.

  119. 119
    The subsystem that registers newly created processes and tracks them within a session is the
    _____
    .
    Hint

    This constantly running system process tracks processes and threads within its session.

    Answer

    ClientServerRuntimeSubsystem

    Explanation

    CreateProcessInternalW sends this subsystem a message so it can register the newly created process.

  120. 120
    The protocol used to send the process-registration message is an
    _____
    .
    Hint

    This is the local inter-process communication protocol used for the registration message.

    Answer

    Advanced Local Procedure Call

    Explanation

    CreateProcessInternalW uses an Advanced Local Procedure Call to send a message to the ClientServerRuntimeSubsystem.

  121. 121
    The initial thread begins image-loader initialization in
    _____
    .
    Hint

    This NTDLL routine performs early executable and library initialization.

    Answer

    LdrInitializeThunk

    Explanation

    The initial thread begins user-mode initialization in LdrInitializeThunk, also known as the image loader.

  122. 122
    The structure pointed to by the PEB's Ldr field that records loaded DLLs is the
    _____
    .
    Hint

    This database keeps track of the process's loaded DLL modules.

    Answer

    loader database

    Explanation

    The loader database, pointed to by the Ldr field of the PEB, stores a list of DLLs loaded into the process address space.

  123. 123
    The PE table the loader parses to discover required libraries is the
    _____
    .
    Hint

    This PE table lists the executable's imported libraries and functions.

    Answer

    Import Directory Table

    Explanation

    The image loader parses the Import Directory Table to determine which libraries and functions a program needs to load.

  124. 124
    An entry in the Import Directory Table is an
    _____
    structure.
    Hint

    Each entry in the import directory describes a library and its imported functions.

    Answer

    IMAGE_IMPORT_DESCRIPTOR

    Explanation

    The Import Directory Table contains a sequence of IMAGE_IMPORT_DESCRIPTOR structures.

  125. 125
    The table that provides the names or ordinals of imported functions is the
    _____
    .
    Hint

    This table is used to find the identities of imported functions before their addresses are resolved.

    Answer

    Import Name Table

    Explanation

    The Import Name Table provides the names or ordinals of the functions imported from a library.

  126. 126
    The table whose entries are set to the resolved function addresses is the
    _____
    .
    Hint

    This table is filled with the final addresses of imported functions.

    Answer

    Import Address Table

    Explanation

    After imports are resolved, the Import Address Table entries point to the addresses of the corresponding functions.

  127. 127
    A number representing a specific function in a library is called an
    _____
    .
    Hint

    An imported function can be identified by this number instead of a name.

    Answer

    ordinal

    Explanation

    An ordinal is a number that identifies a specific function exported by a library.

  128. 128
    After initialization, the image loader calls the application's
    _____
    .
    Hint

    This is the designated starting location for the program's own code.

    Answer

    entry point

    Explanation

    After completing its initialization work, the loader calls the application's entry point.

1 of 128
Question 1 of 128

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent