Deck 2: Understanding Computer Systems and Programming Concepts

ملء الشاشة (f)
exit full mode
سؤال
Operating systems use ________, often provided by hardware manufacturers, to perform device-specific I/O operations.

A) controllers
B) device drivers
C) APIs
D) none of the above
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
From the user's point of view, plug-and-play devices that are added to the system typically are ready to use ________.

A) after restarting the computer
B) after manually configuring the operating system to identify the device
C) immediately, with little or no user interaction
D) after logging off and logging back onto the system
سؤال
Which of the following hardware components are required to execute instructions in a general-purpose computer?

A) mainboard
B) processor
C) main memory
D) all of the above
سؤال
The ________ chip, typically located on the mainboard, stores instructions for basic hardware initialization and management.

A) bootstrap
B) firmware
C) basic input/output system (BIOS)
D) device driver
سؤال
A(n) ________ is a piece of hardware that executes a set of machine-language instructions.

A) controller
B) bus
C) processor
D) motherboard
سؤال
Within a processor, the ________ loads instructions into high-speed memory (i.e., instruction registers), the ________ interprets the instructions and the ________ performs basic arithmetic and logical operations.

A) arithmetic and logic unit, instruction fetch unit, instruction decode unit
B) instruction fetch unit, arithmetic and logic unit, instruction decode unit
C) arithmetic and logic unit, instruction decode unit, instruction fetch unit
D) instruction fetch unit, instruction decode unit, arithmetic and logic unit
سؤال
Which type of memory provides the fastest data access?

A) registers
B) L1 cache
C) L2 cache
D) L3 cache
سؤال
What is the role of a computer system's clock generator?

A) It keeps track of the current date and time.
B) It provides power for the computer's internal clock.
C) It sets the frequency at which buses in the system transfer data.
D) Both a and c
سؤال
Which of the following lists memory types from highest to lowest speed?

A) secondary storage, main memory, L2 cache, registers
B) registers, L1 cache, secondary storage, main memory
C) registers, L2 cache, main memory, secondary storage
D) L1 cache, registers, main memory, secondary storage
سؤال
Data stored on ________ media (i.e., caches) vanishes when the computer is turned off, whereas ________ media (i.e., hard disks) preserve data when no power is present.

A) persistent, volatile
B) volatile, persistent
C) random-access, sequential-access
D) dynamic, static
سؤال
As manufacturers develop new memory technologies, the speed and capacity of memory tend to ________, while the cost per storage unit tends to ________.

A) increase, increase
B) increase, decrease
C) decrease, increase
D) decrease, decrease
سؤال
Why is hard disk storage much slower to access than main memory?

A) Accessing data on a hard disk requires mechanical movement of the read/write head.
B) Disks are located farther from a system's processors.
C) Disks must be access via a hardware controller.
D) all of the above
سؤال
Removable media such as CD-Rs generally have ________ capacity and ________ latency than other forms of storage such as hard disks.

A) higher, higher
B) higher, lower
C) lower, higher
D) lower, lower
سؤال
A(n) ________ is a bus that connects exactly two devices, and a(n) ________ is a bus that several devices share to perform I/O operations.

A) data bus, I/O channel
B) port, I/O channel
C) I/O channel, port
D) data bus, port
سؤال
To prevent signals from colliding on the bus, ________ prioritize(s) access to memory by I/O channels and processors.

A) a register
B) interrupts
C) the processor scheduler
D) a controller
سؤال
________ enables devices and controllers to transfer blocks of data to and from main memory directly.

A) Programmed I/O
B) Direct memory access (DMA)
C) Interrupt-driven I/O
D) Pipelining
سؤال
Which of the following devices is not considered a peripheral device?

A) printer
B) DVD drive
C) mainboard
D) hard disk drive
سؤال
Which of the following is not a serial interface?

A) USB
B) IEEE 1394 (FireWire or iLink)
C) SCSI
D) none of the above
سؤال
In what ways do processors support operating system services?

A) To create a secure system, processors often implement protection mechanisms by preventing processes from accessing privileged instructions.
B) Most processors provide mechanisms for memory protection and memory management.
C) Processors inform the operating system of events such as program execution errors and changes in device status
D) all of the above
سؤال
As computer architectures have evolved, the number of privileged instructions (i.e., those instructions not accessible in user mode) has ________.

A) increased
B) decreased
C) increased dramatically
D) remained the same
سؤال
Which of the following events would not lead to an exception being generated?

A) a hardware failure
B) a disk I/O completion
C) a logic error
D) a protection violation
سؤال
A(n) ________ periodically generates an interrupt that causes a processor to invoke the operating system.

