Computer Programming for Engineers

Chapter 14
Cybersecurity, Ethics, Governance, and Future Practice

Bachelors Program in Mechnical Engineering
Computer Programming for Engineers   •   Bachelor

Cybersecurity, Ethics, Governance, and Future Practice

Introduction and Context

Mechanical engineers increasingly design and operate computational systems: computer-controlled manufacturing equipment, autonomous vehicles, digital twins, sensor networks, robotic cells, energy-management systems, and software used in safety-critical analysis. Programming is therefore not only a technical activity. It is also a professional practice governed by duties concerning safety, privacy, security, fairness, intellectual property, environmental impact, and accountability.

A program can be syntactically correct yet professionally unacceptable. For example, software may expose personal data, use an incompatible open-source licence, produce an unsafe control command, conceal uncertainty, or make decisions that cannot be audited. Engineers must consequently evaluate both what a computational system does and the conditions under which it is designed, deployed, maintained, and retired.

Cybersecurity protects the confidentiality, integrity, and availability of information and systems. Ethics addresses what ought to be done, including duties to people who may be affected by engineering decisions. Governance establishes authority, rules, controls, documentation, and processes for responsible decision-making. These areas overlap but are not identical. A system can be secure but unfair, legally compliant but unsafe, or innovative but impossible to audit.

This chapter develops a practical framework for responsible programming in mechanical engineering. It considers privacy, cybersecurity, intellectual property, open-source software, algorithmic accountability, sustainability, safety, standards, model governance, generative artificial intelligence, autonomous engineering, and professional responsibility.

Learning Objectives

By the end of this chapter, you should be able to:

  1. Explain why cybersecurity, ethics, and governance are engineering concerns rather than merely administrative issues.
  2. Apply confidentiality, integrity, and availability principles to engineering software and cyber-physical systems.
  3. Distinguish privacy, intellectual property, copyright, patents, trade secrets, and software licences.
  4. Evaluate algorithmic systems using accountability, transparency, validity, fairness, and human-oversight criteria.
  5. Relate software development to safety engineering, standards, sustainability, and professional codes.
  6. Assess risks and controls in generative AI, autonomous systems, and computational models.
  7. Recommend responsible practices for designing, deploying, monitoring, and retiring engineering software.

1. A Responsible-Engineering View of Software

Traditional engineering emphasizes requirements, verification, validation, risk reduction, traceability, and responsibility for consequences. These principles also apply to programs. A script that calculates a stress value, a controller that regulates a motor, and a machine-learning model that predicts component failure all require a defined purpose, suitable data, documented assumptions, testing, and controlled use.

A useful distinction is between technical correctness and fitness for purpose. Technical correctness asks whether the code implements its stated algorithm. Fitness for purpose asks whether the algorithm, inputs, assumptions, outputs, and operating conditions are appropriate. For example, a function may correctly interpolate temperature data while being unsuitable for extrapolating beyond the calibrated range.

Responsible software practice can be viewed as a lifecycle:

  1. Purpose and requirements: Identify stakeholders, intended use, unacceptable uses, hazards, legal constraints, and performance requirements.
  2. Design: Select architectures, data structures, algorithms, interfaces, security controls, and human-oversight mechanisms.
  3. Implementation: Apply coding standards, version control, review, dependency management, and secure development practices.
  4. Verification and validation: Test code and evaluate whether the complete system satisfies real engineering needs.
  5. Deployment: Control configuration, access, training, operational limits, and incident response.
  6. Monitoring and maintenance: Detect drift, vulnerabilities, misuse, performance degradation, and changing legal or safety conditions.
  7. Retirement: Preserve required records, revoke access, remove data appropriately, and document lessons learned.

Governance makes these activities repeatable and assigns decision rights. It answers questions such as: Who may approve a model for production? Who owns the training data? Who can stop an unsafe automated process? What evidence is required before deployment? Who is notified after a cybersecurity incident?

2. Cybersecurity for Engineering Systems

2.1 The CIA triad

The foundational cybersecurity objectives are:

  • Confidentiality: Information is disclosed only to authorized people or systems.
  • Integrity: Information and computation remain accurate, complete, and protected from unauthorized alteration.
  • Availability: Authorized users can access systems and information when needed.

In mechanical engineering, confidentiality may protect proprietary CAD files, production recipes, test data, or personal information. Integrity is essential when a changed parameter could cause a robot collision or invalidate a fatigue analysis. Availability matters when a manufacturing line, monitoring platform, or emergency shutdown system must operate continuously.

Cybersecurity risk is often described conceptually as a combination of threat, vulnerability, exposure, and consequence. A simple qualitative model is:

Risk ≈ Likelihood × Consequence

Likelihood represents the estimated chance of an adverse event under stated conditions, and consequence represents the severity of its effects. This expression is a decision aid, not a universal physical law. Ratings must be defined consistently, and risks involving safety or human rights should not be reduced to a single numerical score without expert judgment.

2.2 Threats and vulnerabilities

A threat is a potential cause of harm, such as malware, an insider, a supply-chain compromise, or accidental misuse. A vulnerability is a weakness that can be exploited or can contribute to failure. Examples include default passwords, unpatched libraries, excessive privileges, insecure application programming interfaces, exposed industrial protocols, and inadequate backup procedures.

Engineering environments present special challenges. Operational technology may include legacy controllers that cannot easily be patched. A production interruption can create pressure to bypass authentication or change-control procedures. Sensors may be physically accessible, while embedded devices may have limited memory for security functions. Safety and cybersecurity can also interact: a security control that delays an emergency response may create a new hazard if poorly designed.

2.3 Controls and secure programming

Important controls include:

  • Asset inventory: Record hardware, software, data, owners, versions, and dependencies.
  • Least privilege: Give each user, process, and service only the permissions required for its task.
  • Strong authentication: Use unique accounts, secure credential storage, and multi-factor authentication where appropriate.
  • Input validation: Check type, range, units, format, and plausibility before using external input.
  • Secure updates: Verify software provenance, test patches, and maintain rollback procedures.
  • Logging and monitoring: Record significant events without exposing unnecessary sensitive data.
  • Backups and recovery: Maintain tested, protected backups and define recovery priorities.
  • Segmentation: Separate business networks, engineering workstations, laboratory devices, and operational control networks according to risk.
  • Secure failure behavior: Define what the system should do when data, communication, power, or computation is unavailable.

A secure program should not silently accept invalid physical values. If a pressure sensor is specified to operate between 0 and 10 MPa, an input of 500 MPa should trigger validation or a controlled diagnostic response rather than being treated as ordinary data. Validation thresholds must be based on sensor specifications, process physics, and operating procedures, not arbitrary guesses.

2.4 Incident response

No practical system is risk-free. Incident response should identify preparation, detection, containment, eradication, recovery, and lessons learned. Engineers should preserve relevant logs, avoid destroying evidence, communicate through defined channels, and prioritize safety. A suspected compromise of a machine controller may require isolating the affected network while maintaining safe physical operation. The correct response depends on the system’s hazard analysis and emergency procedures.

3. Privacy and Data Stewardship

Privacy concerns the appropriate collection, use, disclosure, retention, and deletion of information about identifiable people. Engineering projects may process employee performance data, biometric access records, vehicle location, video from factories, maintenance histories linked to technicians, or customer usage data.

Responsible data stewardship follows several principles:

  1. Purpose limitation: Collect data for a defined legitimate purpose.
  2. Data minimization: Collect only what is necessary.
  3. Accuracy: Correct errors that could affect people or engineering decisions.
  4. Security: Protect data against unauthorized access, alteration, and loss.
  5. Retention limitation: Keep data only as long as justified.
  6. Transparency: Explain what is collected, why it is used, and with whom it is shared.
  7. Accountability: Assign an owner and preserve evidence of compliance.

Anonymization attempts to remove links to individuals, whereas pseudonymization replaces direct identifiers with codes but may remain reversible. Neither should be assumed effective without assessing re-identification risk, especially when datasets can be combined.

Privacy is not solved merely by removing names. A dataset containing precise time, location, machine, and operator information may identify individuals through indirect attributes. Engineers should also consider function creep, in which data collected for maintenance is later used for employee evaluation without adequate notice or justification.

4. Intellectual Property and Open-Source Licensing

Software and engineering data can embody substantial intellectual and commercial value. Relevant forms of protection include:

  • Copyright: Protects original expression, including source code and documentation, subject to applicable law.
  • Patent: May protect qualifying inventions, including certain technical methods or systems, under jurisdiction-specific requirements.
  • Trade secret: Protects confidential information that has commercial value because it is secret and is subject to reasonable protective measures.
  • Trademark: Identifies goods, services, or organizational sources.
  • Contractual rights: Define ownership, permitted use, confidentiality, and responsibilities between parties.

Engineers must distinguish ownership from permission to use. An employer or client may own code created under a contract, but a developer may still be bound by third-party licence conditions. Copying code from an online forum, repository, or generative AI tool does not establish that it is legally safe to incorporate.

4.1 Open-source software

Open-source software is licensed for use, study, modification, and redistribution under defined terms. “Open source” does not mean “without conditions” or “without attribution.” Licences differ substantially. Some permissive licences generally allow reuse with notices and disclaimers. Some reciprocal or copyleft licences may require specified source-code availability or licensing conditions when software is distributed in particular forms.

A responsible engineering team should:

  • maintain a software bill of materials;
  • record component versions and licences;
  • review compatibility between project and dependency licences;
  • preserve copyright and attribution notices;
  • monitor vulnerabilities and abandoned dependencies;
  • obtain legal advice for distribution questions;
  • avoid incorporating code of uncertain provenance into safety-critical products.

Licence interpretation depends on the exact licence text, use pattern, distribution model, and jurisdiction. Engineers should not treat a short internet summary as a substitute for legal review.

5. Algorithmic Accountability

An algorithm is accountable when its purpose, inputs, assumptions, operation, limitations, decisions, and responsible owners can be examined and challenged. Accountability is broader than explainability. A technically understandable model can still be invalid, unfair, insecure, or deployed without a responsible decision-maker.

A practical accountability assessment asks:

  • What decision or prediction does the system support?
  • Who may be affected, directly or indirectly?
  • Are the data representative of the intended operating conditions?
  • Are labels and measurements reliable?
  • What error types matter most?
  • Can a human review or override the output?
  • Is performance monitored after deployment?
  • Can the decision be reconstructed from preserved records?
  • Is there a process for correction, appeal, and incident reporting?

5.1 Validity and uncertainty

A model should be evaluated against an appropriate reference or ground truth. Accuracy alone can be misleading when error costs differ. For a binary classifier, a confusion matrix distinguishes true positives, true negatives, false positives, and false negatives. For example, in predictive maintenance, a false negative may allow a dangerous fault to continue, while a false positive may cause an unnecessary inspection.

The engineering meaning of an error depends on context. A model trained on one alloy, climate, machine population, or load spectrum may not generalize to another. Data leakage, distribution shift, sensor recalibration, and changing operating practices can degrade performance. Reported confidence should reflect uncertainty rather than imply certainty that the evidence does not support.

5.2 Fairness and human judgment

Fairness is context-dependent. A system that allocates maintenance resources, evaluates workers, or approves access may affect groups differently. Engineers should identify relevant protected or vulnerable groups, examine disparate error patterns, and avoid using sensitive attributes or proxies without justification. Removing a protected attribute does not necessarily remove bias because other variables may encode it.

Human oversight must be meaningful. A person who merely approves every automated recommendation without time, expertise, or authority to disagree is not effective oversight. The operator needs understandable alerts, access to relevant evidence, training, and a clearly defined escalation path.

6. Safety, Standards, and Professional Responsibility

Safety engineering seeks to reduce the probability and severity of harm. Software contributes to hazards through incorrect calculations, timing failures, interface errors, corrupted data, unsafe defaults, and uncontrolled updates. A safety case should connect claims about safety to evidence such as requirements, hazard analyses, tests, reviews, and operational controls.

Several practices are especially important:

  • define safe operating limits and interlocks;
  • separate safety functions from convenience functions where appropriate;
  • analyze single-point and common-cause failures;
  • test abnormal and boundary conditions;
  • verify units, coordinate systems, sign conventions, and numerical precision;
  • control configuration and calibration data;
  • document residual risk and operating assumptions;
  • provide emergency stop and recovery procedures;
  • ensure that cybersecurity changes do not undermine safety.

Standards provide shared terminology, process expectations, and evidence requirements. Depending on the application, engineers may encounter standards for functional safety, information security, industrial automation, software quality, risk management, data protection, or AI management. Standards are not automatically laws, and compliance with a standard does not guarantee that every ethical or safety concern has been resolved. Their applicability depends on the system, jurisdiction, sector, contractual obligations, and edition of the standard.

Professional responsibility includes competence, honesty, impartiality, respect for confidentiality, and protection of public welfare. Engineers should disclose limitations, refuse to falsify results, report serious hazards, and seek specialist advice when a problem exceeds their competence. Loyalty to an employer does not eliminate the duty to protect the public.

7. Sustainability and Computational Practice

Computational systems have environmental impacts through manufacturing, electricity consumption, cooling, network infrastructure, e-waste, and the extraction of materials. Sustainability analysis should consider the entire lifecycle rather than only the runtime of a program.

Useful measures include energy per simulation, carbon intensity of electricity, hardware utilization, equipment lifetime, repairability, and avoided physical resource use. A computational model may reduce prototypes and material waste, but it may also encourage excessive computation or require energy-intensive training. The appropriate design question is not simply “Is digital technology efficient?” but “Compared with which alternative, over what lifecycle, and with what uncertainties?”

Sustainable programming practices include selecting efficient algorithms, avoiding unnecessary data movement, reducing redundant simulations, reusing validated models, scheduling computation when lower-carbon electricity is available where feasible, extending hardware life, and designing data-retention policies. Efficiency must not compromise safety, reproducibility, security, or required accuracy.

8. Governance of Models and Digital Twins

A computational model is a representation of a system used for analysis, prediction, control, or decision support. A digital twin generally links a model with data from a particular physical asset or process over time. Governance is needed because models can influence engineering decisions even when they are not autonomous.

Model governance should establish:

  • an identified owner and intended use;
  • model version, data sources, and assumptions;
  • verification of implementation against specifications;
  • validation against suitable physical or experimental evidence;
  • calibration and uncertainty characterization;
  • acceptance criteria and operating limits;
  • change-control procedures;
  • monitoring for drift and anomalous behavior;
  • independent review for high-consequence applications;
  • retirement criteria and archival records.

Verification asks, “Was the model implemented correctly?” Validation asks, “Is the model suitable for representing the intended real-world system?” A model can be verified but invalid for a particular purpose. For instance, a computational fluid-dynamics model may be correctly implemented but unsuitable if its turbulence assumptions do not represent the operating regime.

Model uncertainty includes uncertainty in parameters, measurements, boundary conditions, model form, and numerical approximation. Engineers should communicate uncertainty in a way decision-makers can understand and should avoid presenting a single predicted value as a guaranteed outcome.

9. Generative AI and Autonomous Engineering

Generative AI systems can produce text, code, images, designs, summaries, and recommendations. They may assist with documentation, exploratory programming, test generation, code translation, or design-space exploration. However, generated output may contain fabricated references, insecure code, hidden bias, licence concerns, incorrect units, or plausible but invalid engineering claims.

A responsible workflow treats generated output as an untrusted draft:

  1. Define the task and prohibit inappropriate disclosure of confidential or personal data.
  2. Use approved tools and record relevant prompts, model versions, and outputs where traceability matters.
  3. Review generated code for correctness, security, licensing, efficiency, and maintainability.
  4. Test against known cases, boundary conditions, and independent calculations.
  5. Require qualified human approval before safety-critical or externally consequential use.
  6. Preserve authorship and disclose AI assistance where policy or professional integrity requires it.
  7. Monitor model updates and changing tool behavior.

Autonomous engineering systems sense, decide, and act with limited direct human intervention. Examples include mobile robots, autonomous inspection platforms, adaptive process controllers, and algorithmic design systems. Autonomy should be decomposed into functions and authority levels. A system may autonomously detect an anomaly but require human approval to change a control limit.

Critical questions include: What happens when sensors disagree? How does the system detect that it is outside its design domain? Can it transition to a safe state? Who is authorized to intervene? Can actions be reconstructed? How are software updates tested? Responsibility must not be obscured by describing an outcome as “the AI’s decision.” Organizations and named professionals retain governance duties.

