Browse all practice questions for the HAS 106A Army Coding Practice Exam. Search by topic, open any question and review its full explanation, then test yourself in the practice quiz.

HAS 106A Army Coding Practice Exam course image
All questions

These questions are part of the practice quiz. Start practicing

  • Which category describes wounded who are in need of surgery but whose general condition permits delay in treatment without unduly endangering life, limb, or eyesight, with sustaining treatment required?
  • Which tool is commonly used to detect memory leaks during development?
  • Who establishes procedures with local authorities when personnel die outside the installation limits?
  • Why is proper error handling important in system programming, and what pattern is commonly recommended to manage errors?
  • Which scenario demonstrates a buffer overflow and a common mitigation strategy?
  • What is the role of comments and documentation in maintaining secure and reliable code?
  • What is a memory leak and how can you detect and fix leaks?
  • Which term refers to the packet that collects all MASCAL patients before they are moved to Hospital/CSH?
  • Explain the difference between pass-by-value and pass-by-reference, with a simple C example.
  • In a Line of Duty investigation, which form is electronically completed and forwarded to the appointing authority?
  • Which term describes moving patients into, within, and out of different theaters of the geographic combatant?
  • Which system transfers patients from MCAS/BSMC or a forward Surgical Team (FST) or Forward Resuscitation and Surgical Team (FRST) to a Role 3 hospital?
  • Explain memory pool and a scenario where it might improve performance.
  • Which tool is used to determine bed availability in the hospital?
  • Which role is responsible for issuing MASCAL packets and coordinating evacuation?
  • What is the difference between shallow copy and deep copy, and when is each appropriate?
  • What steps would you take to perform a code review effectively on a peer's coding task?
  • In the Line of Duty process, to whom does the commander forward the Line of Duty for recommendation for legal sufficiency?
  • What is a sanitizer tool and how can it help during development?
  • The family tasks and responsibilities in the decedent process involve which specific actions?
  • When transferring a patient, the attending physician notifies which division?
  • Which of the following is NOT a cause of peacetime MASCAL?
  • Which category describes injuries that are relatively minor and allow the patient to care for themselves or require minimal medical care?
  • Which Valgrind option is used to report memory leaks?
  • Which board is used to track MASCAL patients from arrival to disposition?
  • Which form is used to document the death tag count per patient?
  • What letter is used as a placeholder to fill empty characters when additional digits are needed?
  • What does Big-O notation describe, and how would you analyze a nested loop with two loops each running n times?
  • Which form documents the disposition of the body?
  • What is the primary purpose of a Line of Duty investigation?
  • When replacing magic numbers, which alternatives are preferred?
  • Which form number corresponds to the Death Tags?
  • How would you design a test to ensure a function handles empty inputs correctly?
  • Who may approve a Line of Duty investigation?
  • Differentiate between a stack overflow and a heap overflow and give causes for each.
  • Which of the following is a MASCAL triage category?
  • Which function is a safer alternative to strcpy that enforces a bound on the destination buffer?
  • PAD stands for which division in the medical evacuation framework?
  • PAD duties include:
  • In loop boundary testing, what is the main reason to exercise boundary indices?
  • Which two roles coordinate, maintain, and report Bed Status for overall patient regulating determination?
  • What is the lifetime behavior of memory allocated with malloc compared to memory allocated on the stack?
  • Authorization for Autopsy uses which form?
  • Explain endianness and one practical implication when writing portable code.
  • Hospital Report of Death is documented on which form?
  • When is volatile appropriate, and what does it guarantee?
  • Decedent Affairs Responsibilities: The PAD Clerk is responsible for:
  • Which statement best describes intra-theater movement?
  • The PAD Clerk must ensure which party handles Release of Remains with the funeral home, signs Authorization of Autopsy, and receives patient belongings?
  • When testing a function that merges two sorted arrays, which set of test cases is appropriate?
  • What is the proper expression of the Arrange-Act-Assert pattern in unit testing?
  • Why was the Line of Duty and Misconduct Determination Program essential?
  • Which form number corresponds to Death Tags documentation?
  • Which triage category designates patients with minor injuries who can wait for care?
  • Which statement correctly describes the 2nd through 7th characters in coding?
  • What is a common strategy to ensure function preconditions are met at runtime?
  • What is the difference between a binary tree and a binary search tree?
  • How do you declare and use a function pointer for a comparison function in C?
  • What coordinates the movement of patients within and from theater and ensures the continuity of patient records from Role 2 through Role 4 treatment facilities?
  • Which option is NOT listed as a component of the evacuation system?
  • In the expired patient checklist contact list, which option lists all relevant roles?
  • Which statement best captures the essence of MASCAL operations as described in the material?
  • Which of the following is a function of MRO?
  • Which of the following is a factor that influences Patient Movement?
  • What is the center of operations where information is provided to the Hospital Commander?
  • Which system tracks near real-time patient care data globally and supports medical regulating, patient movement, and patient in transit visibility with a single DoD automated information system?
  • In merging sorted arrays, how should duplicates be handled?
  • Which approach is safest for parsing an integer from a string in C to avoid overflow?
  • How can you detect and fix off-by-one errors in loops?
  • Why is strcpy dangerous and what safer alternatives should you use?
  • What is the purpose of a base case in a recursive function?
  • Intra-theater medical regulating's scope?
  • What are the purposes of Medical Regulating?
  • Which design pattern helps manage dynamic memory lifecycle in C by pairing create, append, and destroy operations?
  • The PAD Clerk must ensure that the physician completes and signs all required documents.
  • Which statement best defines the role of the MRO in bed status and patient regulation?
  • What is the trade-off of using a memory pool in terms of allocation performance and memory flexibility?
  • Wartime causes of MASCAL?
  • Peacetime causes of MASCAL?
  • Which entity is responsible for signing Release of Remains with the funeral home, signing Authorization of Autopsy, and receiving patient belongings?
  • What is a null pointer dereference and how can you prevent it?
  • When completing the expired patient checklist, which personnel should be contacted?
  • According to the material, after more than how many days on active duty does a soldier lose entitlement to medical and dental care?
  • Who must sign documentation maintaining a means to track and establish accountability?
  • Who will establish procedures with local authorities when personnel die outside the installation limits?
  • Which practice helps prevent undefined behavior when accessing arrays?
  • Intra-theater medical regulating coordinates movement using assets from which groups?
  • What does Big-O notation describe in algorithm analysis?
  • How many death tags are used per death packet?
  • Which option does NOT belong on the expired patient checklist contact list?
  • Which triage category is used for patients who are unlikely to survive even with immediate care?
  • What is the difference between a macro and an inline function, and which is generally preferred for correctness?
  • What is algorithmic stability, and why might it matter for sort operations?
  • Which entity is responsible for tracking all patients evaluated, issuing MASCAL packets, and coordinating evacuation during MASCAL?
  • How many death tags per patient?
  • What is the role of the Staff Judge Advocate in Line of Duty investigations?
  • Which term describes the activity of identifying patients awaiting evacuation, locating available beds, and coordinating transportation?
  • If a function encounters an error, what is the recommended cleanup pattern before returning an error code?
  • Remains cannot be shipped from the installation without a ______.
  • The decimal point in coding is inserted after which characters?
  • Why are C strings considered dangerous, and what is a safe way to work with them?
  • Which triage category refers to patients who require immediate attention due to life-threatening injuries?
  • Which description best captures pointer arithmetic in C?
  • Which factor involves the number and location of patients by diagnostic category?
  • How can you ensure thread-safety in a multi-threaded program in C?
  • What process is used to evaluate and prioritize casualties during a mass casualty event?
  • Which sanitizer detects memory leaks at runtime?
  • What is cache-friendly data access, and how can it improve performance?
  • Which category requires attention within minutes to 2 hours on arrival to avoid death or major disability?
  • If int a[5]; reading a[5] results in which statement?
  • Where are automatic local variables defined within a function typically allocated and deallocated?
  • In C, what does undefined behavior mean when you access an array element with an index outside its valid range?
  • Which statement about binary search is true?
  • Explain the concept of time-space trade-offs with a simple example.
  • Which term describes a mass casualty event?
  • Why is direct equality comparison problematic for floating-point numbers?
  • What does aliasing mean in the context of pointers?
  • What must be done with personnel effects bags for MASCAL patients?
  • Which statement describes how MASCAL identification tagging is applied?
  • Wartime MASCALS are caused by which of the following?
  • What paperwork is processed and submitted as the Death packet during MASCAL?
  • Who is responsible for pronouncing a death and initiating the DA Form 3894?
  • Describe the lifetime of memory allocated on the heap versus the stack.
  • What packets are issued to track patients evaluated during MASCAL?
  • How would you structure a small module to encapsulate a dynamic array in C (creation, append, free)?
  • Where should death packets be stored?
  • How would you protect against null pointer returns from memory allocation functions?
  • What is the Hospital Report of Death form?
  • What happens if a recursive function lacks a base case?
  • What is a common pitfall with C preprocessor macros and how can you avoid it?
  • After electronic completion, to whom is the DA Form 2173 forwarded?
  • In C, for strtol, which statement about the end pointer is true?
  • How can you efficiently merge two unsorted arrays into a sorted array without extra memory?
  • Which is essential for protecting the interest of both the individual and the US Government?
  • Which component focuses on coordinating movement and bed availability?
  • PAD will be responsible for preparing and submitting reports to the Hospital Commander.
  • In MASCAL triage, which category indicates that treatment can be delayed without immediate risk?
  • When testing a function that accepts a pointer, what boundary case should you test?
  • Which term is used to track patient data and movement in the MASCAL workflow?
  • What is a key benefit of using inline functions over macros in C?
  • Which system uses theater resources to evacuate patients to and between MTSs within a theater of operations?
  • What issue can arise from mixed signed/unsigned comparisons in C, and how can you prevent it?
  • True/False: When notified of a deceased patient, notify all interested persons within the MTF and on the installation per local policy.
  • Which option is NOT a DIME category?
  • What term describes the dynamic process of sorting casualties to identify the priority of treatment and evacuation given the limitations of the situation, mission, and resources?
  • What is a good practice to prevent memory leaks in a test suite?
  • Which acronym describes the set of four triage categories used in a MASCAL scenario?
  • Which statement accurately describes intra-theater medical regulating?
  • What does MTF stand for in this context?
  • Which documents are collected for each patient during MASCAL, including Field Medical Card and SF 600?
  • What type of determination is given when a member's medical condition existed prior to service?
  • Disposition of Body is documented on which form?
  • Which is a valid C function signature for a comparator used by qsort?
  • How many components make up the evacuation system?
  • Who is responsible for pronouncing a death and will initiate the Hospital Report of Death?
  • How many death tags are used per death packet?
  • Which statement best describes the difference between stack memory and heap memory in C programs?
  • Which category includes injuries that overwhelm current medical resources at the expense of treating salvageable patients?
  • The informal LD investigation begins with the DA Form 2173 completed by the MTF and annotated by the unit commander as requiring a ______.
  • DIME represents four triage categories used in MASCAL. Which option lists all four categories?
  • When would you use an enum instead of a series of #define constants, and what are the benefits?
  • What is the purpose of a unit test and what are the AAA (Arrange-Act-Assert) pattern steps?
  • Which fields are typically included in a simple dynamic array structure?
  • Death Tags are documented on which form?
  • MASCAL stands for?
  • Under what condition is the Line of Duty determination finalized?
  • Which role is responsible for issuing MASCAL packets?
  • What is the purpose of establishing procedures with local authorities in the event of a death outside the installation?
  • Which role is responsible for tracking all patients evaluated during a MASCAL, issuing MASCAL packets, collecting detailed patient information (e.g., Field Medical Card, SF 600), inventorying personal effects, coordinating evacuation, and processing death packet paperwork?
  • Why is it important to run code through a linter and static analysis, and what can it catch?
  • Name three common data structures and provide one typical operation with its average time complexity.
  • When a member is voluntary absent without authority for more than 24 hours, what is he/she considered to be?
  • Explain why you should avoid using magic numbers and how to replace them safely.
  • What term describes patients who need care soon but not immediately?
  • What is the difference between intra-theater and inter-theater?
  • In a precondition validation strategy, what is typical behavior in debug vs release builds?
  • Which factor influences Patient Movement (PM)?
  • The Line of Duty investigation typically consists of the DA Form 2173 completed by which two parties and approved by which authorities?
  • Which statement best describes the first character in coding?
  • What is a format string vulnerability and how can you prevent it in C?
  • Which movement describes moving patients to higher-level care facilities beyond the initial theater?
  • If death occurs outside the limits of an installation, can the body be removed by military personnel without permission from local authorities?
  • Where should MASCAL patients be built in the facility's records system?
  • What does spatial locality refer to in cache-friendly data access?
  • In defensive programming for C, which practice helps ensure resources are not leaked when an error occurs?
  • Which party is responsible for promptly completing Section 1 of the DA Form 2173?
  • Which of the following is a PAD clerk duty?
  • Which tool is commonly used to detect memory leaks in C programs?
  • Which term describes moving patients within the theater of a combatant command or CONUS?
  • List problems associated with MASCALS.
  • What data structure is typically used to implement a breadth-first search traversal?
  • Which option correctly lists the four components of the evacuation system?
  • The Death of a USAR or ARNG soldier serving on an AD tour of 30 days or less is disabled due to disease. Which determination applies?
  • Problems associated with MASCAL?
  • The Family must complete which tasks?
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy