make a fake iq test that asks you a bunch of questions and generates a result based off of it. basically each question's anwser will make you 'lose points' or 'gain points'. the iq generated must be 0 - 200. html/css/js. also make the UX kinda bad
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Here's a deliberately bad UX IQ test that gives you a score between 0-200. The design is intentionally clunky, the questions are weird, and the scoring is arbitrary.
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Super Accurate IQ Test (TM)</title>
<style>
body {
font-family: 'Comic Sans MS', cursive, sans-serif;
background-color: #ffccff;
color: #333;
margin: 0;
padding: 20px;
}
h1 {
color: #ff00ff;
text-align: center;
font-size: 32px;
text-shadow: 2px 2px 4px #000;
}
.container {
max-width: 800px;
margin: 0 auto;
background-color: #ffffcc;
padding: 20px;
border: 3px dashed #ff00ff;
border-radius: 10px;
box-shadow: 5px 5px 10px #888;
}
.question {
margin-bottom: 20px;
padding: 15px;
background-color: #ffccff;
border: 1px solid #ff00ff;
border-radius: 5px;
}
.options {
display: flex;
flex-direction: column;
gap: 10px;
}
button {
background-color: #ff00ff;
color: white;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s;
}
button:hover {
background-color: #cc00cc;
transform: scale(1.05);
}
.progress {
margin: 20px 0;
height: 20px;
background-color: #ffccff;
border-radius: 10px;
overflow: hidden;
}
.progress-bar {
height: 100%;
width: 0%;
background-color: #ff00ff;
transition: width 0.5s;
}
.result {
display: none;
text-align: center;
padding: 20px;
background-color: #ffffcc;
border: 3px double #ff00ff;
margin-top: 20px;
}
.result h2 {
color: #ff00ff;
font-size: 28px;
}
.result p {
font-size: 20px;
}
.score-display {
font-size: 36px;
font-weight: bold;
color: #ff00ff;
margin: 10px 0;
}
.confetti {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 100;
display: none;
}
.confetti-piece {
position: absolute;
width: 10px;
height: 10px;
background-color: #ff00ff;
opacity: 0.8;
animation: fall linear infinite;
}
@keyframes fall {
0% {
transform: translateY(-100vh) rotate(0deg);
}
100% {
transform: translateY(100vh) rotate(360deg);
}
}
</style>
</head>
<body>
<div class="confetti" id="confetti"></div>
<h1>Super Accurate IQ Test (TM)</h1>
<p style="text-align: center; color: #ff00ff;">This test is 100% scientific and definitely not made up</p>
<div class="container">
<div class="progress">
<div class="progress-bar" id="progressBar"></div>
</div>
<div id="questions">
<!-- Questions will be inserted here by JavaScript -->
</div>
<div class="result" id="result">
<h2>Your IQ Score:</h2>
<div class="score-display" id="scoreDisplay">0</div>
<p id="resultText"></p>
</div>
</div>
<script>
// Questions and their point values
const questions = [
{
text: "What is 2 + 2?",
options: ["4", "5", "The meaning of life", "I don't know"],
correct: 0,
points: {
0: 10,
1: -5,
2: 20,
3: -10
}
},
{
text: "If a train leaves New York at 60 mph and another leaves Los Angeles at 70 mph, when will they collide?",
options: ["Never", "In 3 days", "When the conductor falls asleep", "It depends on the weather"],
correct: 0,
points: {
0: 15,
1: -5,
2: 5,
3: 0
}
},
{
text: "How many sides does a circle have?",
options: ["0", "1", "2", "Infinite"],
correct: 3,
points: {
0: 5,
1: -10,
2: -5,
3: 20
}
},
{
text: "What is the capital of France?",
options: ["Paris", "London", "Berlin", "I don't know"],
correct: 0,
points: {
0: 10,
1: -5,
2: -5,
3: -10
}
},
{
text: "If you have 3 apples and you take away 2, how many do you have?",
options: ["1", "2", "3", "0"],
correct: 0,
points: {
0: 15,
1: -5,
2: -10,
3: 5
}
},
{
text: "What is the square root of 64?",
options: ["8", "64", "4", "I don't know"],
correct: 0,
points: {
0: 10,
1: -5,
2: -10,
3: -15
}
},
{
text: "How many colors are in a rainbow?",
options: ["7", "6", "8", "I don't know"],
correct: 0,
points: {
0: 10,
1: -5,
2: -5,
3: -10
}
},
{
text: "What is the largest planet in our solar system?",
options: ["Jupiter", "Saturn", "Earth", "Mars"],
correct: 0,
points: {
0: 15,
1: -5,
2: -10,
3: -5
}
},
{
text: "If it takes 5 machines 5 minutes to make 5 widgets, how long would it take 100 machines to make 100 widgets?",
options: ["5 minutes", "100 minutes", "1 minute", "It depends on the widgets"],
correct: 0,
points: {
0: 20,
1: -10,
2: -5,
3: 5
}
},
{
text: "What is the next number in this sequence: 1, 1, 2, 3, 5, 8, 13?",
options: ["21", "26", "18", "I don't know"],
correct: 0,
points: {
0: 15,
1: -5,
2: -10,
3: -15
}
}
];
let currentQuestion = 0;
let score = 0;
let totalQuestions = questions.length;
// Function to create a question element
function createQuestionElement(question) {
const questionElement = document.createElement('div');
questionElement.className = 'question';
const questionText = document.createElement('p');
questionText.textContent = question.text;
questionElement.appendChild(questionText);
const optionsElement = document.createElement('div');
optionsElement.className = 'options';
question.options.forEach((option, index) => {
const button = document.createElement('button');
button.textContent = option;
button.addEventListener('click', () => selectOption(index));
optionsElement.appendChild(button);
});
questionElement.appendChild(optionsElement);
return questionElement;
}
// Function to select an option
function selectOption(selectedIndex) {
const question = questions[currentQuestion];
score += question.points[selectedIndex];
// Move to next question or show results
currentQuestion++;
updateProgress();
if (currentQuestion < totalQuestions) {
showQuestion();
} else {
showResults();
}
}
// Function to show a question
function showQuestion() {
const questionElement = createQuestionElement(questions[currentQuestion]);
document.getElementById('questions').innerHTML = '';
document.getElementById('questions').appendChild(questionElement);
}
// Function to update progress bar
function updateProgress() {
const progressBar = document.getElementById('progressBar');
const progress = (currentQuestion / totalQuestions) * 100;
progressBar.style.width = `${progress}%`;
}
// Function to show results
function showResults() {
// Cap the score between 0 and 200
score = Math.min(200, Math.max(0, score));
const resultElement = document.getElementById('result');
const scoreDisplay = document.getElementById('scoreDisplay');
const resultText = document.getElementById('resultText');
scoreDisplay.textContent = score;
// Generate a random but somewhat appropriate result text
let resultTextContent = "";
if (score < 50) {
resultTextContent = "Wow, you're really not good at this. Maybe try counting your fingers?";
} else if (score < 100) {
resultTextContent = "Average intelligence. You might want to read a book sometime.";
} else if (score < 150) {
resultTextContent = "Above average! You're probably one of those people who knows too much.";
} else {
resultTextContent = "Genius! Or maybe you just got lucky. Either way, congratulations!";
}
resultText.textContent = resultTextContent;
resultElement.style.display = 'block';
// Show confetti for high scores
if (score >= 150) {
showConfetti();
}
}
// Function to show confetti
function showConfetti() {
const confettiElement = document.getElementById('confetti');
confettiElement.style.display = 'block';
for (let i = 0; i < 100; i++) {
const piece = document.createElement('div');
piece.className = 'confetti-piece';
// Random position
piece.style.left = `${Math.random() * 100}%`;
piece.style.top = `-10px`;
// Random size
const size = Math.random() * 10 + 5;
piece.style.width = `${size}px`;
piece.style.height = `${size}px`;
// Random rotation
piece.style.transform = `rotate(${Math.random() * 360}deg)`;
// Random animation duration
const duration = Math.random() * 3 + 2;
piece.style.animationDuration = `${duration}s`;
confettiElement.appendChild(piece);
}
// Hide confetti after 5 seconds
setTimeout(() => {
confettiElement.style.display = 'none';
confettiElement.innerHTML = '';
}, 5000);
}
// Start the test
showQuestion();
</script>
</body>
</html>
Weird Questions: Includes some legitimate questions mixed with absurd ones
Arbitrary Scoring: Points are assigned randomly to answers
Confetti Overload: Shows confetti for high scores (which might not be deserved)
No Back Button: You can't go back to change answers
No Explanation: No feedback on why answers are right or wrong
Random Results: The scoring system is completely made up
The test will give you a score between 0-200, but the results are completely arbitrary and not based on any real IQ testing standards. Enjoy your "super accurate" IQ score!