| Class XII |
Computer Science |
Computer Science |
1 |
p te ha r C Exception Handling in Python Ilikemycodetobeelegantandefficient.Thelogic shouldbestraightforwardtomakeithardforbugstohide, thedependenc... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
its execution. For example, trying to open a file that does not exist, division by zero and so on. Such types of errors might disrupt the normal ex... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
cannot be opened. eXCeptioH andling pytHon 3 Reprint 2026-27 4 KeyboardInterrupt It is raised when the user accidentally hits the Delete or Esc key... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
to test an expression in the program code. If the result after testing comes false, then the exception is raised. This statement is generally used ... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
and their handling: • Python categorises exceptions into distinct types so that specific exception handlers (code to handle that particular excepti... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
first searches for the method in which the error has occurred and the exception has been raised. If not found, then it searches the method from whi... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
the exception-name error is encountered] Consider the Program 1-2 given below: Program 1-2 Using try..except block print ("Practicing for try block... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
till it is handled. If no match is found, then the program terminates. However, if an exception is raised for which no handler is created by the pr... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
else: print ("The result of division operation is ", quotient) finally: print ("OVER AND OUT") 14 ComputeSCienC- ClaSXii Reprint 2026-27 While exec... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
does not terminate abruptly. • When an exception occurs during execution of a program and there is a built-in exception defined for that, the error... |
|
| Class XII |
Computer Science |
Computer Science |
1 |
3 to test the division expression in the program. 5. Define the following: a) Exception Handling b) Throwing an exception c) Catching an exception ... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
p t e ha r C Computer Networks “Hoaxesuseweaknessesinhuman behaviortoensuretheyarereplicatedand distributed. Inotherwords,hoaxespreyon theHumanOper... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
wireless media like air. In a communication network, each device that is a part of a network and that can receive, create, store or send data to di... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
1 969 1983 ARPANET became 1974 Domain Name System functional by introduced connecting UCLA and SRI The term Internet was The Berners-Lee at CERN de... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
a school, college, or university campus. The connectivity is done by means of wires, Ethernet cables, fibre optics, or Wi-Fi. A Local Area Network ... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
world. Whether the bank’s network is a by connecting a LAN to other LANs (Figure 10.7) via wired/wireless media. Large business, educational LAN, M... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
Ethernet Card Ethernet card, also known as Network Interface Card (NIC card in short) is a network adapter used to set up a wired network. It acts ... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
devices come at the same time, they will collide. Activity 10.3 1 2 3 4 5 6 7 8 Find and list a few ISPs in your region. Figure 10.11:A network hub... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
router A router can be wired or wireless. A wireless router can provide Wi-Fi access to smartphones and other devices. Usually, such routers also c... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
integrated with it. 10.5 n etworkIng topologIes We have already discussed that a number of computing devices are connected together to form a Local... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
by any of the nodes connected to the bus. 192 ComputerSCienCe- laSSXii Reprint 2026-27 Bus Figure 10.17:A bus topology In this topology, a single b... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
10.19:A hybrid topology 10.6 I dentIfyIng n odes In a n etworked c ommunIcatIon Each node in a network should be uniquely identified so that a netw... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
(IPV4 in short), is a 32 bit numeric address, written as four numbers separated by periods, where each number is the decimal (base-10) representati... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
the technical fields of computer communications. It is being used by everyone in the society as is evident from the increasing use of online tools ... |
|
| Class XII |
Computer Science |
Computer Science |
10 |
Protocol is a set of rules which is used to retrieve linked web pages across the web. The more secure and advanced version is HTTPS. 196 ComputerSC... |
|