class Student {
String name;
int rollNo;
Student(String n, int r) {
name = n;
rollNo = r;
}
void display() {
System.out.println("Name: " + name + ", Roll No: " + rollNo);
}
}
public class Exp1 {
public static void main(String[] args) {
Student s = new Student("Rahul", 101);
s.display();
System.out.println("\nLooping and Branching Demo:")
Practical 1: Program on Class and Object in Java
class Student {
String name;
int rollNo;
Student(String name, int rollNo) {
this.name = name;
this.rollNo = rollNo;
}
static void displayInfo(Student student) {
System.out.println("Student Name: " + student.name);
System.out.println("Roll Number: " + student.rollNo);
}
}
class Main {
public static void main(String[] args) {
Student student1 = new Student("
Aim: To write a Java program demonstrating classes, objects, looping, and branching statements.
code :
class Calculator {
int add(int a, int b) {
return a + b;
} }
public class Exp1 {
public static void main(String[] args) {
Calculator calc = new Calculator();
// Branching (if-else)
int num = 10;
if (num > 0) {
System.out.println(num +
Sons Respiratórios: Traqueal, Normal, Brônquico
Sons Adventícios Descontínuos :Crepitações Finas: agudas (alta frequência); na mesofase ou telofase (meio ou fim da inspiração); ex: trrr bem audível; Objetivo: promover a reexpansão pulmonar, o recrutamento alveolar e aumento de volumes e capacidades pulmonares. Diagnóstico: apresenta alterações dos sons pulmonares compatíveis com possível compromisso da ventilação nas regiões afetadas. Crepitações Grossas: graves (baixa frequência)
Aim: To implement Insertion Sort.
Theory: Insertion sort builds the sorted array one element at a time, like arranging playing cards in your hand. Each element (key) is inserted into its correct place in the already sorted left part by shifting larger elements right. It is stable, in-place and works best on small or nearly sorted data.
Algorithm:
n and the array A.i = 2 to n, set key = A[i] and j = i - 1.j ≥ 1 and A[j] > key, shift A[j]Explain Different File Allocation Techniques
(7 Marks Answer – Operating System)
Sabse pehle Hindi mein samjho 😊
File Allocation Techniques ka matlab hai hard disk mein files ko store karne ke liye disk blocks ko allocate karne ka tarika.
Operating System mein 3 main File Allocation Techniques hoti hain:
1. Contiguous Allocation
2. Linked Allocation
3. Indexed Allocation
1. Contiguous Allocation
Definition: In this technique, a file ke sabhi blocks disk mein continuously (ek ke...
In society, extreme wealth often creates a system where rich people can treat rules like they do not apply to them. When money protects people from getting into trouble, they slowly lose their sense of responsibility toward others. In The Great Gatsby by F. Scott Fitzgerald, this continuous protection from consequences shows how money destroys basic fairness and human empathy. Upper-class status allows elite characters to ignore the law, turning legal rules into things only regular people have to...
Urban area — a built-up area such as a town or city.
Urbanisation — an increasing proportion of people living in urban areas.
Urban growth — an increase in the number of people living in a city.
Migration — the movement of people from one place to another.
Natural increase — when birth rates are higher than death rates.
Megacity — a city with a population of more than 10 million.
World city — a city with major global influence over finance, business, politics and culture.
.Suburbanisation
Definition: