Computer Networking: Hardware, Software, and Models
Network Hardware and Software Essentials
Understanding the distinction between network hardware and network software is fundamental to grasping how modern communication systems function.
Network Hardware
Network hardware refers to the physical devices used to connect computers and other devices in a network to enable communication.
Key Components of Network Hardware
- Computers/Nodes: Devices like PCs, laptops, and servers that send and receive data.
- Network Interface Card (NIC): Allows a device to connect
Java System Design and Implementation Exercises
Experiment 2: Movie Ticket Booking System
Design and implement an Object-Oriented Movie Ticket Booking System using appropriate class relationships (association, aggregation, composition) to manage movies, shows, seats, and bookings.
import java.util.*;
class Seat {
int seatNumber;
boolean isAvailable;
Seat(int num) {
seatNumber = num;
isAvailable = true;
}
}
class Show {
int showId;
ArrayList<Seat> seats = new ArrayList<>();
Show(int id, int Read More
Essential Python Programming Examples for Beginners
Unit Conversions
print("Select Conversion:")
print("1. Rupees to Dollar")
print("2. Celsius to Fahrenheit")
print("3. Inches to Feet")
choice = int(input("Enter your choice: "))
if choice == 1:
rupees = float(input("Enter amount in Rupees: "))
dollars = rupees / 83 # approx rate
print("Amount in Dollars =", dollars)
elif choice == 2:
c = float(input("Enter temperature in Celsius: "))
f = (c * 9/5) + 32
print("Temperature in Fahrenheit =", f)
elif choice == 3:
inches = Read More
Computer Security: Buffer Overflows and Encryption Fundamentals
Computer Security Fundamentals
Computer Security: The protection afforded to an automated information system to attain the applicable objectives of preserving the Integrity, Availability, and Confidentiality of information system resources, including hardware, software, firmware, information, data, and communication.
Buffer Overflow Vulnerabilities
Buffer overflow/overrun occurs when a process attempts to store data beyond the limits of a fixed-size buffer, overwriting adjacent memory locations. Buffers
Read MoreEssential Java Interview Questions and Answers
Java Super Keyword
Question: Explain the functionality of the super keyword in Java.
Answer: The super keyword refers to the immediate parent class object. It is used to:
- Access parent class data members hidden by child class data members.
- Call parent class methods when overridden in the child class.
- Invoke the parent class constructor using
super().
Throw vs Throws in Java
Question: Differentiate between throw and throws keywords in Java.
Answer: throw is used inside a method or block to explicitly throw
ARM LPC1768 Embedded C Programming and Architecture
ARM LPC1768 Embedded C Programming Examples
LED Blinking Program for ARM LPC1768
#include <LPC17xx.h>
void delay() {
for(int i=0; i<1000000; i++);
}
int main(void) {
LPC_GPIO2->FIODIR |= (1<<0); // Set P2.0 as output
while(1) {
LPC_GPIO2->FIOSET = (1<<0); // LED ON
delay();
LPC_GPIO2->FIOCLR = (1<<0); // LED OFF
delay();
}
}Switch Controlled LED Interfacing
#include <LPC17xx.h>
int main(void) {
LPC_GPIO2- Read More
