Network Programming quiz-TCP UDP_socket programming

Network Programming quiz-TCP UDP_socket programming

University

10 Qs

quiz-placeholder

Similar activities

KHỞI ĐỘNG CÙNG MẠNG MÁY TÍNH

KHỞI ĐỘNG CÙNG MẠNG MÁY TÍNH

University

10 Qs

Articular Mechanics and Function

Articular Mechanics and Function

University

10 Qs

DEPTH DIVE

DEPTH DIVE

University

15 Qs

Formula 1

Formula 1

6th Grade - Professional Development

15 Qs

Quiz"izy" Quiz 2

Quiz"izy" Quiz 2

10th Grade - University

12 Qs

TA MODUL 12

TA MODUL 12

University

15 Qs

CN

CN

University

11 Qs

Quiz SSH

Quiz SSH

University

6 Qs

Network Programming quiz-TCP UDP_socket programming

Network Programming quiz-TCP UDP_socket programming

Assessment

Quiz

Other

University

Medium

Created by

prapulla shivraj

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about the bind() function in socket programming?

It associates a socket with a specific port and IP address.

It establishes a connection between client and server.

It sends data over the network.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of the recvfrom() function in UDP socket programming?

To receive data from any client.

To establish a connection with a client.

  • To send data to a specific client.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which protocol is commonly used for DNS queries due to its low overhead?

UDP

TCP

HTTP

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of the UDP header?

8 bytes

16 bytes

32 bytes

64 bytes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a valid reason why a UDP client may not receive a server response?

TCP handshake failed

Server not listening on expected port

Network drops the packet

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a function of the Transport Layer in the OSI model?

Routing

  • Segmentation and reassembly

Flow control

Error control

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the best method for building a high-concurrency TCP server?

Using epoll() or select() for I/O multiplexing

Using a separate thread for each connection

Using blocking sockets in a loop

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?