Intro to Internet-Protocol(intro)


Good Afternoon boys

In today's session, we will divide the class in two parts.
In the first half , we will learn about PROTOCOLS used by computers and in the second half, we will revise IF Decision Construct, as requested by few students.
--------------------------------------------------------------------

The Google Meeting ID

----------------------------------------------------------------------
By the end of today's session, you will be able to

  • Understand the need for protocols while communicating on the internet.
  • Understand the variety of ways the computers can communicate.
  • Identify the basic protocols used on the internet.
--------------------------------------------------------------------------------------------------------------------

Network protocols made the modernization of the Internet possible. 
Such protocols allow computers to communicate with other computers without users having to know what is happening in the background.



In Computer Science

Protocol is

  • a set of rules or procedures for transmitting data between electronic devices, such as computers.
  • In order for computers to exchange information, there must be 
    • a  pre-existing agreement as to how the information will be structured and 
    • how each side will send and receive it.
  • Without a protocol, a transmitting computer, for example, could be sending its data in 8-bit packets while the receiving computer might expect the data in 16-bit packets. 
  • Protocols are established by international or industry wide organizations. 
    Perhaps the most important computer protocol is OSI (Open Systems Interconnection), a set of guidelines for implementing networking communications between computers

·       Among the most important sets of Internet protocols are TCP/IPHTTPS, SMTP, FTP and DNS
-------------------------------------------------------------------------------------------
     
     The second part of today's discussion is based on the DECISION CONSTRUCT-the IF statement
                            Decision Structures
  decision structure is a construct in a computer program that allows the program to make a decision and change its behavior based on that decision. 
The decision is made based on the outcome of a logical test
A logical test is a calculation whose outcome is either true or false.

If statements


The if statement is the simplest example of a decision structure in Python. 
In an if statement a logical test is made which can evaluate to either true or false. If the result of the test is true, the statements in the if branch are executed.
 If the result of the test is false, the statements in the else branch are executed. Once the statements in the appropriate branch have been executed, the flow of execution continues on to the statements that follow the if statement.

------------------------------------------------------------------------------------
Question1. Write a program in Python
1. to accept a number from the user
2. check whether +ve or -ve
3. print the output
-----------------------------------------------------------------
Question2. Write a program in Python
1. to accept the student's age
2. check whether it is more than 3 but less than 5
3. if  Yes, print can be admitted to NURSERY
4. Else, Cannot be admitted to NURSERY

Comments

Post a Comment

Popular posts from this blog

HOLIDAY HW