सामग्री पर जाएँ
The Lumenary

The Lumenary

अभ्यास

संकेतों और व्याख्याओं के साथ अभ्यास-प्रश्न। जितनी बार चाहें, कोशिश करें — कोई अंक, टाइमर या लगातार-दिनों की गिनती नहीं।

संग्रह

आरंभिकमानवीय

यह रहा एक संग्रह: 🍎 🍌 🍐। इनमें से कौन इस संग्रह का सदस्य है?

एक चुनें

संग्रह

आरंभिकमानवीय

इस संग्रह में कितने सदस्य हैं? 🍊 🥕 🍋 🍎 🍐

संग्रह

मुख्यमानवीय

केंजी के डिब्बे में 🍎 🍌 🍐 हैं। लूसिया के डिब्बे में 🍐 🍎 🍌 हैं। क्या वे एक ही संग्रह हैं?

एक चुनें

संग्रह

मुख्यमानवीय

नीले फलों वाला डिब्बा खाली है। रिक्त संग्रह में कितने सदस्य होते हैं?

संग्रह

मुख्यऔपचारिक

Gideon का खेल: संग्रह है 🍌 🍋 🥒। यह कथन सत्य है या असत्य? “इस संग्रह का हर सदस्य पीला है।”

एक चुनें

संग्रह

चुनौतीमानवीय

बड़े बच्चों के लिए: सेब (apple), केला (banana), स्ट्रॉबेरी (strawberry) और नींबू (lemon) में से लाल चीज़ों का संग्रह लिखिए। कोड के रूप में दिखाए गए अंग्रेज़ी शब्द लिखें, अल्पविराम से अलग करके, जैसे {kiwi, plum}।

अवयवों को अल्पविराम (,) से अलग करके लिखें। क्रम और दोहराव मायने नहीं रखते — ठीक समुच्चय की तरह!

Sets

आरंभिकमानवीय

Let A={1,2,3,4}A = \{1, 2, 3, 4\} and B={3,4,5,6}B = \{3, 4, 5, 6\}. Write A∪BA \cup B.

अवयवों को अल्पविराम (,) से अलग करके लिखें। क्रम और दोहराव मायने नहीं रखते — ठीक समुच्चय की तरह!

Sets

आरंभिकमानवीय

With the same A={1,2,3,4}A = \{1, 2, 3, 4\} and B={3,4,5,6}B = \{3, 4, 5, 6\}, write A∩BA \cap B.

अवयवों को अल्पविराम (,) से अलग करके लिखें। क्रम और दोहराव मायने नहीं रखते — ठीक समुच्चय की तरह!

Sets

मुख्यमानवीय

In the universe U={1,2,3,4,5,6,7,8}U = \{1, 2, 3, 4, 5, 6, 7, 8\}, write the complement AcA^{c} of A={1,2,3,4}A = \{1, 2, 3, 4\}.

अवयवों को अल्पविराम (,) से अलग करके लिखें। क्रम और दोहराव मायने नहीं रखते — ठीक समुच्चय की तरह!

Sets

मुख्यऔपचारिक

Which statements are true? (Choose all that apply.)

जो भी लागू हों, सभी चुनें

Sets

मुख्यमानवीय

What is the cardinality ∣{a,b,a,c,b}∣|\{a, b, a, c, b\}|?

Sets

मुख्यमानवीय

A café offers 3 drinks and 4 snacks. A combo is an ordered pair (drink, snack). If DD is the set of drinks and SS the set of snacks, how many elements does D×SD \times S have?

Sets

चुनौतीमानवीय

In a class, 14 students play football, 9 play chess, and 5 play both. How many play at least one of the two games?

Sets

चुनौतीसंगणनात्मक

Write a Python function is_subset(a, b) that returns True exactly when every element of the set a is an element of the set b. Don't use Python's built-in <= or issubset — loop over the elements instead.

