CHAPTER 01 · 16 LESSONS
01 · Scarp basics
Start with the basics before tackling functions and modules.
YOUR CHAPTER PROGRESS
0 of 16 completedSaved only in this browser. No account or tracking.
YOUR CHAPTER LEARNING PATH · सीखने का क्रम
Read. Check. Build.
Three linked steps using real Scarp source and verified output.
-
Read the lessons · पाठ पढ़ें
Work through all 16 verified examples. Save optional local lesson progress as you learn; this does not certify code execution.
Start with Hello ↗Lesson tracking is optional and only available when browser storage works.
-
Check understanding · समझ जाँचें
Try 3 bilingual questions linked directly to their original source and expected output. No quiz score is stored.
Review all three questions here · यहाँ अभ्यास करें ↓ -
Write Scarp · कोड लिखें
Edit the real starter locally, compare output with the compiler-verified goal, and use the hint or tested solution when needed.
Open Rectangle area lab ↗
Lesson completion is voluntary local tracking. Passing a quiz or lab is not automatically recorded or claimed by this website. The Scarp compiler runs locally, not in your browser.
Lessons in this chapter
Practice this chapter · इस अध्याय का अभ्यास करें 3 bilingual, compiler-evidenced questions
Answer all three questions using the checked-in lessons. Feedback runs only in your browser; there is no stored score, automatic lesson completion or Scarp execution. Answers remain readable without JavaScript.
Question 1 of 3 · Hello · View source and recorded output ↗
SOURCE-BACKED SELF-CHECK · स्रोत-आधारित अभ्यास
Quick checkpoint / त्वरित अभ्यास
What exact text does this first program print?यह पहला प्रोग्राम ठीक कौन-सा टेक्स्ट प्रिंट करता है?
Reveal the source-backed answer / सही उत्तर देखें
Hello from Scarp! — The source calls print with the string literal "Hello from Scarp!", so the fixture contains that line.Hello from Scarp! — स्रोत में print को "Hello from Scarp!" स्ट्रिंग दी गई है, इसलिए अपेक्षित आउटपुट में यही पंक्ति है।
This question checks understanding of a recorded compiler output. It does not run Scarp in the browser. यह प्रश्न सत्यापित आउटपुट पर आधारित है; ब्राउज़र में Scarp नहीं चलता।
Question 2 of 3 · Bindings · View source and recorded output ↗
SOURCE-BACKED SELF-CHECK · स्रोत-आधारित अभ्यास
Quick checkpoint / त्वरित अभ्यास
What number is printed for area after width = 6 and height = 7?width = 6 और height = 7 होने पर area के लिए कौन-सी संख्या प्रिंट होती है?
Reveal the source-backed answer / सही उत्तर देखें
42 — The binding area multiplies width by height: 6 × 7 = 42. The verified output prints 42 after the Area label.42 — area में width × height की गणना होती है: 6 × 7 = 42। सत्यापित आउटपुट में Area के बाद 42 प्रिंट होता है.
This question checks understanding of a recorded compiler output. It does not run Scarp in the browser. यह प्रश्न सत्यापित आउटपुट पर आधारित है; ब्राउज़र में Scarp नहीं चलता।
Question 3 of 3 · Mutable · View source and recorded output ↗
SOURCE-BACKED SELF-CHECK · स्रोत-आधारित अभ्यास
Quick checkpoint / त्वरित अभ्यास
After count is changed several times, what does the immutable original still print?count को कई बार बदलने के बाद immutable original का कौन-सा मान प्रिंट होता है?
Reveal the source-backed answer / सही उत्तर देखें
2 — original captures count when its value is 2. Later changes to count do not change original.2 — original में count का शुरुआती मान 2 रखा जाता है। बाद में count बदलने से original नहीं बदलता।
This question checks understanding of a recorded compiler output. It does not run Scarp in the browser. यह प्रश्न सत्यापित आउटपुट पर आधारित है; ब्राउज़र में Scarp नहीं चलता।
All examples are validated with Scarp v0.0.6-alpha.3. Each lesson has its own code and expected-output page.