FCS Q1. A company installs a large engineering application on a workstation. The executable occupies several gigabytes of persistent storage. When an engineer launches the application, the operating system prepares the program for execution, and its instructions and required data become available in main memory. A junior engineer asks why the processor cannot simply execute the application directly from the file as it exists on the SSD. Which explanation is most appropriate? A. The CPU can execute an application only after the entire SSD has been copied into its registers. B. The operating system converts every application instruction into a keyboard event before execution. C. The SSD stores the executable permanently, while the processor's normal instruction-execution workflow requires instructions and working data to be made available through the system's memory hierarchy. D. The SSD can store data but cannot store executable instructions. ✅ Answer: C Q2. A low-level software engineer investigates a program that reads a configuration value from a known memory location. The memory contents have been verified, but the value used by the subsequent computation is incorrect. The engineer wants to distinguish an incorrect memory read from an incorrect value being held in the CPU's memory-interface registers. Which pair of registers is most directly relevant to the conventional memory-access sequence illustrated in the course? A. Program Counter (PC) and status/flags register only. B. Stack pointer and process identifier (PID). C. Memory Address Register (MAR) and Memory Data Register (MDR). D. Instruction Set Architecture and microarchitecture. ✅ Answer: C Q3. A debugging trace shows that an arithmetic operation produces the expected value inside the CPU's execution path. However, a subsequent operation that reads the intended destination register observes its previous value. Which part of the instruction execution should the engineer investigate most directly? A. Whether the result was correctly transferred to and written into the intended destination register. B. Whether the operating system assigned a different process identifier. C. Whether the monitor displayed the correct font. D. Whether the application was installed on a larger SSD. ✅ Answer: A Q4. During a processor trace, an engineer observes that the CPU uses one register to identify where the next instruction is located and another register to hold the instruction after it has been fetched. Which interpretation is correct? A. Both registers permanently store the same instruction bytes for the entire program. B. The Program Counter stores the application's output, while the Instruction Register stores its process identifier. C. The Program Counter identifies the instruction address used by the fetch process, while the Instruction Register holds the fetched instruction for decoding and execution. D. The Instruction Register stores the next instruction's memory address, while the Program Counter stores the full instruction. ✅ Answer: C Q5. A production server runs several processes. One process is eligible to execute but is waiting for CPU time. Another process is waiting for data to arrive from a disk operation. How should the operating system classify these two processes under the process-state model? A. Both processes must be Running because they belong to the same server. B. The first process is Ready, while the second is Waiting or Blocked. C. Both processes must be Terminated because neither is currently executing. D. The first process is Waiting, while the second is Ready because disk operations are faster than CPU operations. ✅ Answer: B Q6. An administrator examines a process tree after a monitoring service starts several helper processes. The administrator needs to determine which process created a particular helper and distinguish that relationship from the helper's own unique identifier. Which information should the administrator examine? A. The helper's instruction opcode and destination register. B. The helper's stack size and heap size only. C. The helper's PID and PPID: the PID identifies the helper, while the PPID identifies its parent process. D. The helper's open-file list and CPU registers only. ✅ Answer: C Q7. A long-running analytics process maintains temporary variables for active function calls and also creates a growing collection of objects dynamically during execution. Memory diagnostics show that the dynamically created objects account for most of the increase. Which part of the process's memory organization should the engineer investigate first? A. The Program Counter, because it stores all dynamically allocated objects. B. The code/text segment, because all dynamically allocated objects are executable instructions. C. The heap, because it is used for dynamically allocated memory; the stack serves function-call information, local variables, and return addresses. D. The PID, because it expands whenever the process allocates memory. ✅ Answer: C Q8. A developer writes a command-line utility that reads a configuration file, processes its contents, and writes a report to another file. During a code review, the team discovers that the utility does not consistently close files after completing its operations. Which sequence best represents the basic file-management system-call workflow? A. Use open() to obtain access to a file, read() to retrieve data, write() to output data, and close() when finished. B. getpid() → uname() → fork() → exit() C. pipe() → socket() → wait() → exec() D. mmap() → brk() → getpid() → uname() ✅ Answer: A Q9. A monitoring application consists of two processes. One process collects diagnostic events, and the other consumes those events. Both processes run on the same machine, and the design calls for a straightforward stream of data from one process to the other. Which mechanism is the most direct candidate to investigate? A. brk(), because it schedules one process to run after another. B. uname(), because it transfers arbitrary event streams between processes. C. pipe(), because it provides an interprocess communication mechanism suitable for transferring data between connected processes. D. getpid(), because it automatically copies data from one process to another. ✅ Answer: C Q10. An application needs to access a large file through a memory-mapped region so that the file's contents can be addressed through memory operations rather than managed exclusively through repeated explicit read calls. Which system call is most directly associated with this requirement? A. wait(), because it maps a file into the process's address space. B. mmap(), because it establishes a mapping in a process's virtual address space; brk() is associated with adjusting the process's data-segment break. C. getpid(), because it creates a memory region for a process. D. uname(), because it maps files into physical memory. ✅ Answer: B Q11. A service process can read a public configuration file but receives an access-denied error when attempting to read a restricted file. The administrator suspects that the process is running with an unexpected user identity or group membership. Which part of the process information is most relevant to the investigation? A. The stack's return addresses, because they automatically override file permissions. B. The credentials associated with the process, including its user and group identity and applicable privileges. C. The process's program counter alone, because it determines the file's access permissions. D. The process's heap size alone, because larger heaps grant greater file access. ✅ Answer: B Q12. An engineering team develops a monitoring application that collects temperature readings from an industrial sensor, calculates a summary, and displays an alert on a workstation. During a design review, a developer assumes that the CPU is responsible for collecting the physical sensor reading directly, performing the calculation, and displaying the alert without involvement from other components. Which correction best represents the computer system? A. The sensor performs the calculation, RAM displays the alert, and the CPU stores the executable permanently. B. The SSD performs the calculation while the CPU only transfers the result to the display. C. Input/output components acquire and communicate data, the CPU processes instructions, memory supports active computation, and output components present the result. D. The CPU performs all input, output, storage, and processing operations without assistance from other components. ✅ Answer: C Q13. A batch-processing service starts a worker process. The worker completes its assigned task and terminates, but the parent service still needs to account for the worker's completion and ensure that its lifecycle is handled correctly. Which explanation best reflects the process-lifecycle model? A. The worker enters a terminated state; the operating system manages its process lifecycle and resource cleanup, while the parent may need to collect the child's termination status. B. The worker's PID is converted into a file descriptor and stored in the heap. C. The worker automatically becomes a new parent process whenever it completes. D. The worker remains Running indefinitely because completed work does not affect process state. ✅ Answer: A Q14. A data-engineering team is evaluating a workstation for an application that performs extensive numerical processing on large arrays. The application repeatedly performs arithmetic operations on data already available to the processor. The team wants to understand which component is directly responsible for performing these arithmetic and logical operations. Which component should the team examine first when evaluating the processor's execution capabilities? A. The SSD, because it executes the arithmetic instructions stored in application files. B. The persistent-storage controller, because it performs all arithmetic on application data. C. The display controller, because it converts numerical data into machine instructions. D. The Arithmetic Logic Unit (ALU), which performs arithmetic and logical operations as part of the CPU's execution machinery. ✅ Answer: D Q15. A company upgrades its workstation hardware but keeps the same application and operating system. The application continues to perform its business function because the software still expresses the required operations and the system provides the facilities needed to execute them. Which conclusion best captures the relationship between hardware and software? A. Hardware provides the mechanisms for computation, while software specifies the operations and behavior that the computer system carries out. B. Applications are merely stored data and do not require instructions to perform work. C. Hardware independently understands the business requirements of every application. D. Software is unnecessary once the hardware has sufficient processing capacity. ✅ Answer: A Q16. A developer writes a high-level program to calculate a monthly service charge, compare it with a threshold, and choose one of two processing paths. A systems engineer wants to explain how this high-level requirement becomes operations the processor can execute. Which sequence best represents the conceptual translation from a programmer's requirement to processor execution? A. High-level program → corresponding lower-level operations, represented through assembly and machine instructions for execution. B. Assembly language → business requirement → permanent storage → high-level program. C. Business requirement → SSD sectors → processor cache → source code. D. Machine instructions → business requirement → assembly → high-level program. ✅ Answer: A Q17. An embedded-software engineer reviews a routine that must transfer a value from one location to another without performing arithmetic on it. A colleague recommends an addition instruction because the data must move through the CPU. Which instruction category most directly matches the required operation? A. A control-flow instruction that changes the execution path. B. A data-movement instruction, such as an appropriate load, store, or move operation supported by the ISA. C. A comparison instruction that evaluates a condition. D. An arithmetic instruction that changes the numerical value. ✅ Answer: B Q18. A compiler engineer is optimizing a small routine for an embedded processor. The processor's ISA defines a limited set of general-purpose registers. The engineer wants to keep frequently used intermediate values in registers but finds that the routine needs more simultaneously live values than can be held in the available registers. Which response is most appropriate? A. Remove the instruction set and let the application choose physical register addresses directly. B. Assume that the ISA will automatically create unlimited additional architectural registers whenever required. C. Recognize the register constraint and allow the compiler or assembly implementation to manage values through register allocation and, where necessary, memory spills. D. Store all intermediate values permanently on the SSD because registers cannot hold numerical data. ✅ Answer: C Q19. A developer reviews assembly code containing a mnemonic that represents a binary comparison operation. The developer assumes that the mnemonic itself is the binary representation executed directly by the processor. Which explanation is most accurate? A. Assembly mnemonics are interpreted directly by hardware without translation or encoding. B. Every assembly mnemonic is already a complete binary machine instruction. C. An assembly mnemonic is a human-readable representation of an operation; an assembler translates it into the appropriate machine-instruction encoding. D. Machine instructions consist only of numerical data, so operation codes are unnecessary. ✅ Answer: C Q20. An embedded application compares a sensor reading against a threshold. The comparison instruction executes, but the following conditional instruction takes the wrong path. A trace shows that the comparison's result is available, but the status information used by the conditional instruction does not reflect the expected condition. Which area should the engineer investigate first? A. The SSD's capacity, because status information is stored permanently on disk. B. The monitor's refresh rate, because it determines the result of processor comparisons. C. The status or flag-register behavior associated with the comparison and the conditional instruction's interpretation of those flags. D. The executable's filename, because filenames determine comparison outcomes. ✅ Answer: C validate all the answers and make sure to tell whicof them are correct or not and
ECS 5102 · FCS
FCS Quiz1 25 questions 2026-10-28 22-07
Source: IITP\Sem-1\ECS5102-FCS\Quiz\FCS Quiz1 25 questions_2026-10-28_22-07.md