A) clock generator
B) time-of-day clock
C) interval timer
D) none of the above
سؤال
Which of the following does not occur during bootstrapping?

A) low-level operating system components are loaded into memory
B) a login prompt is loaded
C) processor registers are initialized
D) the system prepares to run user applications
سؤال
Which of the following events does not occur when a plug-and-play device is attached to a computer?

A) The device uniquely identifies itself to the operating system.
B) The device indicates to the operating system the resources and services it requires to function properly.
C) The device identifies the driver it requires to function.
D) The device notifies the user that it is ready to use.
سؤال
A cache hit occurs when ________.

A) a referenced piece of data is present in cache memory.
B) a piece of data is removed from the cache.
C) a referenced piece of data is not present in cache memory.
D) a piece of data is placed in cache memory.
سؤال
________ improve system performance by temporarily storing data during transfers between devices or processes that operate at different speeds.

A) Caches
B) Controllers
C) Buffers
D) Registers
سؤال
Computer languages can be classified as one of three types. Which of the following is not one of these types?

A) Assembly languages
B) High-level languages
C) Microcode languages
D) Machine languages
سؤال
Specifying elementary computer operations with English-like abbreviations forms the basis of ________ languages.

A) Assembly languages
B) High-level languages
C) Mid-level languages
D) Machine languages
سؤال
Translator programs called ________ convert high-level language programs into machine language.

A) assemblers
B) compilers
C) interpreters
D) none of the above
سؤال
________ are programs that directly execute source code or code that has been reduced to low-level language but not machine code.

A) assemblers
B) compilers
C) interpreters
D) none of the above
سؤال
________, a programming language designed for teaching structured programming in academic environments, was developed by Professor Nicklaus Wirth in 1971.

A) C
B) Fortran
C) COBOL
D) Pascal
سؤال
The _______ programming language facilitated concurrent programming.

A) Fortran
B) COBOL
C) Pascal
D) Ada
سؤال
Objects have ________, such as color, size and weight; and they perform ________, such as moving, sleeping or drawing.

A) properties, actions
B) properties, attributes
C) methods, actions
D) actions, properties
سؤال
Fortran, Pascal, BASIC and C are all forms of ________.

A) concurrent programming languages
B) procedural programming languages
C) object-oriented programming languages
D) none of the above
سؤال
The Portable Operating System Interface (POSIX) is an example of a(n):

A) GUI
B) API
C) protocol suite
D) device driver
سؤال
A compiler accepts ________ code, written in a high-level language, and returns executable ________ code that contains machine-language instructions.

A) source, object
B) object, source
C) assembly, object
D) assembly, source
سؤال
What is the role of the lexical analyzer in a compiler?

A) The lexical analyzer groups tokens in a program's source code into syntactically correct statements.
B) The lexical analyzer separates the source code into tokens (e.g., keywords, identifiers, operators and punctuation).
C) The lexical analyzer converts syntactic structures into instructions.
D) The lexical analyzer attempts to optimize the efficiency of the code.
سؤال
________ is the process of integrating the various modules referenced by a program into a single executable unit.

A) Parsing
B) Loading
C) Linking
D) Compiling
سؤال
Input to the linker can include which of the following items?

A) object modules
B) load modules
C) control statements
D) all of the above
سؤال
Which of the following statements about dynamic linking is false?

A) References to external functions are not resolved until a process issues calls to the functions.
B) A dynamically linked program must be relinked when a library that is uses is modified.
C) Shared library code can be stored separately from other program code.
D) Dynamic linking saves space on secondary storage, as only a single copy of a shared library must be stored.
سؤال
________ occurs when the loader places instructions and data units at particular memory addresses.

A) Absolute loading
B) Relocatable loading
C) Memory binding
D) Address binding
سؤال
Which of the following represents a correct sequence of events to transform software written in a high-level language to an executable program?

A) compiling, linking, loading
B) linking, loading, compiling
C) linking, compiling, loading
D) compiling, loading, linking
سؤال
Firmware consists of executable instructions, written using ________ and stored in persistent memory that is attached to a particular ________.

A) microprogramming, process
B) concurrent programming, hardware device
C) microprogramming, hardware device
D) concurrent programming, process
سؤال
Which of the following is a true statement about middleware?

A) Middleware enables communication between computers in distributed systems.
B) Middleware permits applications to run on heterogeneous computer platforms.
C) Middleware simplifies application development, as developers do not need to know the implementation details of the middleware.
D) all of the above
سؤال
An ODBC driver is a piece of middleware that:

A) hides the details of connecting an application to databases of several common database formats.
B) handles retrieving information from a database as requested by an application.
C) both a and b
D) neither a nor b
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/45
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 2: Understanding Computer Systems and Programming Concepts
1
Operating systems use ________, often provided by hardware manufacturers, to perform device-specific I/O operations.

A) controllers
B) device drivers
C) APIs
D) none of the above
device drivers
2
From the user's point of view, plug-and-play devices that are added to the system typically are ready to use ________.

A) after restarting the computer
B) after manually configuring the operating system to identify the device
C) immediately, with little or no user interaction
D) after logging off and logging back onto the system
immediately, with little or no user interaction
3
Which of the following hardware components are required to execute instructions in a general-purpose computer?

A) mainboard
B) processor
C) main memory
D) all of the above
all of the above
4
The ________ chip, typically located on the mainboard, stores instructions for basic hardware initialization and management.

A) bootstrap
B) firmware
C) basic input/output system (BIOS)
D) device driver
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
5
A(n) ________ is a piece of hardware that executes a set of machine-language instructions.

A) controller
B) bus
C) processor
D) motherboard
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
6
Within a processor, the ________ loads instructions into high-speed memory (i.e., instruction registers), the ________ interprets the instructions and the ________ performs basic arithmetic and logical operations.

A) arithmetic and logic unit, instruction fetch unit, instruction decode unit
B) instruction fetch unit, arithmetic and logic unit, instruction decode unit
C) arithmetic and logic unit, instruction decode unit, instruction fetch unit
D) instruction fetch unit, instruction decode unit, arithmetic and logic unit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which type of memory provides the fastest data access?

A) registers
B) L1 cache
C) L2 cache
D) L3 cache
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
8
What is the role of a computer system's clock generator?

A) It keeps track of the current date and time.
B) It provides power for the computer's internal clock.
C) It sets the frequency at which buses in the system transfer data.
D) Both a and c
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which of the following lists memory types from highest to lowest speed?

A) secondary storage, main memory, L2 cache, registers
B) registers, L1 cache, secondary storage, main memory
C) registers, L2 cache, main memory, secondary storage
D) L1 cache, registers, main memory, secondary storage
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
10
Data stored on ________ media (i.e., caches) vanishes when the computer is turned off, whereas ________ media (i.e., hard disks) preserve data when no power is present.

A) persistent, volatile
B) volatile, persistent
C) random-access, sequential-access
D) dynamic, static
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
11
As manufacturers develop new memory technologies, the speed and capacity of memory tend to ________, while the cost per storage unit tends to ________.

A) increase, increase
B) increase, decrease
C) decrease, increase
D) decrease, decrease
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
12
Why is hard disk storage much slower to access than main memory?

A) Accessing data on a hard disk requires mechanical movement of the read/write head.
B) Disks are located farther from a system's processors.
C) Disks must be access via a hardware controller.
D) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
13
Removable media such as CD-Rs generally have ________ capacity and ________ latency than other forms of storage such as hard disks.

A) higher, higher
B) higher, lower
C) lower, higher
D) lower, lower
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
14
A(n) ________ is a bus that connects exactly two devices, and a(n) ________ is a bus that several devices share to perform I/O operations.

A) data bus, I/O channel
B) port, I/O channel
C) I/O channel, port
D) data bus, port
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
15
To prevent signals from colliding on the bus, ________ prioritize(s) access to memory by I/O channels and processors.

A) a register
B) interrupts
C) the processor scheduler
D) a controller
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
16
________ enables devices and controllers to transfer blocks of data to and from main memory directly.

A) Programmed I/O
B) Direct memory access (DMA)
C) Interrupt-driven I/O
D) Pipelining
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which of the following devices is not considered a peripheral device?

A) printer
B) DVD drive
C) mainboard
D) hard disk drive
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which of the following is not a serial interface?

A) USB
B) IEEE 1394 (FireWire or iLink)
C) SCSI
D) none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
19
In what ways do processors support operating system services?

A) To create a secure system, processors often implement protection mechanisms by preventing processes from accessing privileged instructions.
B) Most processors provide mechanisms for memory protection and memory management.
C) Processors inform the operating system of events such as program execution errors and changes in device status
D) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
20
As computer architectures have evolved, the number of privileged instructions (i.e., those instructions not accessible in user mode) has ________.

A) increased
B) decreased
C) increased dramatically
D) remained the same
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which of the following events would not lead to an exception being generated?

A) a hardware failure
B) a disk I/O completion
C) a logic error
D) a protection violation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
22
A(n) ________ periodically generates an interrupt that causes a processor to invoke the operating system.

