🌐

Computer Networks MCQs

998+ questions with answers

551

The File Transfer Protocol is built on __________

a data centric architecture
b service oriented architecture
c client server architecture
d connection oriented architecture
Medium
View Details →
552

In File Transfer Protocol, data transfer cannot be done in __________

a stream mode
b block mode
c compressed mode
d message mode
Medium
View Details →
553

Which methods are commonly used in Server Socket class?

a Public Output Stream get Output Stream ()
b Public Socket accept ()
c Public synchronized void close ()
d Public void connect ()
Medium
View Details →
554

Which constructor of Datagram Socket class is used to create a datagram socket and binds it with the given Port Number?

a Datagram Socket(int port)
b Datagram Socket(int port, Int Address address)
c Datagram Socket()
d Datagram Socket(int address)
Medium
View Details →
555

The client in socket programming must know which information?

a IP address of Server
b Port number
c Both IP address of Server & Port number
d Only its own IP address
Medium
View Details →
556

TCP, FTP, Telnet, SMTP, POP etc. are examples of ___________

a Socket
b IP Address
c Protocol
d MAC Address
Medium
View Details →
557

Which classes are used for connection-less socket programming?

a Datagram Socket
b Datagram Packet
c Both Datagram Socket & Datagram Packet
d Server Socket
Medium
View Details →
558

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()
Medium
View Details →
559

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
Medium
View Details →
560

The Cookie manipulation is done using which property?

a cookie
b cookies
c manipulate
d manipulate cookie
Medium
View Details →
561

Which of the following explains Cookies nature?

a Non Volatile
b Volatile
c Intransient
d Transient
Medium
View Details →
562

Which attribute is used to extend the lifetime of a cookie?

a Higher-age
b Increase-age
c Max-age
d Lifetime
Medium
View Details →
563

Which of the following defines the Cookie visibility?

a Document Path
b LocalStorage
c SessionStorage
d All of the mentioned
Medium
View Details →
564

How can you set a Cookie visibility scope to local Storage?

a /
b %
c *
d #
Medium
View Details →
565

Which of the following is a Boolean cookie attribute?

a Bool
b Secure
c Lookup
d Domain
Medium
View Details →
566

Which of the following function is used as a consequence of not including semicolons, Commas or whitespace in the Cookie value?

a EncodeURIComponent()
b EncodeURI()
c EncodeComponent()
d Encode()
Medium
View Details →
567

What is the constraint on the data per cookie?

a 2 KB
b 1 KB
c 4 KB
d 3 KB
Medium
View Details →
568

What does REST stand for?

a Represent State Transfer
b Representational State Transfer
c Representing State Transfer
d Representation State Transfer
Medium
View Details →
569

Which of the following protocol is used by Restful web services as a medium of communication between client and server?

a HTTP
b FTP
c Gopher
d TELNET
Medium
View Details →
570

Which of the following is not a good practice to create a standard URI for a web service?

a Maintain Backward Compatibility
b Use HTTP Verb
c Using spaces for long resource names
d Use lowercase letters
Medium
View Details →
571

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

a OPTIONS
b DELETE
c POST
d HEAD
Medium
View Details →
572

Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?

a Public
b Private
c Nocache/nostore
d Maxage
Medium
View Details →
573

Which of the following annotation of JAX RS API is used to annotate a method used to create resource?

a @Path
b @GET
c @PUT
d @POST
Medium
View Details →
574

Which of the following annotation of JAX RS API binds the parameter passed to method to a HTTP matrix parameter in path?

a @PathParam
b @QueryParam
c @MatrixParam
d @HeaderParam
Medium
View Details →
575

The term that is used to place packet in its route to its destination is called __________

a Delayed
b Urgent
c Forwarding
d Delivering
Medium
View Details →
576

A second technique to reduce routing table and simplify searching process is called _________

a Network-Specific Method
b Network-Specific Motion
c Network-Specific Maintaining
d Network-Specific Membership
Medium
View Details →
577

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

