Lecture 2 Flashcards

1
Q

What is a network in the context of computing?

A

A computer network is a set of interconnected nodes or computing devices that exchange data and resources using communication protocols such as TCP/IP, SMTP, and HTTP.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does networking refer to in computing?

A

Networking refers to the practice of connecting computers or other devices to share resources and information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are nodes in a network?

A

Nodes are devices connected to a network, such as computers, servers, routers, switches, and printers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the role of a router in a network?

A

Routers connect different networks together and route data packets to the correct destination network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the function of a switch in a network?

A

Switches connect devices within a network and forward data packets to the correct device based on MAC addresses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are access points in networking?

A

Access points create a wireless network that other devices can connect to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is TCP/IP?

A

TCP/IP (Transmission Control Protocol/Internet Protocol) is a set of networking protocols used for communication between computers on the internet, providing a reliable, connection-oriented communication mechanism.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is HTTP used for?

A

HTTP (Hypertext Transfer Protocol) is an application layer protocol used for transferring hypertext documents on the World Wide Web.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the difference between TCP and UDP?

A

TCP (Transmission Control Protocol) provides reliable, connection-oriented communication, while UDP (User Datagram Protocol) offers connectionless, unreliable communication suitable for real-time applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is FTP and its purpose?

A

FTP (File Transfer Protocol) is a standard network protocol used for transferring files between a client and a server on a computer network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are network topologies?

A

Network topologies describe the physical or logical layout of a network, including how devices are connected and how data flows between them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the client-server model in networking?

A

The client-server model structures applications by dividing tasks between clients, which initiate requests, and servers, which provide resources or services in response.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the java.net package used for?

A

The java.net package in Java provides tools for network programming, including classes and interfaces for sockets, URLs, and network communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are sockets in networking?

A

Sockets are endpoints for communication between two nodes over a network, identified by an IP address and port number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the port number ranges in networking?

A

Port numbers range from 0-65535, with well-known ports (0-1023), registered ports (1024-49151), and dynamic or private ports (49152-65535).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are stream sockets?

A

Stream sockets (TCP) provide reliable, connection-oriented communication between a client and a server, ensuring ordered delivery of data.

16
Q

What are datagram sockets?

A

Datagram sockets (UDP) provide unreliable, connectionless communication between a client and a server, suitable for low-latency real-time communication.

17
Q

What is the purpose of the socket API?

A

The socket API defines functions for creating, configuring, and managing sockets, as well as sending and receiving data.

18
Q

What do ObjectInputStream and ObjectOutputStream do?

A

They allow reading and writing of objects over sockets, handling object serialization and deserialization.

18
Q

What are the steps in socket programming?

A

Steps include creating a socket, binding and listening (server), connecting (client), accepting connections (server), data exchange, and closing the connection.

19
Q

What are input and output streams in Java?

A

InputStream and OutputStream are classes in Java used for reading from and writing to sockets, facilitating data transfer between applications.

20
Q

What is the role of BufferedReader and PrintWriter in socket communication?

A

BufferedReader and PrintWriter are used for text-based communication over sockets, wrapping InputStream and OutputStream for handling text data.

21
Q

How can you configure Windows Defender Firewall for networking?

A

By creating inbound and outbound rules, selecting ports, and setting connection names to allow or block specific network traffic.

21
Q

What are DataInputStream and DataOutputStream used for?

A

These streams are designed for reading and writing primitive data types over sockets in a portable way, useful for structured data transmission.

22
Q

What is communication protocols

A

Rules and conventions that govern data exchange between devices on a network.

23
Q

What is difference between TCP/IP

A

TCP is responsible for breaking data into packets, sending them across a network, and ensuring they arrive in the correct order at the destination.

IP is responsible for addressing and routing packets across networks
. It assigns unique IP addresses to devices and determines the best path for data transmission. IPv4 and IPv6 are the two main versions of IP addressing.

24
Q

What are the two classes responsible for socket programmin

A

The java.net.Socket and java.net.ServerSocket

25
Q

What is the class responsible for URL handling and what is ti used for

A

java.net.URL. The class represents a uniform resource uniform resource locator(URL) and provides methods for parsing, constructing and manipulating URLs.

26
Q

What is responsible for URLConnections and what does it do?

A

The java.net.URLConnection class facilitates communication with remote servers over various network protocols, such as HTTP, HTTPS, FTP, and more.

It provides methods for establishing connections, sending requests, and retrieving responses from servers

27
Q

What is responsible for Datagramm Programming

A

The java.net.DatagramPacket and java.net.DatagramSocket classes enable developers to create and send datagrams (packets) over UDP (User Datagram Protocol) connections.

28
Q

What is a port

A

A port is a logica construct used to uniquely identify a specific process or service runnin on a computer within a network.

29
Q

What is a port number

A

A port number is a 16 bit unsigned integer(0-65535) that is assigned to each network service for identification.

30
Q

What is socket binding

A

When a network service or application start listening for incoming connections, it binds to a specific port number.

31
Q

what are communication protocols

A

Rules and conventions that govern data exchange between devices on a network.

32
Q

what is the funciton of TCP

A

TCP is responsible for breaking data into packets, sending them across a network, and ensuring they arrive in the correct order at the destination.

33
Q

What is the function of IP

A

IP is responsible for addressing and routing packets across networks.
It assigns unique IP addresses to devices and determines the best path for data transmission

34
Q

Mention the types of network topologoies

A

Star Network Topology: Has the router in the middle and one Internet
Ring topology: Circle
Mesh Network Topology
Fully Connected Network Topolgy
Common Bus Network Topology

35
Q

what is a client

A

A client program is a software application that initiates request for resources or services from server.

36
Q

What is a server

A

A server program is a software application that listens to requests from clients and provides requested resources or services.