1. Which programming language is widely used for safety-critical real-time systems?
(A) C#
(B) Python
(C) Ada
(D) JavaScript
2. One of Ada’s main features for real-time systems is:
(A) Tasking and concurrency support
(B) Garbage collection only
(C) Weak typing
(D) Event-driven GUI
3. Ada’s strong typing helps in:
(A) CPU idle exclusively
(B) Detecting errors at compile-time to improve reliability
(C) Disk batch-only errors
(D) Memory-only checks
4. Real-time Java provides:
(A) Disk batch-only operations
(B) CPU idle exclusively
(C) Extensions to standard Java to support predictable timing behavior
(D) Memory-only optimization
5. The Real-time Specification for Java (RTSJ) allows:
(A) CPU idle exclusively
(B) Real-time threads, scoped memory, and asynchronous event handling
(C) Disk batch-only threads
(D) Memory-only objects
6. In Ada, the “rendezvous” mechanism is used for:
(A) Disk batch-only messaging
(B) CPU idle exclusively
(C) Task synchronization and communication
(D) Memory-only signaling
7. Real-time Java avoids unpredictable garbage collection by using:
(A) Memory-only heaps
(B) CPU idle exclusively
(C) Disk batch-only memory
(D) Scoped memory areas and immortal memory
8. Ada supports periodic tasks using:
(A) Memory-only waits
(B) CPU idle exclusively
(C) Disk batch-only timers
(D) Delay statements and protected objects
9. Real-time Java allows priority-based scheduling of:
(A) Disk batch-only threads
(B) CPU idle exclusively
(C) Real-time threads
(D) Memory-only tasks
10. Ada provides exception handling to:
(A) Memory-only failures
(B) CPU idle exclusively
(C) Disk batch-only errors
(D) Manage runtime errors predictably
11. The main advantage of Ada in real-time systems is:
(A) Reliability, safety, and strong support for concurrency
(B) CPU idle exclusively
(C) Disk batch-only operations
(D) Memory-only safety
12. RTSJ’s asynchronous event handlers are used to:
(A) CPU idle exclusively
(B) Respond to external events without blocking real-time threads
(C) Disk batch-only signals
(D) Memory-only notifications
13. Ada’s protected objects help in:
(A) Managing concurrent access to shared data safely
(B) CPU idle exclusively
(C) Disk batch-only memory
(D) Memory-only synchronization
14. Real-time Java improves predictability by:
(A) Disk batch-only operations
(B) CPU idle exclusively
(C) Minimizing unpredictable delays due to memory management and scheduling
(D) Memory-only allocation
15. Ada’s “task type” declaration is used to:
(A) CPU idle exclusively
(B) Define concurrent tasks with encapsulated behavior
(C) Disk batch-only threads
(D) Memory-only objects
16. In Real-time Java, “NoHeapRealtimeThread” ensures:
(A) Memory-only safety
(B) CPU idle exclusively
(C) Disk batch-only execution
(D) The thread does not access garbage-collected heap to avoid unpredictable pauses
17. Ada’s delay_until statement is useful for:
(A) Memory-only waits
(B) CPU idle exclusively
(C) Disk batch-only timing
(D) Implementing periodic task execution with precise timing
18. Real-time Java allows memory areas to be:
(A) Memory-only blocks
(B) CPU idle exclusively
(C) Disk batch-only allocations
(D) Scoped, immortal, or heap-based for predictable allocation
19. A key benefit of using Ada or Real-time Java is:
(A) Disk batch-only optimization
(B) CPU idle exclusively
(C) Enhanced predictability, safety, and concurrency support in real-time systems
(D) Memory-only safety
20. Both Ada and Real-time Java aim to:
(A) CPU idle exclusively
(B) Support development of reliable, predictable, and maintainable real-time applications
(C) Disk batch-only tasks
(D) Memory-only allocation