PYTEST QUIZ DESCRIPTION Total Questions −30 00 Max Time − 15:00 ______ Net Ware protocol provides link-state routing. SAP RIP NLSP NCP Select from the following in which forwarding, the complete IP address of a destination is provided in the routing table. next-hop host-specific network-specific default ______ are the advantages of hierarchical routing. Flexibility Reliability Scalability Portability Select the function that is used to close the tkinter window. destroy() delete() stop() remove() What is a socket? Programming that allows only local computers to communicate with each other TCP connection between local computers only Connection between computers, over UDP only Abstraction of ports Which function is used to set the size of the tkinter window? setsize() . size() geometry() dimension() __________are the types of firewalls. Packet Filtering Dual Homed Gateway Both A and B None of these What is the use of mainloop() function in tkinter window? To create the window screen To hold the window screen To delete the window screen To disable the window screen _____is the default port of SMTP. 25 70 80 85 What does the following regex match? http[s]?://.+? Exact match to 'http[s]?://.+?' 'http://' or 'http[s]://' followed by one or more character 'http://' or 'https://' followed by one or more characters. 'https://' followed by one or more characters. Which technique is used for data protection ?. Data piracy Authentication Encryption None of these one of the following is a path vector routing? exterior gateway protocol inter-domain routing network routing protocol All of these Select which one is used in delivery, the deliverer of the IP packet and the destination are on different networks. a connection-oriented an indirect . a direct none of the above The Routing processor searches in the routing table is known as switch fabric table lookup buffer rolling table Is it possible to set the title for a window after creating it? yes . no maybe yes maybe no What does the following block of code print? url = "https://www.nytimes.com/" html = urllib.request.urlopen(url).read() soup = BeautifulSoup(html, 'html.parser') tags = soup('img') for tag in tags: print(tag.get('src', None)) retrieves and displays the webpage downloads the webpage prints the images from 'www.nytimes.com' prints all the 'img' sources under 'src' from 'www.nytimes.com' What does the following block of code do? mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) mysock.connect(('data.pr4e.org', 80)) cmd = 'GET http://data.pr4e.org/romeo.txt HTTP/1.0\r\n\r\n'.encode() mysock.send(cmd) It sends a request to extract 'romeo.txt' from 'data.pr4e.org' It sends the 'romeo.txt' file to 'data.pr4e.org' It creates a file named 'romeo.txt' It throws an error because a socket cannot use HTTP. _______is the Machine that places the request to access the data Client Machine Server Machine Request Machine None of these Select from the following which one in the routing algorithm can be used for network layer design. shortest path algorithm link-state routing distance vector routing all of the mentioned One of the following the java.net Net Address class represents. Socket Protocol IP Address MAC Address FTP is the …? File transmission protocol File transfer protocol Form transmission protocol Form transfer protocol What does the following block of code do? url = "https://www.nytimes.com" html = urllib.request.urlopen(url, context=ctx).read() soup = BeautifulSoup(html, 'html.parser') retrieves and displays the webpage parses the html content of the "https://www.nytimes.com" webpage. downloads the webpage it does nothing One of the following applications of the Client and Server Model? Email Network Printing World Wide Web . All of these What happens if you fail to stop the stream before closing the socket? Data loss Nothing Logic error Socket lockup TCP groups a number of bytes together______in a packets. user datagram datagram segment packet One of the following is a path vector routing? exterior gateway protocol inter-domain routing network routing protocol All of these Select from the following which command is used to operate TCP/IP routing table how IP route Route . Ipconfig Traceroute Which of the following net is the combination of two or more networks? MAN WAN Internetwork None of these Which of the following topology is the multipoint topology? Bus Star Ring Mesh ______is the Central Computer powerful than other computers in the network. Server . Hub Client Switch Previous Next Total Question16 Wrong Answer13 Right Answer13