a Revolving table
b Rotating Table
c Routing Table
d Re-allocate table
Medium
View Details →
578

Several techniques can make size of routing table manageable and also handle issues such as __________

a Maturity
b Error reporting
c Tunneling
d Security
Medium
View Details →
579

Host-specific routing is used for purposes such as checking route or providing _____

a Network Measures
b Security Measures
c Routing Measures
d Delivery Measures
Medium
View Details →
580

In Unicast Routing, Dijkstra algorithm creates a shortest path tree from a ________

a Graph
b Tree
c Network
d Link
Medium
View Details →
581

In Multicast Routing Protocol, flooding is used to broadcast packets but it creates ________

a Gaps
b Loops
c Holes
d Links
Medium
View Details →
582

RPF stands for __________

a Reverse Path Forwarding
b Reverse Path Failure
c Reverse Packet Forwarding
d Reverse Protocol Failure
Medium
View Details →
583

LSP stands for __________

a Link Stable Packet
b Link State Packet
c Link State Protocol
d Link State Path
Medium
View Details →
584

The CIDR value represents ____________

a Number of bits in the network
b Number of total bits in the IP address
c Number of bits in the host
d Number of hosts remaining
Medium
View Details →
585

Which class does the IP address 192.168.10.5/24 represent?

a Class A
b Class C
c Class B
d Class D
Medium
View Details →
586

When was the CIDR system created?

a 2006
b 1993
c 1988
d 1998
Medium
View Details →
587

Determine the number of subnets for the given IP 192.13.67.0/28 using the CIDR value.

a 16
b 14
c 4
d 8
Medium
View Details →
588

Determine the total number of valid IPs in each subnet for the given IP 192.168.10.0/26 using the CIDR value.

a 26
b 128
c 6
d 64
Medium
View Details →
589

Which of the following cannot be considered as characteristic to create virtual local area networks using switch?

a Port numbers of the switch
b IP addresses of the stations
c Port numbers of the stations
d MAC addresses of the stations
Medium
View Details →
590

Which method(s) can be used to establish communication between two different virtual area networks?

a TDM
b Frame tagging and table maintenance
c Frame tagging and TDM
d TDM, frame tagging and table maintenance
Medium
View Details →
591

Why is it important to add VLAN identifiers to the frames when they move from one VLAN to another VLAN?

a To identify which VLAN they belong to
b To identify which switch they belong to
c To identify which host they belong to
d To identify which router they belong to
Medium
View Details →
592

What can be achieved by partitioning the whole local area network into virtual local area networks?

a Security and cost reduction
b Security, cost reduction, efficiency and application management
c Efficiency and application management
d Security, cost reduction and efficiency
Medium
View Details →
593

Which of the following is a disadvantage of virtual local area network?

a Division of domains
b Adds security
c Latency reduction
d VLAN hooping
Medium
View Details →
594

Which VLAN receives a frame that does not contain a VLAN tag?

a Data VLAN
b Management VLAN
c Default VLAN
d Native VLAN
Medium
View Details →
595

In how many ways stations can be configured to be grouped into different virtual local area networks?

a Manual and semi-automatic configuration
b Manual and automatic configuration
c Automatic, manual and semi-automatic
d Automatic and semi-automatic
Medium
View Details →
596

How many bits are required to represent a virtual local area network identifier in an ethernet frame?

a 16 bits
b 12 bits
c 12 bytes
d 2 bytes
Medium
View Details →
597

IPSec is designed to provide security at the _________

a transport layer
b network layer
c application layer
d session layer
Medium
View Details →
598

In tunnel mode, IPSec protects the ______

a Entire IP packet
b IP header
c IP payload
d IP trailer
Medium
View Details →
599

Network layer firewall works as a ________

a frame filter
b packet filter
c signal filter
d content filter
Medium
View Details →
600

Network layer firewall has two sub-categories called ____________

a stateful firewall and stateless firewall
b bit oriented firewall and byte oriented firewall
c frame firewall and packet firewall
d network firewall and data firewall
Medium
View Details →