1Which language is directly understood by a computer's CPU?
Machine, Assembly, and High-Level Languages
Easy
A.Assembly language
B.High-level language
C.Natural language
D.Machine language
Correct Answer: Machine language
Explanation:
Machine language consists of binary instructions that the CPU can execute directly.
Incorrect! Try again.
2What symbols are commonly used to write machine language instructions?
Machine, Assembly, and High-Level Languages
Easy
A.Binary digits
B.English words
C.Flowchart shapes
D.Decimal fractions
Correct Answer: Binary digits
Explanation:
Machine language instructions are represented using binary digits, such as 0 and 1.
Incorrect! Try again.
3Which language uses short symbolic codes such as ADD and MOV?
Machine, Assembly, and High-Level Languages
Easy
A.Assembly language
B.Markup language
C.High-level language
D.Machine language
Correct Answer: Assembly language
Explanation:
Assembly language uses mnemonic codes to represent machine instructions.
Incorrect! Try again.
4Which type of language is generally easiest for humans to read and write?
Machine, Assembly, and High-Level Languages
Easy
A.Binary language
B.Machine language
C.Object language
D.High-level language
Correct Answer: High-level language
Explanation:
High-level languages use instructions that are closer to human language and mathematical notation.
Incorrect! Try again.
5Which language is most closely related to the hardware of a computer?
Machine, Assembly, and High-Level Languages
Easy
A.Query language
B.High-level language
C.Scripting language
D.Machine language
Correct Answer: Machine language
Explanation:
Machine language is made of hardware-level instructions executed by the processor.
Incorrect! Try again.
6What does a compiler translate?
Compiler, Interpreter, and Assembler
Easy
A.Printed documents
B.Machine code
C.High-level code
D.Computer hardware
Correct Answer: High-level code
Explanation:
A compiler translates a high-level program into machine code or another lower-level form.
Incorrect! Try again.
7What does an assembler translate into machine language?
Compiler, Interpreter, and Assembler
Easy
A.Natural language
B.Database records
C.High-level language
D.Assembly language
Correct Answer: Assembly language
Explanation:
An assembler converts assembly language instructions into machine language instructions.
Incorrect! Try again.
8How does an interpreter usually translate a program?
Compiler, Interpreter, and Assembler
Easy
A.One statement at a time
B.One keyboard key at a time
C.One hardware unit at a time
D.One file name at a time
Correct Answer: One statement at a time
Explanation:
An interpreter translates and executes a high-level program statement by statement.
Incorrect! Try again.
9Which translator usually produces an object or executable program before execution?
Compiler, Interpreter, and Assembler
Easy
A.Assembler
B.Compiler
C.Text editor
D.Interpreter
Correct Answer: Compiler
Explanation:
A compiler translates the complete source program before the program is executed.
Incorrect! Try again.
10Which translator is specifically used for assembly language?
Compiler, Interpreter, and Assembler
Easy
A.Assembler
B.Interpreter
C.Linker
D.Compiler
Correct Answer: Assembler
Explanation:
An assembler translates assembly language into machine language.
Incorrect! Try again.
11What is a common result when a compiler finds an error in source code?
Compiler, Interpreter, and Assembler
Easy
A.An error message
B.A printed keyboard
C.A new monitor
D.A faster processor
Correct Answer: An error message
Explanation:
A compiler reports errors so the programmer can correct the source code.
Incorrect! Try again.
12What is usually the first step in developing a computer program?
Program Development Cycle
Easy
A.Print the output
B.Install a monitor
C.Delete the source code
D.Analyze the problem
Correct Answer: Analyze the problem
Explanation:
Program development normally begins by understanding and analyzing the problem.
Incorrect! Try again.
13What is an algorithm?
Program Development Cycle
Easy
A.A storage device
B.A computer screen
C.A step-by-step solution
D.A programming error
Correct Answer: A step-by-step solution
Explanation:
An algorithm is a finite sequence of steps used to solve a problem.
Incorrect! Try again.
14Which activity involves writing instructions in a programming language?
Program Development Cycle
Easy
A.Maintenance
B.Testing
C.Documentation
D.Coding
Correct Answer: Coding
Explanation:
Coding is the process of writing the program instructions in a chosen programming language.
Incorrect! Try again.
15What is the purpose of testing a program?
Program Development Cycle
Easy
A.Find and fix errors
B.Replace the keyboard
C.Increase screen size
D.Change the power supply
Correct Answer: Find and fix errors
Explanation:
Testing checks whether a program works correctly and helps identify errors.
Incorrect! Try again.
16What is debugging?
Program Development Cycle
Easy
A.Creating user accounts
B.Printing program pages
C.Removing program errors
D.Designing computer hardware
Correct Answer: Removing program errors
Explanation:
Debugging is the process of finding and correcting errors in a program.
Incorrect! Try again.
17What is source code?
Compilation and Execution Process
Easy
A.Computer power settings
B.Final program output
C.Original program instructions
D.Stored user passwords
Correct Answer: Original program instructions
Explanation:
Source code is the program written by a programmer in a programming language.
Incorrect! Try again.
18What is the main purpose of compilation?
Compilation and Execution Process
Easy
A.Increase file font size
B.Convert code for execution
C.Create a computer network
D.Connect two printers
Correct Answer: Convert code for execution
Explanation:
Compilation converts source code into a form that the computer can execute.
Incorrect! Try again.
19What does program execution mean?
Compilation and Execution Process
Easy
A.Saving a blank file
B.Writing a program title
C.Drawing a flowchart
D.Running the program
Correct Answer: Running the program
Explanation:
Execution is the process in which the computer carries out the program instructions.
Incorrect! Try again.
20Which form of code can the CPU execute directly?
Compilation and Execution Process
Easy
A.Machine code
B.Pseudocode
C.Source code
D.Flowchart code
Correct Answer: Machine code
Explanation:
The CPU directly executes instructions represented in machine code.
Incorrect! Try again.
21A machine-code program compiled for Processor X is copied to a computer using Processor Y with a different instruction set. What is most likely required?
Machine, Assembly, and High-Level Languages
Medium
A.Load it directly because all machine code is standardized
B.Translate or recompile it for Processor Y's instruction set
C.Run the program after renaming its file extension
D.Use an assembler to convert the binary into source code
Correct Answer: Translate or recompile it for Processor Y's instruction set
Explanation:
Machine code is specific to a processor's instruction set, so code for Processor X may not be understood by Processor Y.
Incorrect! Try again.
22An assembly program contains the instruction ADD R1, R2. What does an assembler primarily do with this instruction?
Machine, Assembly, and High-Level Languages
Medium
A.Executes it repeatedly until both registers contain zero
B.Converts it into the corresponding machine opcode and operands
C.Translates it into a hardware-independent high-level statement
D.Checks whether the program meets the user's requirements
Correct Answer: Converts it into the corresponding machine opcode and operands
Explanation:
An assembler translates mnemonic instructions and symbolic operands into processor-specific machine instructions.
Incorrect! Try again.
23A team is developing a large business application that must run on several processor types. Why is a high-level language generally preferred over assembly language?
Machine, Assembly, and High-Level Languages
Medium
A.It guarantees faster execution on every processor
B.It improves portability and reduces coding effort
C.It makes source code independent of every translator
D.It exposes registers and memory addresses directly
Correct Answer: It improves portability and reduces coding effort
Explanation:
High-level languages hide many hardware details, making programs easier to develop and port between systems.
Incorrect! Try again.
24A programmer needs precise control over registers and memory while writing a device driver for one processor. Which language level is most suitable?
Machine, Assembly, and High-Level Languages
Medium
A.Assembly language for the target processor
B.A markup language for document structure
C.Machine-independent pseudocode only
D.A query language for database tables
Correct Answer: Assembly language for the target processor
Explanation:
Assembly language provides direct access to processor instructions, registers, and low-level memory operations.
Incorrect! Try again.
25A programming system reports several syntax errors before any part of a program begins running. Which translator behavior does this best illustrate?
Compiler, Interpreter, and Assembler
Medium
A.An assembler loading data into main memory
B.A compiler analyzing the source before execution
C.An interpreter executing one statement at a time
D.A linker converting mnemonics into instructions
Correct Answer: A compiler analyzing the source before execution
Explanation:
A compiler normally analyzes and translates the program before the resulting executable is run.
Incorrect! Try again.
26A developer wants to enter commands in an interactive console and see each result immediately. Which translator is most appropriate?
Compiler, Interpreter, and Assembler
Medium
A.A loader that copies executable files into memory
B.A compiler that waits until the entire project is linked
C.An assembler that replaces labels with memory addresses
D.An interpreter that processes commands as they are entered
Correct Answer: An interpreter that processes commands as they are entered
Explanation:
An interpreter can process and execute individual commands immediately, which supports interactive use.
Incorrect! Try again.
27An assembly instruction branches to a symbolic label named LOOP. How does the assembler handle LOOP?
Compiler, Interpreter, and Assembler
Medium
A.It asks the operating system to execute the label
B.It treats the label as input entered by the user
C.It resolves the label to an address or relative offset
D.It converts the label into a high-level loop statement
Correct Answer: It resolves the label to an address or relative offset
Explanation:
The assembler uses its symbol information to replace labels with addresses or branch offsets.
Incorrect! Try again.
28A source file uses processor mnemonics, symbolic labels, and directives such as .data. Which translator should process it?
Compiler, Interpreter, and Assembler
Medium
A.An assembler
B.An interpreter
C.A debugger
D.A compiler
Correct Answer: An assembler
Explanation:
Mnemonics, labels, and assembly directives are features of assembly source code, which is processed by an assembler.
Incorrect! Try again.
29A program will be executed thousands of times after it is completed. Why might compilation be preferred over repeated interpretation?
Compiler, Interpreter, and Assembler
Medium
A.The compiled executable can run without translating each statement again
B.The compiler automatically rewrites all inefficient algorithms
C.The compiled source becomes independent of operating system services
D.The compiler guarantees that the program contains no logical errors
Correct Answer: The compiled executable can run without translating each statement again
Explanation:
Compilation performs translation before execution, so the generated executable can be reused without interpreting every statement each time.
Incorrect! Try again.
30A completed payroll program calculates overtime incorrectly because the overtime rule was misunderstood at the start of the project. Which stage should be revisited first?
Program Development Cycle
Medium
A.User documentation formatting
B.Executable loading and startup
C.Program coding and translation
D.Problem analysis and requirements
Correct Answer: Problem analysis and requirements
Explanation:
The defect came from misunderstanding the required rule, so the requirements and problem analysis must be corrected first.
Incorrect! Try again.
31Before writing code, a programmer creates a flowchart and discovers that one decision path never produces an output. Which stage has revealed the problem?
Program Development Cycle
Medium
A.Executable loading
B.Machine translation
C.Program maintenance
D.Algorithm design
Correct Answer: Algorithm design
Explanation:
Flowcharts are design tools used to examine program logic before implementation begins.
Incorrect! Try again.
32A test case produces an incorrect result. The programmer traces variable values, finds a faulty condition, and corrects it. Which activity is being performed?
Program Development Cycle
Medium
A.Deployment
B.Documentation
C.Debugging
D.Requirement gathering
Correct Answer: Debugging
Explanation:
Debugging involves locating, understanding, and correcting faults that cause incorrect program behavior.
Incorrect! Try again.
33A tax application has worked correctly for two years, but it must now be updated to support new tax rates. Which stage does this work represent?
Program Development Cycle
Medium
A.First deployment
B.Algorithm design
C.Maintenance
D.Initial analysis
Correct Answer: Maintenance
Explanation:
Maintenance includes modifying an existing program to handle changed rules, environments, or user needs.
Incorrect! Try again.
34Individual modules pass their own tests, but errors occur when the modules exchange data. Which testing activity is most appropriate next?
Program Development Cycle
Medium
A.Requirements analysis
B.Integration testing
C.Source formatting
D.User training
Correct Answer: Integration testing
Explanation:
Integration testing checks whether separately tested modules interact and exchange data correctly.
Incorrect! Try again.
35A source file contains a syntax error such as a missing closing parenthesis. What is the most likely result during compilation?
Compilation and Execution Process
Medium
A.Loading continues and asks the processor to repair the source
B.Execution begins and ignores the entire affected statement
C.Linking corrects the error by adding the missing character
D.Compilation reports an error and no new executable is produced
Correct Answer: Compilation reports an error and no new executable is produced
Explanation:
A syntax error violates the language grammar, so the compiler normally stops the build before producing a usable executable.
Incorrect! Try again.
36A source file compiles successfully, but the build reports undefined reference to calculateTotal. At which stage did the problem most likely occur?
Compilation and Execution Process
Medium
A.Execution
B.Editing
C.Loading
D.Linking
Correct Answer: Linking
Explanation:
An undefined reference usually means the linker cannot find the compiled definition of a function used by the program.
Incorrect! Try again.
37What is the loader's main role after an executable has been created?
Compilation and Execution Process
Medium
A.Convert high-level statements into assembly mnemonics
B.Place the executable in memory and prepare its process
C.Combine source comments into the final documentation
D.Check the source code against the original requirements
Correct Answer: Place the executable in memory and prepare its process
Explanation:
The loader places executable code and required data in memory so that the operating system can start the program.
Incorrect! Try again.
38Which sequence correctly represents a typical compiled program's path from source code to execution?
The compiler creates object code, the linker creates an executable, and the loader places that executable in memory.
Incorrect! Try again.
39A project contains three separately compiled source files. Only one source file is changed. What is normally required to create an updated executable efficiently?
Compilation and Execution Process
Medium
A.Recompile the changed file and relink all required object files
B.Interpret the changed file while running the old executable
C.Reload the old executable without performing another link
D.Recompile every file and discard all unchanged object files
Correct Answer: Recompile the changed file and relink all required object files
Explanation:
Separate compilation allows only the changed source file to be recompiled, but the object files must be linked again.
Incorrect! Try again.
40An interpreted script prints four results and then stops when it reaches an invalid statement on line 5. Why were the first four results displayed?
Compilation and Execution Process
Medium
A.The loader converted the first four lines into assembly source
B.The compiler repaired the error after creating the executable
C.The linker removed the invalid line before the script started
D.Earlier statements were executed before the interpreter reached the error
Correct Answer: Earlier statements were executed before the interpreter reached the error
Explanation:
An interpreter commonly processes statements in sequence, so valid earlier statements may run before a later error is encountered.
Incorrect! Try again.
41A fixed-width ISA encodes a branch using a PC-relative displacement measured from the instruction following the branch. An entire code block, including both the branch and its target, is relocated by the same address offset. Assuming no instruction sizes change, what must happen to the encoded displacement?
Machine, Assembly, and High-Level Languages
Hard
A.It becomes an absolute address supplied by the program loader
B.It remains unchanged because both relevant addresses shift equally
C.It increases by the offset applied to the relocated block
D.It decreases by the offset applied to the relocated block
Correct Answer: It remains unchanged because both relevant addresses shift equally
Explanation:
The displacement is computed as . Adding the same relocation offset to both addresses leaves unchanged.
Incorrect! Try again.
42Two processors accept assembly statements written as ADD R1, R2, but their machine encodings and operand semantics differ. What is the strongest valid conclusion?
Machine, Assembly, and High-Level Languages
Hard
A.The programs are portable if both processors use fixed-width instructions
C.The machine encodings differ only in their register-numbering fields
D.The mnemonic alone does not establish binary or semantic compatibility
Correct Answer: The mnemonic alone does not establish binary or semantic compatibility
Explanation:
Assembly mnemonics are defined by a particular ISA and assembler syntax. Identical text can encode different operations or operand conventions on different systems.
Incorrect! Try again.
43A conforming high-level-language program runs on two implementations but assumes that an int has exactly 32 bits. One implementation uses 16-bit integers. Which statement best characterizes the program?
Machine, Assembly, and High-Level Languages
Hard
A.Its source may compile, but its behavior is not fully portable
B.Its source is portable because both compilers accept the syntax
C.Its behavior is portable because high-level languages hide word size
D.Its machine code is portable if both systems use binary arithmetic
Correct Answer: Its source may compile, but its behavior is not fully portable
Explanation:
Source-level validity does not guarantee behavioral portability. A program that depends on implementation-specific type widths can behave differently even when it compiles successfully.
Incorrect! Try again.
44An assembler accepts LOADIMM R1, value. For small values it emits one machine instruction, while for larger values it emits three instructions. What does this demonstrate?
Machine, Assembly, and High-Level Languages
Hard
A.High-level optimization is required before assembly can be processed
B.An assembly statement need not correspond to one machine instruction
C.Machine instructions are translated into assembly only during loading
D.Every assembly mnemonic must have one fixed binary representation
Correct Answer: An assembly statement need not correspond to one machine instruction
Explanation:
LOADIMM is functioning as a pseudo-instruction whose expansion depends on the operand. Assembly-to-machine translation is therefore not always one statement to one instruction.
Incorrect! Try again.
45A disassembler converts an executable back into assembly instructions correctly. Which original source information is generally impossible to reconstruct uniquely from the executable alone?
Machine, Assembly, and High-Level Languages
Hard
A.Constants that remain explicitly embedded in machine instructions
B.Programmer comments, macro structure, and most original symbol names
C.Control-transfer targets represented by encoded relative displacements
D.Instruction opcodes, operand fields, and encoded addressing modes
Correct Answer: Programmer comments, macro structure, and most original symbol names
Explanation:
Assembly discards comments and macro-expansion history, and stripped executables often discard symbols. Multiple source programs can therefore produce the same machine code.
Incorrect! Try again.
46An assembly source contains forward references whose instruction sizes depend on the final symbol addresses. Why is a two-pass assembler commonly useful?
Compiler, Interpreter, and Assembler
Hard
A.The first pass links libraries, and the second allocates virtual memory
B.The first pass executes macros, and the second debugs machine code
C.The first pass builds symbols, and the second resolves encodings
D.The first pass optimizes code, and the second interprets instructions
Correct Answer: The first pass builds symbols, and the second resolves encodings
Explanation:
The first pass determines addresses and constructs the symbol table. The second pass can then encode references using the resolved symbol values.
Incorrect! Try again.
47A language implementation translates source code into portable bytecode and then executes that bytecode instruction by instruction in a virtual machine. Which classification is most accurate?
Compiler, Interpreter, and Assembler
Hard
A.It is purely interpreted because no native executable is produced
B.It is assembled because bytecode is equivalent to processor machine code
C.It combines compilation to bytecode with interpretation by a VM
D.It is purely compiled because the source is translated before execution
Correct Answer: It combines compilation to bytecode with interpretation by a VM
Explanation:
Translation from source to bytecode is a compilation stage, while instruction-by-instruction VM execution is interpretation. Implementations can combine both techniques.
Incorrect! Try again.
48An optimizing compiler removes a calculation whose result is never used. Under the language's rules, the calculation has no side effects and the program has no undefined behavior. Why is the removal valid?
Compiler, Interpreter, and Assembler
Hard
A.It guarantees identical execution time on every processor
B.It preserves the program's defined observable behavior
C.It causes the interpreter to recompute the value at runtime
D.It preserves the number and order of machine instructions
Correct Answer: It preserves the program's defined observable behavior
Explanation:
A conforming optimization may change internal instructions while preserving behavior observable under the language specification. Timing and instruction count are generally not preserved.
Incorrect! Try again.
49An interpreter executes statements immediately and provides no transactional rollback. Three statements update a variable successfully, but the fourth raises a runtime error. What state should normally be expected afterward?
Compiler, Interpreter, and Assembler
Hard
A.All four statements are reversed because interpretation is atomic
B.The source is compiled again and all variables return to defaults
C.The earlier updates remain only if an assembler produced object code
D.The earlier updates remain, while the fourth statement is incomplete
Correct Answer: The earlier updates remain, while the fourth statement is incomplete
Explanation:
Without rollback semantics, effects of statements already executed remain visible. A later runtime error does not automatically undo prior state changes.
Incorrect! Try again.
50An assembler encounters a call to an external function whose address is unknown but expected to be supplied by another object file. What should a relocatable-object assembler normally emit?
Compiler, Interpreter, and Assembler
Hard
A.A runtime interpreter that searches the assembly source file
B.A random placeholder address treated as final machine code
C.A syntax error because every symbol must be locally defined
D.A symbol reference and relocation entry for later resolution
Correct Answer: A symbol reference and relocation entry for later resolution
Explanation:
The assembler records the unresolved external symbol and where its address must be patched. The linker later resolves the symbol and applies the relocation.
Incorrect! Try again.
51During acceptance testing, users reject a system described only as needing to respond "quickly." Which action best addresses the underlying development failure?
Program Development Cycle
Hard
A.Optimize random modules until users consider the application responsive
B.Move performance decisions entirely to post-deployment maintenance
C.Replace acceptance testing with unit tests that execute more rapidly
D.Define a measurable response-time requirement and revise affected artifacts
Correct Answer: Define a measurable response-time requirement and revise affected artifacts
Explanation:
The requirement is ambiguous and untestable. It should be replaced with a measurable criterion, followed by updates to design, implementation, and acceptance tests.
Incorrect! Try again.
52Two modules pass all unit tests but fail during integration because one supplies temperatures in Celsius while the other expects Fahrenheit. What is the most appropriate corrective response?
Program Development Cycle
Hard
A.Defer the mismatch until deployment reveals the preferred temperature unit
B.Increase statement coverage independently within both existing modules
C.Repeat only the original unit tests with a larger set of temperatures
D.Correct the interface contract and add tests covering unit conversion
Correct Answer: Correct the interface contract and add tests covering unit conversion
Explanation:
The defect lies in the modules' interface contract rather than their isolated calculations. The contract and implementation should be corrected, with integration or contract tests added.
Incorrect! Try again.
53A defect appears only in an optimized production build, while the unoptimized debug build passes. What is the best investigation strategy?
Program Development Cycle
Hard
A.Disable optimization permanently and classify the defect as resolved
B.Rewrite the program before comparing the two build configurations
C.Preserve the reproducer and inspect undefined behavior and build differences
D.Ignore the production result because the debug build is authoritative
Correct Answer: Preserve the reproducer and inspect undefined behavior and build differences
Explanation:
Optimization-sensitive failures often expose undefined behavior, timing assumptions, or configuration differences. A reproducible case and controlled comparison support effective diagnosis.
Incorrect! Try again.
54A throwaway prototype validates a user-interface concept and is then proposed for immediate production deployment. It lacks security analysis, scalability design, and automated tests. What is the best response?
Program Development Cycle
Hard
A.Re-enter design and implementation using validated prototype requirements
B.Deploy it unchanged because user-interface validation covers production quality
C.Add comments to the prototype and classify it as a completed product
D.Skip design and perform acceptance testing directly in production
Correct Answer: Re-enter design and implementation using validated prototype requirements
Explanation:
A throwaway prototype can validate requirements without satisfying production-quality constraints. Its lessons should inform a properly designed, implemented, and tested system.
Incorrect! Try again.
55A regulatory requirement changes after release. The project maintains links among requirements, design elements, source modules, and test cases. How should these links be used first?
Program Development Cycle
Hard
A.Run only existing tests because traceability replaces change analysis
B.Modify every source module because all implementation may be affected
C.Update the requirement document without revisiting derived artifacts
D.Perform impact analysis to identify artifacts requiring coordinated revision
Traceability identifies which design components, modules, and tests derive from the changed requirement. This supports targeted modification and regression testing.
Incorrect! Try again.
56In a conventional native-language toolchain that uses a preprocessor and textual assembly output, which sequence correctly orders the major stages?
Preprocessing transforms source directives, compilation produces assembly or equivalent intermediate output, assembly creates object code, linking creates the program image, and loading prepares it to run.
Incorrect! Try again.
57A source file contains a valid declaration for compute and calls it correctly, but no linked object or library provides its definition. What outcome is most likely?
Compilation and Execution Process
Hard
A.Execution begins, and the compiler creates the missing function dynamically
B.Preprocessing fails because declarations must include function bodies
C.Compilation succeeds, but linking reports an unresolved external symbol
D.Assembly fails because calls cannot reference external function names
Correct Answer: Compilation succeeds, but linking reports an unresolved external symbol
Explanation:
The declaration is enough for compile-time checking. The linker still needs a matching definition to resolve the external reference.
Incorrect! Try again.
58A function changes from int f(int) to double f(double). The callee is rebuilt, but a caller compiled against the old declaration is not. On a platform whose linker matches only the symbol name f, what can occur?
Compilation and Execution Process
Hard
A.Compilation of the rebuilt callee must also rebuild every caller automatically
B.Execution remains correct because all primitive arguments use one ABI format
C.Linking may succeed, but execution may violate the calling convention
D.Linking must detect the parameter and return-type mismatch automatically
Correct Answer: Linking may succeed, but execution may violate the calling convention
Explanation:
Many linkers do not encode complete type information in symbol matching. A stale caller can therefore link while passing arguments or reading return values through an incompatible ABI.
Incorrect! Try again.
59A dynamically linked executable was linked successfully, but the installed shared library lacks a required symbol version. The loader is configured for eager symbol resolution. When is failure most likely?
Compilation and Execution Process
Hard
A.During source preprocessing, before object files are generated
B.Only after the missing function returns a value to its caller
C.During program loading, before control reaches the program's entry point
D.During assembly, when mnemonics are converted into opcodes
Correct Answer: During program loading, before control reaches the program's entry point
Explanation:
With eager resolution, the dynamic loader resolves required shared-library symbols before execution begins. A missing symbol or version can prevent startup.
Incorrect! Try again.
60A compiler successfully produces an object file for ISA-A, but the linker is configured to create an executable for incompatible ISA-B. The source language is supported on both systems. What is the correct conclusion?
Compilation and Execution Process
Hard
A.The linker should reject the incompatible object architecture
B.The linker should translate ISA-A instructions into ISA-B instructions
C.The object remains usable because high-level source was architecture-neutral
D.The loader should reinterpret ISA-A object code as portable bytecode
Correct Answer: The linker should reject the incompatible object architecture
Explanation:
High-level source may be portable, but generated object code targets a specific ISA and object format. A normal linker does not recompile incompatible machine code.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →