What computing is · מהי מחשוביות
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · עמוד זה דורש דפדפן עדכני (תומך ב-SharedArrayBuffer). אנא עדכן את Chrome, Edge, Firefox או Safari לגרסה העדכנית ביותר.
English
Welcome to AP CSP
- This is AP Computer Science Principles — the big ideas of computing.
- You already learned Python in the basics course. Here we use it for AP ideas.
- Some lessons are reading only. Others let you run code. Read each step, then press Continue.
עברית
ברוך הבא ל-AP CSP
- זהו עקרונות מדעי מחשב AP — הרעיונות המרכזיים של החישוב.
- כבר למדתם Python בקורס הבסיסי. כאן אנו משתמשים בו להבנת מושגי AP.
- חלק מהשיעורים הם לקריאה בלבד. אחרים מאפשרים לך לבצע קוד. קראו כל שלב, ולאחר מכן לחצו על המשך.
English
Every program has a purpose
- A program is a set of instructions a computer follows.
- Every program is made for a reason — to solve a problem or help people.
- Example purposes: send a message, play a song, find the shortest road.
עברית
לכל תוכנית יש מטרה
- תוכנית מחשב היא סדרת הוראות שהמחשב מבצע.
- כל תוכנית נוצרת ל-סיבה מסוימת – כדי לפתור בעיה או לעזור לאנשים.
- דוגמאות למטרות: שליחת הודעה, השמעת שיר, מציאת הדרך הקצרה ביותר.
English
Input → process → output
- Most programs work in three steps.
- Input: data goes in (a number you type, a tap, a file).
- Process: the program does work on that data.
- Output: a result comes out (text on the screen, a sound, a saved file).
עברית
כניסה → עיבוד → יציאה
- רוב התוכניות פועלות בשלושה שלבים.
- כניסה: נתונים נכנסים (מספר שמקלידים, מגע במסך, קובץ).
- עיבוד: התוכנית מעבדת את הנתונים הללו.
- יציאה: תוצאה מתקבלת (טקסט על המסך, צליל, קובץ שנשמר).
INPUT PROCESS OUTPUT
"5" -> add 5 and 3 -> "8"
English
A tiny example
- This program takes an input (a name), does a small process, and shows an output.
- You do not need to write it now — just read it and find the three steps.
עברית
דוגמה קטנה
- תוכנית זו לוקחת כניסה (שם), מבצעת עיבוד קטן ומציגה יציאה.
- אין צורך לכתוב אותה עכשיו – רק לקרוא אותה ולזהות את שלושת השלבים.
name = input("Your name: ") # input
greeting = "Hello, " + name # process
print(greeting) # output
English
Design is a cycle
- Good programs are not written perfectly the first time.
- We use an iterative cycle: do it again and again, a little better each time.
- Plan → write → test → improve, then repeat.
עברית
העיצוב הוא מחזור
- תוכניות טובות אינן נכתבות בצורה מושלמת בפעם הראשונה.
- אנו משתמשים במחזור איטרטיבי: ביצוע חוזר ונשנה, עם שיפור קטן בכל פעם.
- תכנון → כתיבה → בדיקה → שיפור, ואז חזרה לתחילה.
plan ──> write ──> test ──> improve
^ │
└──────────────────────────────┘
English
Errors are normal
- An error (a bug) is a mistake that makes the program do the wrong thing.
- In the basics course you learned to debug: read the message, find the line, fix it.
- Finding and fixing bugs is a normal part of every step in the cycle.
עברית
שגיאות הן נורמליות
- שגיאה (באג) היא טעות הגורמת לתוכנית לבצע את הפעולה הלא נכונה.
- בקורס הבסיסי למדת לדיבג: לקרוא את ההודעה, למצוא את השורה, לתקן אותה.
- מציאת ותיקון באגים הם חלק נורמלי מכל שלב במחזור החיים.
English
Computing is collaborative
- Most real programs are built by a team, not one person.
- People share ideas, split the work, and check each other's code.
- Different people bring different views, which makes the program better.
עברית
מחשוב הוא עבודה צוותית
- רוב התוכניות בפועל נבנות על ידי צוות, ולא על ידי אדם יחיד.
- אנשים משתפים רעיונות, מחלקים את העבודה ובוחנים זה את קודו של זה.
- לאנשים שונים יש גישות שונות, מה שמוביל ליצירת תוכנית טובה יותר.
English
Common mistakes
- Computing is problem-solving with data, not just typing code.
- An algorithm is a clear, finite sequence of steps.
עברית
טעויות נפוצות
- מחשוב הוא פתרון בעיות באמצעות נתונים, ולא רק הקלדת קוד.
- אלגוריתם הוא סדרה ברורה ומוגבלת של צעדים.
English
What is next
- This course follows the 5 Big Ideas of AP CSP: Creative Development, Data, Algorithms & Programming, Computer Systems & Networks, and the Impact of Computing.
- Next lesson we look at bits and binary — how computers store data with 0s and 1s.
- First, try the small task below — take an input, process it, and print the output, just like the example above.
עברית
מה תהיה ההמשך
- קורס זה מבוסס על ה-5 הרעיונות המרכזיים של AP CSP: פיתוח יצירתי, נתונים, אלגוריתמים ותכנות, מערכות מחשב ורשתות, והשפעת המחשוב.
- בשיעור הבא נסתכל על ביטים ובין-ארי — כיצד מחשבים מאחסנים נתונים עם 0s ו1s.
- קודם כל, נסה לבצע את המשימה הקטנה להלן – קח קלט, עיבוד אותו והדפס את הפלט, בדיוק כמו בדוגמה למעלה.
Explore · חקור
Input → process → output · כניסה → עיבוד → תוצאה
Every computation takes input, processes it, and gives output. · כל חישוב לוקח כניסה, מעבד אותה, ומספק תוצאה.
Try the three steps yourself. The input is already given as the variable name. Process it into a greeting, then output it: print Hello, followed by the name. · נסה את שלושת השלבים בעצמך. ה-כניסה נתונה כבר כמשתנה name. עבד אותה להודעת ברכה, ואז הוצא אותה: הדפס Hello, ולאחריו את השם.
Click Run to see the output here. · לחץ על הרץ כדי לראות את התוצא כאן.