In virtual machine execution, what is the primary purpose of an interpreter?

13 views
  • Convert high-level code into hardware instructions at compile time
  • Execute instructions of a virtual machine at runtime (Correct Answer)
  • Optimize code for memory allocation
  • Generate assembly code directly from source code

Explanation

A virtual machine interpreter reads and executes bytecode or intermediate code at runtime, providing platform independence and abstraction from hardware.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs