Untitled
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Interactive Ethics Quiz</title> <style> body { font-family: Arial, sans-serif; margin: 20px; } h1 { text-align: center; } .question { margin: 20px 0; } .options { margin: 10px 0; } .options button { display: block; margin: 5px 0; padding: 10px; background-color: #f4f4f4; border: 1px solid #ccc; cursor: pointer; } .options button:hover { background-color: #ddd; } #results { margin-top: 20px; text-align: center; display: none; } #progress { margin-top: 20px; text-align: center; } </style> </head> <body> <h1>Ethics & Professional Practices Quiz</h1> <div id="progress"></div> <div id="quiz-container"></div> <div id="results"> <h2>Your Score: <span id="score">0</span>%</h2> <button onclick="restartQuiz()">Restart Quiz</button> </div> <script> const questions = [ { question: "The NCEES Model Rules of Professional Conduct prohibit the registered engineer from doing all but one of the following. Which one can the engineer do?", options: [ "Indiscriminately criticize the work of another registered engineer.", "Giving gifts to people in order to promote business and obtain work.", "Affix a signature or seal to any plans or documents not prepared under the engineer's control and supervision.", "Accept compensation from more than one party for services on the same project once the circumstances are fully disclosed and agreed to by all parties." ], answer: 3 }, { question: "A conflict of interest is best addressed by?", options: [ "Handling the decision with the utmost confidentiality.", "Always disclosing the situation and recusing yourself.", "Disclosing the situation and discussing the need for recusal with an engineering supervisor.", "Immediately notify the state board of the conflict of interest." ], answer: 2 }, { question: "A licensee makes a professional judgment which is overruled. The licensee believes that the life, health, property, or welfare of the public is endangered. The licensee should inform:", options: [ "His employer.", "His client.", "Other authority as may be appropriate.", "A or B and C." ], answer: 3 }, { question: "Which of the following is not always an ethics violation?", options: [ "Signing plans or blueprints without having first designed and/or checked the plans.", "Revealing confidential information about a product without first obtaining permission.", "Granting a contract to a company for which the professional is an officer while concurrently serving on the board issuing the grants.", "Any individual accepting fees from contractors hired for a project." ], answer: 1 }, { question: "Which of the following is an ethics violation specifically included in the NCEES sample code of ethics?", options: [ "An engineering professor 'moonlighting' as a private contractor.", "An engineer investing money in the stock of the company for which he/she works.", "A civil engineer with little electrical experience signing the plans for an electric generator.", "None of the above." ], answer: 2 }, { question: "When can an engineer associate in the business ventures with a firm that is engaging in dishonest business?", options: [ "Never.", "Only if they are associating with them to expose the dishonest business.", "Only if they are doing so to protect the safety of the public.", "Whenever engineers are free to associate in whatever business ventures they choose." ], answer: 0 }, { question: "Regarding the NCEES Model Code and the various state board codes of ethics,", options: [ "Each state board incorporates the NCEES Model Code along with other special rules.", "The NCEES code governs all engineers nationwide, while the state codes also govern engineers in the respective states.", "The NCEES code governs all engineers unless there is a superseding state code in the state in question.", "The NCEES code does not bind any engineers; licensed engineers are bound by the state board rules in the state(s) of the license(s)." ], answer: 3 }, { question: "When can an engineer express a professional opinion publically?", options: [ "Only when they have performed sufficient testing to support the opinion.", "Only when it is founded on adequate knowledge of the facts and competent evaluation of the subject matter.", "Whenever they feel like it would benefit the safety and welfare of the public.", "Only when they have at least 4 years of relevant experience and have done enough research to support the opinion." ], answer: 1 }, { question: "Ethical behavior is officially regulated by whom?", options: [ "Individual employers.", "Registered engineers.", "Professional societies.", "State enforcement agencies." ], answer: 3 }, { question: "Which of the following penalties may not be imposed on a licensee found violating the professional Code of ethics?", options: [ "Censure and reprimand.", "License suspension or revocation.", "Attain additional education and/or training.", "$1,000 fine on each count of violation." ], answer: 3 }, { question: "Whistleblowing is?", options: [ "An ethical practice.", "An illegal practice.", "An unethical practice.", "A career-enhancing practice." ], answer: 0 }, { question: "Which statement about the low-bid competitive bidding process is INCORRECT?", options: [ "It is a procurement method in which bids from competing contractors, suppliers, or vendors are invited by openly advertising the scope, specifications, and terms and conditions of the proposed contract as well as the criteria by which the bids will be evaluated.", "It is used to obtain goods and services at the lowest prices by stimulating competition and to prevent favoritism.", "The bids are always opened in full view of all who may wish to witness the bid opening.", "A major drawback of this method is the possibility of awarding a construction contract to a contractor who submits, either accidentally or deliberately, an unrealistically low bid price which, in turn, promotes disputes, increased costs, and schedule delays." ], answer: 2 } ]; let currentQuestionIndex = 0; let score = 0; function loadQuiz() { document.getElementById("results").style.display = "none"; currentQuestionIndex = 0; score = 0; shuffleQuestions(); displayQuestion(); updateProgress(); } function shuffleQuestions() { questions.sort(() => Math.random() - 0.5); } function displayQuestion() { const quizContainer = document.getElementById("quiz-container"); quizContainer.innerHTML = ""; if (currentQuestionIndex < questions.length) { const question = questions[currentQuestionIndex]; const questionElem = document.createElement("div"); questionElem.classList.add("question"); questionElem.innerHTML = `<h2>Question ${currentQuestionIndex + 1}:</h2><p>${question.question}</p>`;
Leave a Comment