Search Header Logo

VIVA 1 and 2 batch B1

Authored by Sneha M

Computers

University

Used 7+ times

VIVA 1 and 2 batch B1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does socket address structure consists of?

family, port, Ip address

family, port, len, Ip address

family,len, zero, port, Ip address

port, Ip address

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Correct syntax of bind() function call

int bind(int, struct sockaddr *, socklen_t*);

int bind(int *, struct sockaddr *, socklen_t);

int bind(int, struct sockaddr *, socklen_t);

int bind(int *, struct sockaddr *, socklen_t*);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Result arguments is used when

data is copied from process to process

data is copied from process to kernel

data is copied from kernel to process

none of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Functions that pass a socket address structure from the process to the kernel

bind, connect, and accept

bind, connect, and sendto

accept, recvfrom, sendto, and getpeername

accept, recvfrom, getsockname, and getpeername

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

function that pass a socket address structure from the kernel to the process

bind, connect, and sendto

accept, recvfrom, getsockname, and getpeername

bind, connect, and accept

accept, recvfrom, accept, and getpeername

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the valid combination of arguments for family and type in socket() call for UDP protocol

SOCK_STREAM, AF_INET

SOCK_DGRAM, AF_INET

SOCK_RAW, AF_INET

SOCK_SEQPACKET, AF_INET

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If client's connect() call receives an ICMP packet for the SYN packet then it is

Hard error

Error due to destination not reachable

Error due to connection request time out

Error due to no process is waiting at the server

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?