Top 1000+ Solved Computer Networks MCQ Questions Answer
Q. Which classes are used for connection-less socket programming?
a. datagram socket
b. datagram packet
c. both datagram socket & datagram packet
d. server socket
Q. In Inet Address class, which method returns the host name of the IP Address?
a. public string get hostname()
b. public string gethostaddress()
c. public static inetaddress get localhost()
d. public getbyname()
Q. Cookies were originally designed for ____________
a. client side programming
b. server side programming
c. both client side programming and server side programming
d. socket programming
Q. The Cookie manipulation is done using which property?
a. cookie
b. cookies
c. manipulate
d. manipulate cookie
Q. Which of the following explains Cookies nature?
a. non volatile
b. volatile
c. intransient
d. transient
Q. Which attribute is used to extend the lifetime of a cookie?
a. higher-age
b. increase-age
c. max-age
d. lifetime
Q. Which of the following defines the Cookie visibility?
a. document path
b. localstorage
c. sessionstorage
d. all of the mentioned
Q. Which of the following can be used to configure the scope of the Cookie visibility?
a. path
b. domain
c. both path and domain
d. server
Q. What does REST stand for?
a. represent state transfer
b. representational state transfer
c. representing state transfer
d. representation state transfer
Q. Which of the following HTTP methods should be idempotent in nature?
a. options
b. delete
c. post
d. head
Q. Next-Hop Method is used to reduce contents of a _________
a. revolving table
b. rotating table
c. routing table
d. re-allocate table
Q. In Unicast Routing, Dijkstra algorithm creates a shortest path tree from a ________
a. graph
b. tree
c. network
d. link