यह पूरी तरह आपके ब्राउज़र में, एक अलग-थलग वर्कर में चलता है। किसी सर्वर पर कुछ नहीं भेजा जाता।

Integers

आरंभिकमानवीय

Compute −8+5-8 + 5.

Integers

आरंभिकमानवीय

Compute −4−(−9)-4 - (-9).

Integers

मुख्यमानवीय

Compute (−3)⋅(−4)⋅(−1)(-3) \cdot (-4) \cdot (-1).

Integers

मुख्यमानवीय

Compute (−6)+(−7)(-6) + (-7).

Integers

मुख्यमानवीय

In the proof that (−a)(−b)=ab(-a)(-b) = ab, we wrote (−a)(−b)+(−a)b=(−a)((−b)+b)(-a)(-b) + (-a)b = (-a)\big((-b) + b\big). Which property justifies this step?

एक चुनें

Integers

आरंभिकमानवीय

At dawn in Ulaanbaatar the temperature is −23 ∘C-23\,^\circ\mathrm{C}. By noon it has risen by 1515 degrees. What is the noon temperature, in ∘C^\circ\mathrm{C}?

Integers

चुनौतीसंगणनात्मक

Write find_mult_partner(a, limit) that searches the integers bb with −limit≤b≤limit-\text{limit} \le b \le \text{limit} and returns the first bb with a * b == 1, or None if there is none. Then think: why does searching further never help when ∣a∣≥2|a| \ge 2?

यह पूरी तरह आपके ब्राउज़र में, एक अलग-थलग वर्कर में चलता है। किसी सर्वर पर कुछ नहीं भेजा जाता।

Functions

आरंभिकमानवीय

Let A={1,2,3}A = \{1, 2, 3\} and B={a,b}B = \{a, b\}. Which of these rules is a function from AA to BB?

एक चुनें

Functions

मुख्यमानवीय

How many functions are there from a set with 33 elements to a set with 22 elements?

Functions

मुख्यमानवीय

How many injective functions are there from a 2-element set to a 4-element set?

Functions

मुख्यमानवीय

Which of these functions Z→Z\Z \to \Z are surjective? (Choose all that apply.)

जो भी लागू हों, सभी चुनें

Functions

चुनौतीमानवीय

A school has 400 students. Why must at least two of them share a birthday (day and month)?

एक चुनें

Functions

चुनौतीसंगणनात्मक

A finite function can be stored as a Python dictionary, e.g. {1: 'a', 2: 'b', 3: 'a'}. Write is_injective(f) returning True exactly when no two keys have the same value.

यह पूरी तरह आपके ब्राउज़र में, एक अलग-थलग वर्कर में चलता है। किसी सर्वर पर कुछ नहीं भेजा जाता।

Composition

आरंभिकमानवीय

Let f(x)=x+3f(x) = x + 3 and g(x)=x2g(x) = x^2. Compute (g∘f)(2)(g \circ f)(2).

Composition

आरंभिकमानवीय

If f:A→Bf : A \to B and g:B→Cg : B \to C, what are the domain and codomain of g∘fg \circ f?

एक चुनें

Composition

मुख्यमानवीय

Let f(x)=3xf(x) = 3x and g(x)=x−2g(x) = x - 2. Compute (g∘f)(4)−(f∘g)(4)(g \circ f)(4) - (f \circ g)(4).

Composition

चुनौतीमानवीय

Suppose g∘fg \circ f is injective. Which of these must be true? (Choose all that apply.)

जो भी लागू हों, सभी चुनें

Composition

मुख्यऔपचारिक

In Lean, comp_assoc is proved by rfl. What does that tell us?

एक चुनें

Composition

चुनौतीसंगणनात्मक

Finite functions can be stored as dictionaries. Write compose(g, f) returning a dictionary for g∘fg \circ f (apply f first!). You may assume every value of f is a key of g.

यह पूरी तरह आपके ब्राउज़र में, एक अलग-थलग वर्कर में चलता है। किसी सर्वर पर कुछ नहीं भेजा जाता।