Top 1000+ Solved Computer Networks MCQ Questions Answer

From 406 to 420 of 952

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

  • c. both datagram socket & datagram packet

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()

  • a. public string get hostname()

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

  • b. server side programming

Q. The Cookie manipulation is done using which property?

a. cookie

b. cookies

c. manipulate

d. manipulate cookie

  • a. cookie

Q. Which of the following explains Cookies nature?

a. non volatile

b. volatile

c. intransient

d. transient

  • 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

  • c. max-age

Q. Which of the following defines the Cookie visibility?

a. document path

b. localstorage

c. sessionstorage

d. all of the mentioned

  • 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

  • d. server

Q. Which of the following is a Boolean cookie attribute?

a. bool

b. secure

c. lookup

d. domain

  • b. secure

Q. What is the constraint on the data per cookie?

a. 2 kb

b. 1 kb

c. 4 kb

d. 3 kb

  • c. 4 kb

Q. What does REST stand for?

a. represent state transfer

b. representational state transfer

c. representing state transfer

d. representation state transfer

  • b. representational state transfer

Q. Which of the following HTTP methods should be idempotent in nature?

a. options

b. delete

c. post

d. head

  • b. delete

Q. Next-Hop Method is used to reduce contents of a _________

a. revolving table

b. rotating table

c. routing table

d. re-allocate table

  • c. routing table
Subscribe Now

Get All Updates & News