Saturday, 24 June 2017

Python Basic example - Class - Python 3.6


#Defining Class to total of two variables
class total:
 def setvar(self,x,y):  #defining member functions to get variable from user
    self.x = int (input("enter value of x :->"))
    self.y = int (input("enter value of y :->"))

 def addvar(self): #defining member functions to add variables
        z=int(self.x+self.y)
        print(z)

sum=total()# create class instance
sum.setvar("x","y")
sum.addvar()

Python basic example - To find Maximum number out of three


x = int (input("Enter the value of x:- "))
y = int (input("Enter the value of y:- "))
z = int (input("Enter the value of z:- "))
a = max (x,y,z)
print ("maximum number is :- ",a)

input ("please press enter to exit")
       

VPLS operating Modes

Which two operating modes does VPLS support? (Choose two.)

A. transport mode
B. strict mode
C. port mode
D. loose mode
E. VLAN mode
F. dynamic mode

A and E

Wednesday, 7 June 2017

UDP properties

1. connection-less
2. Latency can cause jitter
3. There are no effects of latency on the sending device with UDP traffic

Which routing protocol still process updates coming from its neighbor over a passive-interface


Answer:- RIP

Which are two MPLS label discovery Mechanisms?

Out of below options which two are correct label discovery mechanisms:-

  1. Targetted
  2. Standard
  3. Strict
  4. Basic 
  5. Extended 
Answer:- Option 4 and 5 are correct.

Basic discovery is also known as Directly Connected MPLS LDP Sessions where LDP peers are directly connected

Extended Discovery is known as inDirectly Connected MPLS LDP Sessions where LDP peers are not directly connected.