Chapter 2: Sets, Functions & Groups Quiz

:root {
–primary: #1E3A8A; /* Navy Blue */
–primary-hover: #1E40AF;
–background: #F3F4F6; /* Soft Gray */
–surface: #FFFFFF;
–text-main: #1F2937;
–text-muted: #6B7280;
–success: #10B981; /* Emerald Green */
–success-light: #D1FAE5;
–danger: #EF4444; /* Red */
–danger-light: #FEE2E2;
–border: #E5E7EB;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: ‘Segoe UI’, system-ui, -apple-system, sans-serif;
}
/* Critical Mobile Fixes */
body {
background-color: var(–background);
color: var(–text-main);
line-height: 1.6;
padding: 1rem;
overflow-x: hidden; /* Prevent horizontal scrolling */
display: flex;
justify-content: center;
}
.container {
width: 100%;
max-width: 800px;
background: var(–surface);
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
overflow: hidden;
display: flex;
flex-direction: column;
}
/* Header & Controls */
header {
background: var(–primary);
color: white;
padding: 1.5rem;
text-align: center;
}
header h1 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.mode-toggle {
display: flex;
justify-content: center;
gap: 0.5rem;
background: rgba(255, 255, 255, 0.1);
padding: 0.5rem;
border-radius: 8px;
width: fit-content;
margin: 0 auto;
}
.mode-btn {
background: transparent;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
}
.mode-btn.active {
background: white;
color: var(–primary);
}
/* Progress Bar */
.progress-container {
background: var(–border);
height: 6px;
width: 100%;
}
.progress-bar {
height: 100%;
background: var(–success);
width: 0%;
transition: width 0.3s ease;
}
/* Main Content Area */
.content-area {
padding: 2rem;
max-width: 100%;
}
.question-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
color: var(–text-muted);
font-size: 0.9rem;
font-weight: 600;
flex-wrap: wrap;
gap: 0.5rem;
}
.meta-tag {
background: #E0E7FF;
color: var(–primary);
padding: 0.25rem 0.75rem;
border-radius: 999px;
font-size: 0.8rem;
font-weight: bold;
}
.question-text {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1.5rem;
}
/* Options Grid */
.options-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
margin-bottom: 2rem;
}
.option {
background: var(–surface);
border: 2px solid var(–border);
border-radius: 8px;
padding: 1rem;
cursor: pointer;
font-size: 1rem;
transition: all 0.2s ease;
display: flex;
align-items: center;
}
.option:hover:not(.disabled) {
border-color: var(–primary);
background: #F8FAFC;
}
.option.selected {
border-color: var(–primary);
background: #EFF6FF;
}
.option.correct {
border-color: var(–success);
background: var(–success-light);
color: #065F46;
}
.option.wrong {
border-color: var(–danger);
background: var(–danger-light);
color: #991B1B;
}
.option.disabled {
cursor: not-allowed;
opacity: 0.7;
}
.option-letter {
font-weight: bold;
margin-right: 1rem;
background: var(–border);
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
font-size: 0.9rem;
flex-shrink: 0;
}
/* Critical Text Breaking */
.explanation-box, .review-answer-box, #review-explanation-text {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
overflow-x: auto;
}
.explanation-box {
display: none;
background: #F8FAFC;
border-left: 4px solid var(–primary);
padding: 1.5rem;
margin-bottom: 2rem;
border-radius: 0 8px 8px 0;
animation: fadeIn 0.4s;
}
.explanation-box h4 {
color: var(–primary);
margin-bottom: 0.5rem;
}
/* Buttons */
.btn-container {
display: flex;
justify-content: flex-end;
gap: 1rem;
flex-wrap: wrap;
}
.btn {
background: var(–primary);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 6px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background 0.3s;
}
.btn:hover:not(:disabled) {
background: var(–primary-hover);
}
.btn:disabled {
background: var(–text-muted);
cursor: not-allowed;
}
.btn-outline {
background: transparent;
color: var(–primary);
border: 2px solid var(–primary);
}
.btn-outline:hover:not(:disabled) {
background: #EFF6FF;
}
/* Results / Review Mode */
#results-area, #review-area {
display: none;
text-align: center;
}
.score-display {
font-size: 4rem;
font-weight: bold;
color: var(–primary);
margin: 1rem 0;
}
/* Review Slider Elements */
#review-area {
text-align: left;
}
.review-status {
font-weight: bold;
margin-bottom: 1rem;
font-size: 1.1rem;
}
.review-answer-box {
background: var(–surface);
border: 1px solid var(–border);
padding: 1.25rem;
border-radius: 8px;
margin-bottom: 1.5rem;
}
.text-success { color: var(–success); }
.text-danger { color: var(–danger); }
.text-muted { color: var(–text-muted); }
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-5px); }
to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 640px) {
.options-grid {
grid-template-columns: 1fr 1fr;
}
}

Sets, Functions & Groups



Question 1 of 19
NET-2014

Step-by-Step Explanation:

Test Complete!

0 / 19

You have successfully completed the assessment.



Review: 1 of 19
NET-2014
Your Answer:
Correct Answer:

Explanation: