1Which language is directly understood by a computer's CPU?
Machine, Assembly, and High-Level Languages
Easy
A.Natural language
B.Machine language
C.Assembly language
D.High-level 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.Flowchart shapes
C.English words
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.Markup language
B.High-level language
C.Assembly 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.High-level language
B.Machine language
C.Object language
D.Binary 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.Scripting language
C.Machine language
D.High-level 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.High-level code
B.Computer hardware
C.Machine code
D.Printed documents
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.Assembly language
B.Database records
C.High-level language
D.Natural 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 keyboard key at a time
B.One statement 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.Compiler
B.Interpreter
C.Assembler
D.Text editor
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.Interpreter
B.Assembler
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.A new monitor
B.A printed keyboard
C.An error message
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.Analyze the problem
C.Delete the source code
D.Install a monitor
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.Testing
B.Documentation
C.Maintenance
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.Increase screen size
B.Replace the keyboard
C.Change the power supply
D.Find and fix errors
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.Removing program errors
C.Printing program pages
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.Original program instructions
B.Stored user passwords
C.Computer power settings
D.Final program output
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.Create a computer network
B.Connect two printers
C.Increase file font size
D.Convert code for execution
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.Writing a program title
B.Drawing a flowchart
C.Running the program
D.Saving a blank file
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.Pseudocode
B.Source code
C.Flowchart code
D.Machine 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.Translate or recompile it for Processor Y's instruction set
B.Load it directly because all machine code is standardized
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 improves portability and reduces coding effort
B.It guarantees faster execution on every processor
C.It exposes registers and memory addresses directly
D.It makes source code independent of every translator
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.Machine-independent pseudocode only
B.Assembly language for the target processor
C.A query language for database tables
D.A markup language for document structure
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.A linker converting mnemonics into instructions
B.A compiler analyzing the source before execution
C.An interpreter executing one statement at a time
D.An assembler loading data into main memory
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.An interpreter that processes commands as they are entered
B.An assembler that replaces labels with memory addresses
C.A loader that copies executable files into memory
D.A compiler that waits until the entire project is linked
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 converts the label into a high-level loop statement
D.It resolves the label to an address or relative offset
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 compiler
D.A debugger
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 source becomes independent of operating system services
B.The compiler guarantees that the program contains no logical errors
C.The compiled executable can run without translating each statement again
D.The compiler automatically rewrites all inefficient algorithms
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.Executable loading and startup
B.Program coding and translation
C.Problem analysis and requirements
D.User documentation formatting
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.Algorithm design
B.Executable loading
C.Machine translation
D.Program maintenance
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.Debugging
B.Deployment
C.Documentation
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.Initial analysis
B.Algorithm design
C.First deployment
D.Maintenance
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.User training
B.Requirements analysis
C.Source formatting
D.Integration testing
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.Linking corrects the error by adding the missing character
B.Loading continues and asks the processor to repair the source
C.Compilation reports an error and no new executable is produced
D.Execution begins and ignores the entire affected statement
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.Linking
B.Execution
C.Editing
D.Loading
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.Combine source comments into the final documentation
B.Place the executable in memory and prepare its process
C.Convert high-level statements into assembly mnemonics
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.Reload the old executable without performing another link
B.Interpret the changed file while running the old executable
C.Recompile the changed file and relink all required object files
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.Earlier statements were executed before the interpreter reached the error
B.The linker removed the invalid line before the script started
C.The loader converted the first four lines into assembly source
D.The compiler repaired the error after creating the executable
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 decreases by the offset applied to the relocated block
C.It remains unchanged because both relevant addresses shift equally
D.It increases 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?
B.The programs are portable if both processors use fixed-width instructions
C.The mnemonic alone does not establish binary or semantic compatibility
D.The machine encodings differ only in their register-numbering fields
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 machine code is portable if both systems use binary arithmetic
D.Its behavior is portable because high-level languages hide word size
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.An assembly statement need not correspond to one machine instruction
B.Every assembly mnemonic must have one fixed binary representation
C.Machine instructions are translated into assembly only during loading
D.High-level optimization is required before assembly can be processed
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.Control-transfer targets represented by encoded relative displacements
B.Constants that remain explicitly embedded in machine instructions
C.Instruction opcodes, operand fields, and encoded addressing modes
D.Programmer comments, macro structure, and most original symbol names
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 optimizes code, and the second interprets instructions
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 links libraries, and the second allocates virtual memory
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 compiled because the source is translated before execution
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 interpreted because no native executable is produced
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 causes the interpreter to recompute the value at runtime
B.It preserves the program's defined observable behavior
C.It guarantees identical execution time on every processor
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.The source is compiled again and all variables return to defaults
B.The earlier updates remain only if an assembler produced object code
C.The earlier updates remain, while the fourth statement is incomplete
D.All four statements are reversed because interpretation is atomic
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 random placeholder address treated as final machine code
B.A syntax error because every symbol must be locally defined
C.A symbol reference and relocation entry for later resolution
D.A runtime interpreter that searches the assembly source file
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.Replace acceptance testing with unit tests that execute more rapidly
B.Optimize random modules until users consider the application responsive
C.Move performance decisions entirely to post-deployment maintenance
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.Repeat only the original unit tests with a larger set of temperatures
B.Increase statement coverage independently within both existing modules
C.Correct the interface contract and add tests covering unit conversion
D.Defer the mismatch until deployment reveals the preferred temperature unit
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.Ignore the production result because the debug build is authoritative
B.Preserve the reproducer and inspect undefined behavior and build differences
C.Disable optimization permanently and classify the defect as resolved
D.Rewrite the program before comparing the two build configurations
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.Skip design and perform acceptance testing directly in production
B.Re-enter design and implementation using validated prototype requirements
C.Add comments to the prototype and classify it as a completed product
D.Deploy it unchanged because user-interface validation covers production quality
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.Update the requirement document without revisiting derived artifacts
B.Perform impact analysis to identify artifacts requiring coordinated revision
C.Run only existing tests because traceability replaces change analysis
D.Modify every source module because all implementation may be affected
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.Compilation succeeds, but linking reports an unresolved external symbol
B.Assembly fails because calls cannot reference external function names
C.Preprocessing fails because declarations must include function bodies
D.Execution begins, and the compiler creates the missing function dynamically
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.Linking may succeed, but execution may violate the calling convention
B.Compilation of the rebuilt callee must also rebuild every caller automatically
C.Execution remains correct because all primitive arguments use one ABI format
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.Only after the missing function returns a value to its caller
B.During assembly, when mnemonics are converted into opcodes
C.During program loading, before control reaches the program's entry point
D.During source preprocessing, before object files are generated
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 loader should reinterpret ISA-A object code as portable bytecode
B.The linker should reject the incompatible object architecture
C.The object remains usable because high-level source was architecture-neutral
D.The linker should translate ISA-A instructions into ISA-B instructions
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 →