A) clock generator
B) time-of-day clock
C) interval timer
D) none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which of the following does not occur during bootstrapping?

A) low-level operating system components are loaded into memory
B) a login prompt is loaded
C) processor registers are initialized
D) the system prepares to run user applications
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which of the following events does not occur when a plug-and-play device is attached to a computer?

A) The device uniquely identifies itself to the operating system.
B) The device indicates to the operating system the resources and services it requires to function properly.
C) The device identifies the driver it requires to function.
D) The device notifies the user that it is ready to use.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
25
A cache hit occurs when ________.

A) a referenced piece of data is present in cache memory.
B) a piece of data is removed from the cache.
C) a referenced piece of data is not present in cache memory.
D) a piece of data is placed in cache memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
26
________ improve system performance by temporarily storing data during transfers between devices or processes that operate at different speeds.

A) Caches
B) Controllers
C) Buffers
D) Registers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
27
Computer languages can be classified as one of three types. Which of the following is not one of these types?

A) Assembly languages
B) High-level languages
C) Microcode languages
D) Machine languages
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
28
Specifying elementary computer operations with English-like abbreviations forms the basis of ________ languages.

A) Assembly languages
B) High-level languages
C) Mid-level languages
D) Machine languages
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
29
Translator programs called ________ convert high-level language programs into machine language.

A) assemblers
B) compilers
C) interpreters
D) none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
30
________ are programs that directly execute source code or code that has been reduced to low-level language but not machine code.

A) assemblers
B) compilers
C) interpreters
D) none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
31
________, a programming language designed for teaching structured programming in academic environments, was developed by Professor Nicklaus Wirth in 1971.

A) C
B) Fortran
C) COBOL
D) Pascal
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
32
The _______ programming language facilitated concurrent programming.

A) Fortran
B) COBOL
C) Pascal
D) Ada
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
33
Objects have ________, such as color, size and weight; and they perform ________, such as moving, sleeping or drawing.

A) properties, actions
B) properties, attributes
C) methods, actions
D) actions, properties
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
34
Fortran, Pascal, BASIC and C are all forms of ________.

A) concurrent programming languages
B) procedural programming languages
C) object-oriented programming languages
D) none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
35
The Portable Operating System Interface (POSIX) is an example of a(n):

A) GUI
B) API
C) protocol suite
D) device driver
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
36
A compiler accepts ________ code, written in a high-level language, and returns executable ________ code that contains machine-language instructions.

A) source, object
B) object, source
C) assembly, object
D) assembly, source
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
37
What is the role of the lexical analyzer in a compiler?

A) The lexical analyzer groups tokens in a program's source code into syntactically correct statements.
B) The lexical analyzer separates the source code into tokens (e.g., keywords, identifiers, operators and punctuation).
C) The lexical analyzer converts syntactic structures into instructions.
D) The lexical analyzer attempts to optimize the efficiency of the code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
38
________ is the process of integrating the various modules referenced by a program into a single executable unit.

A) Parsing
B) Loading
C) Linking
D) Compiling
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
39
Input to the linker can include which of the following items?

A) object modules
B) load modules
C) control statements
D) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
40
Which of the following statements about dynamic linking is false?

A) References to external functions are not resolved until a process issues calls to the functions.
B) A dynamically linked program must be relinked when a library that is uses is modified.
C) Shared library code can be stored separately from other program code.
D) Dynamic linking saves space on secondary storage, as only a single copy of a shared library must be stored.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
41
________ occurs when the loader places instructions and data units at particular memory addresses.

A) Absolute loading
B) Relocatable loading
C) Memory binding
D) Address binding
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
42
Which of the following represents a correct sequence of events to transform software written in a high-level language to an executable program?

A) compiling, linking, loading
B) linking, loading, compiling
C) linking, compiling, loading
D) compiling, loading, linking
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
43
Firmware consists of executable instructions, written using ________ and stored in persistent memory that is attached to a particular ________.

A) microprogramming, process
B) concurrent programming, hardware device
C) microprogramming, hardware device
D) concurrent programming, process
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
44
Which of the following is a true statement about middleware?

A) Middleware enables communication between computers in distributed systems.
B) Middleware permits applications to run on heterogeneous computer platforms.
C) Middleware simplifies application development, as developers do not need to know the implementation details of the middleware.
D) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
45
An ODBC driver is a piece of middleware that:

A) hides the details of connecting an application to databases of several common database formats.
B) handles retrieving information from a database as requested by an application.
C) both a and b
D) neither a nor b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.