10. An Integrated Decision Framework

When evaluating a proposed computational application, engineers can use the following sequence:

Define: State the purpose, users, affected parties, operating domain, and unacceptable uses.

Identify: List assets, hazards, threats, privacy concerns, intellectual-property constraints, environmental impacts, and relevant standards.

Assess: Estimate likelihood and consequence, examine uncertainty, evaluate alternatives, and identify who bears the risks and benefits.

Control: Apply technical controls, process controls, access restrictions, human oversight, documentation, and fallback procedures.

Verify and validate: Test implementation and suitability using representative data, physical evidence, simulations, fault injection, and independent review as appropriate.

Authorize: Assign an accountable owner and define evidence required for deployment.

Monitor: Track performance, incidents, security alerts, drift, complaints, energy use, and changes in the operating environment.

Learn and retire: Correct defects, communicate incidents, update controls, and retire systems whose risks or assumptions are no longer acceptable.

This framework is proportional: a classroom script and an autonomous pressure-control system do not require identical controls. Nevertheless, both should have a clear purpose, honest documentation, and appropriate testing.

Case Study: Predictive Maintenance in a Robotic Manufacturing Cell

The following is an illustrative case.

Background

A manufacturer proposes a Python-based predictive-maintenance system for robotic welding cells. Vibration and motor-current data are collected to predict bearing failure. The system will recommend inspection dates and may eventually stop a cell automatically.

Problem

An initial prototype reports high prediction accuracy using historical data from one factory. However, operators discover that the training data include maintenance records entered after failures occurred. The model also uses operator identifiers and shift information. A proposed cloud deployment would transmit raw sensor data and logs to a third-party service.

Analysis

The project presents several risks:

  • Data leakage: Post-failure records may reveal the answer that would not be available at prediction time.
  • Generalization risk: One factory’s machines and operating conditions may not represent other cells.
  • Privacy risk: Operator identifiers and shift patterns may support inappropriate worker surveillance.
  • Cybersecurity risk: Cloud transmission and remote access create additional attack surfaces.
  • Safety risk: An incorrect automatic stop could create hazards or production instability; failure to stop could permit equipment damage.
  • Governance risk: No clear owner is assigned for approving model updates.
  • Intellectual-property risk: The prototype includes an external library whose licence and vulnerability status have not been reviewed.

Approach and solution

The team first defines the system as decision support rather than automatic control. It removes unnecessary operator identifiers, documents the lawful and operational purpose of collected data, and restricts access. Data are split by time and machine so that evaluation better reflects future deployment rather than randomly mixing highly similar records. The team establishes a baseline based on scheduled maintenance and compares the model with that baseline.

Engineers verify sensor calibration, document units and sampling rates, and test missing, delayed, and contradictory sensor values. They evaluate false negatives separately from false positives because the consequences differ. A conservative rule requires human inspection before a shutdown recommendation. A physically independent safety system remains responsible for emergency protection.

The software bill of materials is reviewed, dependencies are pinned and scanned, and network access is segmented. Model approval requires evidence of validation on representative cells, an operating-domain statement, a rollback version, and sign-off from maintenance, safety, cybersecurity, and engineering representatives. Monitoring records model performance and drift without exposing unnecessary personal information.

Outcome

The revised system produces fewer unsupported alerts and is initially deployed only as a recommendation tool. The company discovers that performance declines after a controller firmware update, demonstrating the value of monitoring and change control. After further validation, limited automatic actions are approved only for low-consequence conditions with a safe fallback.

Learning points

The case demonstrates that model accuracy is not enough. Data provenance, privacy, security, safety independence, uncertainty, licence compliance, human authority, and lifecycle monitoring are all part of engineering quality. A staged deployment can reduce risk while generating evidence for later decisions.

Challenges and Limitations

Responsible practice involves genuine trade-offs. Strong privacy controls may limit data available for diagnosis. Encryption and authentication can increase latency or complicate maintenance. Open-source reuse can accelerate innovation while creating licence and dependency obligations. More detailed testing increases confidence but consumes time and resources. Explainable models may be less accurate in some contexts, although an opaque model is not automatically unacceptable if it is rigorously validated and governed.

