Week 15

1 Which of the following are one of the four primary components of the Java Virtual Machine (JVM)?
1) Bytecode Interpreter
2) Compiler
3) Linker
4) Run-time stack
5) None of the above
2 Which of the following are one of the four primary components of the Java Virtual Machine (JVM)?
1) Bytecode verifier
2) Class loader
3) Exception monitor
4) Symbol table
5) None of the above
4 What exception(s) are most commonly thrown by the Java VM's class loader(s)?
1) IndexOutOfBoundsException
2) NullPointerException
3) FileNotFoundException
4) ClassNotFoundException
5) None of the above
6 The Java VM's bytecode interpreter
1) Uses a stack based machine for increased run-time efficiency.
2) Executes the bytecode instructions.
3) Performs run-time checks.
4) Optimizes constant pool lookups.
5) None of the above
9 Multiprogramming
1) Is the same as Multiprocessing.
2) Occurs when different processes share the same processor by interleaving their actions in an unpredictable order.
3) Happens when multiple processes are trying to use the same file.
4) Occurs when different processes execute on different processors at the same time.
5) None of the above
10 When using multiprogramming/multiprocessing the ordering of actions between different executions of the program
1) are always exactly the same.
2) are never exactly the same.
3) are sometimes the same.
4) are predetermined by the compiler.
5) None of the above
11 Inter-process communication can be accomplished by
1) Message passing.
2) Atomic reads/writes of data.
3) Spin locking.
4) Shared memory.
5) None of the above
12 Declaring a Java variable to be "volatile" ensures that
1) It will not be cached by threads.
2) Only the single threaded portion of a process can access it.
3) All reads and writes of the variable occur from main/shared memory.
4) The variable is allocated from heap storage.
5) None of the above
22 The Messaging Passing Interface (MPI)
1) Allows all processes to be continually active (i.e., not waiting).
2) Supports only a limited pre-defined set of data types to be sent within messages.
3) Was developed in the early 2000s.
4) Can implement mutual exclusion by passing around a special "token" that grants access to the critical section.
5) None of the above
23 Java processing threads can be created by
1) Extending the "Thread" class and overriding the "run" method.
2) Calling the "start" method defined by the "Object" class.
3) Calling the "fork" method defined by the "Object" class.
4) Implementing the "Runnable" interface and its "run" method.
5) None of the above
24 Communication between Java threads in the same JVM is typically accomplished using
1) The Message Passing Interface (MPI)
2) Semaphores
3) Spin locks
4) Shared objects (i.e., memory)
5) None of the above
25 In the Java Memory Model
1) A single heap is shared by all threads.
2) A single run-time stack is shared by all threads.
3) Each thread has its own memory cache.
4) Each thread has its own garbage collector.
5) None of the above
{"name":"Week 15", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"1 Which of the following are one of the four primary components of the Java Virtual Machine (JVM)?, 2 Which of the following are one of the four primary components of the Java Virtual Machine (JVM)?, 4 What exception(s) are most commonly thrown by the Java VM's class loader(s)?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Make your own Survey
- it's free to start.