Did a Human or AI Write This Sentence?

body {
margin: 0;
padding: 0;
background-color: #000;
color: #fff;
font-family: Arial, sans-serif;
}
#ai-quiz {
width: 100%;
max-width: 1200px;
margin: 20px auto;
padding: 20px;
box-sizing: border-box;
}
h2 {
text-align: center;
margin-bottom: 30px;
color: #fff;
}
/* Container for questions in a single column */
.questions-container {
display: block;
}
.question-box {
background: #1a1a1a;
border: 1px solid #444;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
padding: 20px;
margin-bottom: 20px;
box-sizing: border-box;
width: 100%;
}
.question-box p {
margin: 0 0 15px 0;
font-size: 18px;
font-weight: bold;
}
.question-number {
display: inline-block;
background: #c1205b;
color: #fff;
width: 30px;
height: 30px;
text-align: center;
line-height: 30px;
border-radius: 50%;
margin-right: 10px;
font-size: 16px;
}
label {
display: block;
margin-bottom: 8px;
font-size: 16px;
cursor: pointer;
padding: 4px;
border-radius: 4px;
}
label:hover {
background-color: #333;
}
input[type=”radio”] {
margin-right: 8px;
cursor: pointer;
}
.submit-container {
text-align: center;
width: 100%;
margin-top: 20px;
}
.submit-button {
padding: 12px 20px;
font-size: 18px;
color: #fff;
background-color: #c1205b;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.submit-button:hover {
background-color: #a51549;
}
#result {
margin-top: 20px;
padding: 20px;
border: 2px solid #c1205b;
border-radius: 8px;
background-color: #1a1a1a;
display: none;
text-align: center;
}
#result h3 {
margin-bottom: 10px;
color: #c1205b;
}

Did a Human or AI Write This Sentence?

1
“Artificial intelligence has revolutionized many industries with its predictive capabilities.”

AI
Human

2
“Yesterday, I walked along the river and watched the sunset paint the sky in vibrant colors.”

Human
AI

3
“Data-driven algorithms provide insights that are both actionable and transformative.”

AI
Human

4
“The gentle hum of everyday life reminded me that beauty exists in the mundane.”

Human
AI

5
“Machine learning models optimize performance by analyzing complex datasets.”

AI
Human

6
“I cherish the warmth of a handwritten letter in this digital age.”

Human
AI

7
“Neural networks simulate interconnected human brain functions with impressive accuracy.”

AI
Human

8
“Every morning, the aroma of freshly brewed coffee awakens my senses and fuels my creativity.”

Human
AI

9
“Innovative technologies continue to advance at a remarkable pace, reshaping our future.”

AI
Human

10
“Sometimes, the simplest moments of silence speak louder than words ever could.”

Human
AI

Finish Quiz

Result:

function calculateResult() {
// Mapping of question IDs to correct answers
const correctAnswers = {
“q1”: “AI”,
“q2”: “Human”,
“q3”: “AI”,
“q4”: “Human”,
“q5”: “AI”,
“q6”: “Human”,
“q7”: “AI”,
“q8”: “Human”,
“q9”: “AI”,
“q10”: “Human”
};

const form = document.forms.quizForm;
let score = 0;
const totalQuestions = Object.keys(correctAnswers).length;

for (let q in correctAnswers) {
let options = form[q];
for (let i = 0; i = 7) {
message = “Great job! You have a sharp eye for distinguishing human and AI writing.”;
} else if (score >= 4) {
message = “Not bad! There’s room to improve your detection skills.”;
} else {
message = “Better luck next time. Keep practicing, and you’ll sharpen your instincts!”;
}

document.getElementById(“resultText”).innerText = `You got ${score} out of ${totalQuestions} correct. ${message}`;
document.getElementById(“result”).style.display = “block”;
}

You May Also Like

Bitcoin Advanced Test Quiz
How Well Do You Know 1inch Coin?
Are You Ready for the Metaverse? – Metaverse Quiz



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here