Risk scoring can create false precision, particularly when rare catastrophic events are assigned low probabilities. Checklists may become ceremonial if teams do not understand their purpose. Standards can lag behind emerging technologies. Human oversight can become ineffective under time pressure. Finally, responsibility can be fragmented across suppliers, software teams, operators, and managers. Clear ownership, escalation paths, and evidence-based review are therefore essential.

Contemporary Practice and Employability

Graduates who program for engineering roles should be able to read a licence, use version control, review dependencies, validate units and input ranges, write tests, document assumptions, recognize personal data, and communicate limitations to non-specialists. Employers increasingly value secure development, reproducibility, traceability, systems thinking, and the ability to work with cybersecurity, safety, legal, and operations specialists.

A strong professional portfolio may include a threat model for a small cyber-physical system, a documented simulation with validation evidence, a software bill of materials, a privacy-aware data pipeline, or an AI-assisted coding exercise in which generated output is independently tested. The central employability skill is not merely producing code quickly; it is producing evidence that the code is appropriate, trustworthy, maintainable, and responsibly governed.

Best-Practice Checklist

Before releasing an engineering program or model, ask:

  • Is the purpose and operating domain explicit?
  • Are safety hazards and cybersecurity threats identified?
  • Are personal, proprietary, and third-party data handled lawfully and minimally?
  • Are dependencies, licences, and versions recorded?
  • Have inputs, units, boundary conditions, failure modes, and uncertainty been tested?
  • Can a qualified person understand, challenge, and override important outputs?
  • Is there an accountable owner and an incident-response route?
  • Are changes, approvals, and test evidence traceable?
  • Has environmental impact been considered across the lifecycle?
  • Is the system monitored after deployment and retired responsibly?

Chapter Summary

Responsible computer programming in mechanical engineering combines technical competence with cybersecurity, ethics, governance, and professional judgment. Confidentiality, integrity, and availability provide a foundation for protecting engineering systems, while privacy principles guide the collection and use of personal data. Intellectual-property rights and open-source licences determine how code and dependencies may be used and distributed.

Algorithmic accountability requires more than accuracy: engineers must examine data quality, validity, uncertainty, fairness, human oversight, traceability, and the consequences of errors. Safety engineering requires hazard analysis, controlled changes, robust testing, safe failure behavior, and independent evidence. Standards support consistent practice but do not replace judgment or professional responsibility.

Model governance establishes ownership, intended use, verification, validation, monitoring, and retirement. Generative AI and autonomous engineering can improve productivity and capability, but their outputs must be treated as uncertain and untrusted until reviewed and tested. Sustainable practice considers energy, hardware, data, and lifecycle effects. Across all these areas, the engineer’s duty is to create systems whose benefits, limitations, risks, and accountability are visible and manageable.

Key Terms

Algorithmic accountability: The obligation to make an algorithm’s purpose, operation, effects, and responsible owners reviewable.

Availability: The cybersecurity property that authorized users and systems can access resources when required.

Confidentiality: Protection of information from unauthorized disclosure.

Cybersecurity: Protection of systems, networks, software, and data from unauthorized or harmful activity.

Data minimization: Collecting and retaining only the data necessary for a defined purpose.

Digital twin: A computational representation linked to data from a particular physical asset or process.

Fairness: The context-dependent requirement that computational decisions do not impose unjustified or discriminatory effects.

Generative AI: AI that produces new content such as text, code, designs, images, or recommendations.

Governance: Structures, responsibilities, rules, and processes used to direct and control technology.

Integrity: Protection of information and computation from unauthorized or accidental alteration.

Intellectual property: Legally protected creations, inventions, identifiers, and confidential knowledge.

Least privilege: Granting only the permissions necessary for a task.

Model validation: Assessment of whether a model is suitable for its intended real-world purpose.

Model verification: Assessment of whether a model has been implemented according to its specifications.

Open-source licence: Legal terms governing the use, modification, and redistribution of open-source software.

Privacy: Appropriate control over the collection, use, disclosure, and retention of personal information.

Risk: The potential for harm, commonly evaluated using likelihood and consequence.

Safety case: A structured argument supported by evidence that a system is acceptably safe for a defined use.

