0% found this document useful (0 votes)
15 views

quiz binary operations

Uploaded by

judedautey20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

quiz binary operations

Uploaded by

judedautey20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Binary Operations, Sets, and Binomial Quiz</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
h1, h2 {
color: #2c3e50;
}
.question {
margin-bottom: 20px;
}
.options {
margin-left: 20px;
}
button {
margin-top: 20px;
padding: 10px 20px;
background-color: #3498db;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: #2980b9;
}
#result {
margin-top: 20px;
font-weight: bold;
}
</style>
</head>
<body>
<h1>Binary Operations, Sets, and Binomial Quiz</h1>

<div id="quiz">
<div class="question">
<h2>1. What is a binary operation?</h2>
<div class="options">
<input type="radio" name="q1" value="a"> a) An operation that only
uses 0 and 1<br>
<input type="radio" name="q1" value="b"> b) An operation that
combines two elements to produce a third element<br>
<input type="radio" name="q1" value="c"> c) An operation that
always results in two outputs<br>
<input type="radio" name="q1" value="d"> d) An operation that can
only be performed on even numbers
</div>
</div>
<div class="question">
<h2>2. Which of the following is NOT a property of binary operations?
</h2>
<div class="options">
<input type="radio" name="q2" value="a"> a) Closure<br>
<input type="radio" name="q2" value="b"> b) Commutativity<br>
<input type="radio" name="q2" value="c"> c) Associativity<br>
<input type="radio" name="q2" value="d"> d) Divisibility
</div>
</div>

<div class="question">
<h2>3. What is the result of the operation 3 ∆ 4, where a ∆ b = a + b +
ab?</h2>
<div class="options">
<input type="radio" name="q3" value="a"> a) 7<br>
<input type="radio" name="q3" value="b"> b) 19<br>
<input type="radio" name="q3" value="c"> c) 15<br>
<input type="radio" name="q3" value="d"> d) 24
</div>
</div>

<div class="question">
<h2>4. What is the intersection of sets A = {1, 2, 3, 4} and B = {3, 4,
5, 6}?</h2>
<div class="options">
<input type="radio" name="q4" value="a"> a) {1, 2, 3, 4, 5, 6}<br>
<input type="radio" name="q4" value="b"> b) {3,

You might also like