#complete crud operation in sql server
*Create sql server
CREATE DATABASE CrudDB; GO USE CrudDB; GO
CREATE TABLE Students ( Id INT PRIMARY KEY IDENTITY(1,1),
Name NVARCHAR(100), Age INT, Email NVARCHAR(100) );
using System;
using System.Data;
using System.Data.SqlClient;
class Program
{
static string connectionString = "Server=localhost;Database=CrudDB;Trusted_Connection=True;...
22
1. Explain the concept of Object-Oriented Programming (OOP) in Java.
Java is a fully object-oriented programming language that follows the core principles of Object-Oriented Programming (OOP): encapsulation, inheritance, polymorphism, and abstraction. In Java, everything is treated as an object, which makes it easy to model real-world scenarios. Encapsulation is achieved using access modifiers and getter/setter methods, ensuring that data is protected from unauthorized access. Inheritance allows...
#Single Inheritance
using System; class Vehicle {
public void Start() {
Console.WriteLine("Vehicle has started."); } }
class Car : Vehicle { public void Drive() {
Console.WriteLine("Car is driving."); } }
class Program { static void Main(string[] args) {
Car myCar = new Car(); myCar.Start(); myCar.Drive(); } }
#Multilevel Inheritance
using System; class Animal {
...print() – displays output.
end=" " – prevents new line after print.
sep="," – separates items with a character.
input() always returns a string.
Add strings = concatenation ("5" + "10" = "510").
Use int() for number input:
➤ num = int(input("Enter a number: "))
int, float, str, bool are common types.
Use type(variable) to check the type.
What is a Security Mechanism?
A security mechanism is a method, tool, or procedure used to protect systems, networks, software, and data from unauthorized access, damage, or theft. It enforces security policies and ensures confidentiality, integrity, and availability (often called the CIA triad) of information.
Common Types of Security Mechanisms:
1. Authentication
Verifies the identity of a user or system.
Examples: Passwords, biometric scans, two-factor authentication (2FA).
2. Authorization
Determines
In game programming, transformation refers to the process of changing an object's position, rotation, or scale within a game world. These changes are typically represented using mathematics, especially vectors and matrices.
There are three main
types of transformations:
1. Translation
Moves an object from one place to another.
Example: Moving a player forward by 5 units.
In 2D/3D games, this is often done by adding a vector to the object’s current position.
2. Rotation
Rotates an object around a point
Artificial Intelligence (AI) is the simulation of human intelligence in machines that are programmed to think, learn, and make decisions. AI systems can perform tasks that typically require human intelligence, such as recognizing speech, understanding language, solving problems, and making predictions.
✅ Main Categories of AI
AI can be categorized in two main ways:
I. Based on Capabilities
1. Narrow AI (Weak AI)
Designed for a specific task
Examples: Siri, Google Assistant, facial recognition systems
2.
Availability Heuristic - Judging based on how easy it is to think of examples or occurrences
Representativeness Heuristic - Judging based on how it resembles another event
Numerosity Heuristic - Judging quantity/probability based on the number of pieces it has been divided into
Anchor and Adjust Bias - Making a guess by anchoring and pivoting around a previous guess. Bias towards under-correction
Above Average Effect - The finding that most people often think that they...
Project Stakeholder – Short Note:
A project stakeholder is any individual, group, or organization that has an interest in or is affected by the outcome of a project. Stakeholders can be internal (like team members, managers, or departments) or external (such as clients, suppliers, investors, or regulatory bodies). They may influence project decisions, provide resources, or be impacted by project deliverables. Effective communication and management of stakeholders are crucial to a project's success,