VIVA 1 and 2 batch B1

VIVA 1 and 2 batch B1

University

8 Qs

quiz-placeholder

Similar activities

mikrotik

mikrotik

3rd Grade - University

10 Qs

RandonQuestionRoutingChapter10

RandonQuestionRoutingChapter10

University

12 Qs

IP Address Basics

IP Address Basics

University

12 Qs

Unit 10 - Packet Switching

Unit 10 - Packet Switching

12th Grade - University

10 Qs

IP Addressing

IP Addressing

University

11 Qs

pointers and structures

pointers and structures

University

10 Qs

Arrays in C (II yr 02.07.2020)

Arrays in C (II yr 02.07.2020)

University

10 Qs

VLSM

VLSM

University

10 Qs

VIVA 1 and 2 batch B1

VIVA 1 and 2 batch B1

Assessment

Quiz

Computers

University

Hard

Created by

Sneha M

Used 7+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The client in socket programming must know which information?

IP address of Server

Port number

Both IP address of Server & Port number

Only its own IP address