Bu'aan kutaa 12ffaa ba'eera; bu'aa kee eessatti akka ilaaltu

Yaadannoo boqonnaa fi gaaffii shaakalaa

Boqonnaa 6 Teeknooloojii Odeeffannoo kutaa 12: Bu'uuraalee Programming

Wanti fuula kana irra jiru hundi boqonnaa 6 kitaaba Teeknooloojii Odeeffannoo kutaa 12 tiif: wanta boqonnaan haguugu, yaadannoo gabaabaa, gaaffii shaakalaa deebii isaanii waliin, fi viidiyoo barnootaa bakka jirutti.

Google Play irraa buufadhaa
5
Kaardii
10
Gaaffii shaakalaa boqonnaa 6

Boqonnaan 6 maal haguuga

  1. 1.Program Flow Controls and Syntax in Python
  2. 2.Conditionals Program Flow Controls
  3. 3.Loops or Iteration Program Flow Controls
  4. 4.Comments in Python
  5. 5.Python Interpreter
  6. 6.Testing and Debugging Programs

Yaadannoo gabaabaa boqonnaa 6

Kaardiiwwan fuula Teeknooloojii Odeeffannoo kutaa 12 irratti boqonnaa kana jala galmaa'an. Tokko tokkoon bani.

Yoom akka itti fayyadamtu

Yeroo adeemsa idilee for yookiin while loop jijjiiruu barbaaddu fayyadami.

Of eeggadhu

break loopicha guutummaatti battalatti dhaabee baasa, continue garuu irra deddeebii ammaa qofa dhiisee gara isa itti aanutti darba.

Grade 12 Information Communication Technology, fuula 164 irraa eegalee irraa qophaa'e; osoo hin ba'in dura yeroo lama mirkanaa'e

Yoom akka itti fayyadamtu

Yeroo koodii sararaan qortuu fi breakpoint fayyadamtee dogoggora loojikii hordoftu fayyadami.

Of eeggadhu

Go hanga breakpoint qaqqabutti walitti fufinsaan hojjeta, Step garuu tarkaanfiiwwan keessoo hunda bal'inaan agarsiisa.

Grade 12 Information Communication Technology, fuula 164 irraa eegalee irraa qophaa'e; osoo hin ba'in dura yeroo lama mirkanaa'e

Yoom akka itti fayyadamtu

Yeroo koodiin Paayitoni akkamitti gara hojiitti akka jijjiiramu ibsitu fayyadami.

Of eeggadhu

Koodiin jalqabaa (.py) gara baayitkoodiitti (.pyc) jijjiirama, sana booda Python Virtual Machine (PVM) tu sararaan sarara raawwata malee qajeelatti CPU miti.

Grade 12 Information Communication Technology, fuula 164 irraa eegalee irraa qophaa'e; osoo hin ba'in dura yeroo lama mirkanaa'e

WaamichaJalqabaXumura (Kan hin dabalatamne)TarkaanfiiTarree Uumamu
range(x)0xx10,1,2,…,x−10, 1, 2, \dots, x-1
range(x, y)xxyy1x,x+1,…,y−1x, x+1, \dots, y-1
range(x, y, z)xxyyzzx,x+z,x+2z,…x, x+z, x+2z, \dots

Yoom akka itti fayyadamtu

Yeroo for loop keessatti gatiiwwan jalqabaa, xumuraa fi tarkaanfii adda addaatiin lakkoofsa to'attu fayyadami.

Of eeggadhu

Gatiin xumuraa yeroo hunda hin dabalatamu. Fakkeenyaaf, range(5) 4 irratti dhaabbata malee 5 hin uumu.

Grade 12 Information Communication Technology, fuula 164 irraa eegalee irraa qophaa'e; osoo hin ba'in dura yeroo lama mirkanaa'e

Yoom akka itti fayyadamtu

Yeroo koodii if, elif, else, for fi while Paayitoni keessatti barreessitu yookiin sirreessitu fayyadami.

Of eeggadhu

Bakka == tokkicha = fayyadamuun dogoggora fida. Dhuma irratti tuqaa lama (:) dhiisuun yookiin kutaa tokko keessatti saaxila wal hin gitne fayyadamuun dogoggora uuma.

Grade 12 Information Communication Technology, fuula 164 irraa eegalee irraa qophaa'e; osoo hin ba'in dura yeroo lama mirkanaa'e

Gaaffii shaakalaa boqonnaa 6

Gaaffii filannoo 10 boqonnaa kana irratti barreeffaman, tokkoon tokkoon isaanii deebii fi sababa qabu. Deebii banuu dura yaali. Gaaffiin kun Ingiliffaa tiin.

Gaaffii 1

Which of the following is NOT one of the three main types of program flow control in Python?

  1. A.Sequential
  2. B.Branching (conditional)
  3. C.Looping (iterative)
  4. D.Commenting
Deebii fi sababa agarsiisi

Deebii: D Commenting

Sababa

Python implements program flow control using three constructs: sequential, branching (conditional), and looping (iterative). Comments are descriptive texts ignored by the interpreter and are not a flow control construct.

Gaaffii 2

In Python, which character is placed at the beginning of a line to write a comment?

  1. A.//
  2. B.#
  3. C.$
  4. D.%