Threat: A potential cause of harm to a system, person, organization, or environment.

Vulnerability: A weakness that may be exploited or contribute to failure.

Review Questions

Short Answer Questions

  1. Define confidentiality, integrity, and availability, and give one mechanical-engineering example of each.
  2. Why is removing names from a dataset insufficient to guarantee privacy?
  3. Distinguish model verification from model validation.
  4. What is the purpose of a software bill of materials?
  5. Why should generated AI code be treated as an untrusted draft?

Long Answer Questions

  1. Explain how cybersecurity and functional safety can interact in an industrial robotic system. Discuss at least three controls and possible trade-offs.
  2. Compare copyright, patents, trade secrets, and open-source licences in the context of engineering software.
  3. Describe a complete governance lifecycle for a predictive-maintenance model, from purpose definition to retirement.
  4. Explain why algorithmic accuracy alone is insufficient for responsible engineering deployment.
  5. Discuss how professional responsibility applies when an engineer discovers that an employer’s software may create a serious public-safety risk.

Analytical / Application Questions

  1. A digital-twin model is accurate for a laboratory test rig but performs poorly after deployment on a larger industrial machine. Analyze possible causes and propose a validation and monitoring plan.
  2. Design a cybersecurity and privacy assessment for a factory system that collects video, worker identifiers, vibration signals, and cloud-based maintenance records.
  3. An autonomous inspection robot recommends disabling a safety interlock to complete a task faster. Decide what governance and technical controls should apply before any action is authorized, and justify your decision.

Multiple Choice Questions with Answers

Question 1

Which cybersecurity property is most directly concerned with preventing unauthorized alteration of a robot’s control parameters?

A. Confidentiality

B. Integrity

C. Availability

D. Portability

Correct Answer: B. Integrity

Question 2

A model is implemented exactly according to its mathematical specification, but its assumptions are unsuitable for the operating environment. Which conclusion is most accurate?

A. It is verified but may not be validated

B. It is validated but not verified

C. It is both verified and validated

D. It is neither verified nor testable

Correct Answer: A. It is verified but may not be validated

Question 3

Which practice best reflects data minimization?

A. Collecting every available sensor and employee field

B. Keeping all data permanently in case it becomes useful

C. Collecting only data necessary for a defined legitimate purpose

D. Removing passwords after data collection

Correct Answer: C. Collecting only data necessary for a defined legitimate purpose

Question 4

Why is a software bill of materials useful?

A. It guarantees that software contains no defects

B. It records software components, versions, and dependencies

C. It replaces all cybersecurity testing

D. It automatically converts proprietary code to open source

Correct Answer: B. It records software components, versions, and dependencies

Question 5

Which statement about open-source software is correct?

A. It has no licence conditions

B. It cannot be used in commercial products

C. Its use and redistribution are governed by licence terms

D. It is automatically free of security vulnerabilities

Correct Answer: C. Its use and redistribution are governed by licence terms

Question 6

In a predictive-maintenance classifier, failing to identify an actual dangerous fault is an example of which outcome?

A. True positive

B. True negative

C. False positive

D. False negative

Correct Answer: D. False negative

Question 7

What is the most appropriate treatment of code generated by a generative AI tool for a safety-related application?

A. Deploy it immediately because it was generated by AI

B. Use it only after independent review, testing, and approval

C. Assume its licence is unrestricted

D. Avoid documenting its use

Correct Answer: B. Use it only after independent review, testing, and approval

Question 8

Which question primarily concerns model validation?

A. Was the source code formatted consistently?

B. Was the algorithm implemented according to its specification?

C. Is the model suitable for the intended real-world use?

D. Does the repository contain a README file?

Correct Answer: C. Is the model suitable for the intended real-world use?

Question 9

Which principle gives a software process only the permissions required for its task?

A. Least privilege

B. Data permanence

C. Open access

D. Maximum availability

Correct Answer: A. Least privilege

Question 10

Why is human approval ineffective if an operator cannot understand or challenge an automated recommendation?

A. The system has excessive availability

B. The oversight is not meaningful

C. The model has been anonymized

D. The software is necessarily open source

Correct Answer: B. The oversight is not meaningful

Computer Programming for Engineers
Chapter 14 of 15