Deebii fi sababa agarsiisi

Deebii: B #

Sababa

In Python, comments are denoted by the hash symbol (#). Anything written after the # symbol on that line is ignored by the Python interpreter.

Gaaffii 3

What sequence of numbers is generated by the Python expression range(5)?

  1. A.0, 1, 2, 3, 4, 5
  2. B.1, 2, 3, 4, 5
  3. C.0, 1, 2, 3, 4
  4. D.1, 2, 3, 4
Deebii fi sababa agarsiisi

Deebii: C 0, 1, 2, 3, 4

Sababa

The range(x) function starts counting from 0 by default and stops at x - 1, excluding the number x itself. Therefore, range(5) generates 0, 1, 2, 3, and 4.

Gaaffii 4

What is an unexpected problem or fault in a computer program called?

  1. A.A script
  2. B.A bug
  3. C.A loop
  4. D.A block
Deebii fi sababa agarsiisi

Deebii: B A bug

Sababa

A bug is an unexpected problem in your program that prevents it from running correctly. Debugging is the process of locating and fixing these problems.

Gaaffii 5

What list of numbers is generated by the function range(1, 10, 2)?

  1. A.1, 2, 3, 4, 5, 6, 7, 8, 9, 10
  2. B.1, 3, 5, 7, 9
  3. C.2, 4, 6, 8, 10
  4. D.1, 3, 5, 7, 9, 11
Deebii fi sababa agarsiisi

Deebii: B 1, 3, 5, 7, 9

Sababa

In range(x, y, z), x is the start value (1), y is the end limit (10, excluded), and z is the step size (2). This produces 1, 3, 5, 7, and 9.

Gaaffii 6

What happens when the break statement is executed inside a loop?

  1. A.It skips only the current iteration and proceeds to the next.
  2. B.It restarts the loop from the first element.
  3. C.It stops the loop completely before looping through all items.
  4. D.It pauses program execution until input is provided.
Deebii fi sababa agarsiisi

Deebii: C It stops the loop completely before looping through all items.

Sababa

The break keyword immediately stops the execution of a loop, causing the program to exit the loop even before reaching the final iteration.

Gaaffii 7

In the Python IDLE editor, which shortcut key under the Format menu comments out a selected region of code?

  1. A.Alt+1
  2. B.Alt+2
  3. C.Alt+3
  4. D.Alt+4
Deebii fi sababa agarsiisi

Deebii: C Alt+3

Sababa

In Python IDLE, you can use Alt+3 to comment out a selected block of code. To uncomment the region, you use Alt+4.

Gaaffii 8

During the Python interpreter process, what is the role of the Python Virtual Machine (PVM)?

  1. A.It writes source code into a file with a .py extension.
  2. B.It compiles plain Python code into a .pyc bytecode file.
  3. C.It reads instructions in the bytecode one by one and executes them.
  4. D.It checks syntax rules and corrects indentation errors automatically.
Deebii fi sababa agarsiisi

Deebii: C It reads instructions in the bytecode one by one and executes them.

Sababa

The Python Virtual Machine (PVM) is the runtime component that loads the compiled bytecode (.pyc file), reads each instruction one by one, and executes the specified operations.

Gaaffii 9

How does the continue keyword differ from the break keyword inside a Python loop?

  1. A.<code>continue</code> stops the current iteration and moves to the next, while <code>break</code> terminates the entire loop.
  2. B.<code>continue</code> terminates the whole loop, while <code>break</code> moves to the next iteration.
  3. C.<code>continue</code> pauses execution at a breakpoint, while <code>break</code> continues execution.
  4. D.<code>continue</code> is used only in <code>if</code> statements, while <code>break</code> is used only in loops.
Deebii fi sababa agarsiisi

Deebii: A <code>continue</code> stops the current iteration and moves to the next, while <code>break</code> terminates the entire loop.

Sababa

The continue statement skips the remainder of the current loop iteration and advances directly to the next iteration. In contrast, break exits and terminates the entire loop immediately.

Gaaffii 10

In the Python IDLE Debug Control window, which button allows you to see all internal commands Python uses to execute the current line before advancing?

  1. A.Go
  2. B.Step
  3. C.Over
  4. D.Quit
Deebii fi sababa agarsiisi

Deebii: B Step

Sababa

In IDLE Debug mode, clicking Step lets you see all internal commands Python executes for the current line and advance to the next line. Go runs until a breakpoint is hit, and Over provides line-by-line execution.

Appiin boqonnaa kana irratti gaaffii 11 qaba; utuu hojjettuu ni sirreessa. Kan asii jiran 10 jalqabaa ti.

Fuula kitaabaa boqonnaa 6

Kitaaba barataa Teeknooloojii Odeeffannoo kutaa 12 guutuu, PDF bilisaan.

Maxxansa Ministeera Barnootaa, Ingiliffaa, Fuula 210

PDF buufadhaa

Boqonnaa kana appii keessatti shaakali

Temari boqonnaa kana gara shaakala yeroon daangeffametti jijjiira; utuu hojjettuu ni sirreessa; wanti si hin galinis barsiisaa AI tiin ni ibsama.

Bilisaan jalqabi

Temari.et appii Android qaba; Google Play irratti bilisaan argama.

SeeniHerrega kee bani