BusGov Midterm

2024 1a. Due to the Bundestag’s electoral law, the fraction of seats won by political parties is determined by the fraction of so called second-votes received at the national level. The constituency-level election only determine the identity of who is elected. It follows that the political platforms of the candidates reflect entirely those of their respective parties. For a party, the marginal cost of expressing a candidate in the constituency election is nil. Expressing a popular candidate in

...

See on Student Notes »

Exam paper

The history of Java began in 1991 at Sun Microsystems, created by James Gosling and his team. Originally intended for interactive television and consumer electronic devices, the language's development quickly shifted to the burgeoning World Wide Web due to its platform-independent design.
Here is a breakdown of Java's history and key milestones:
Early Development (1991–1995)
 * 1991: The Green Project 🌳
   * Development began at Sun Microsystems by a team led by James Gosling, Mike Sheridan,

...

See on Student Notes »

Cheat Sheet

1. Compare the Natural Law paradigm to the Legal Positivist paradigm. Briefly list some

strengths and weaknesses of each perspective. Where does the ‘Letter from a Birmingham

Jail’ fit among these two perspectives?

Natural Law Paradigm: 

Core Idea - A law is only valid if it matches what’s fair, moral, or based on higher principles (like justice or human rights)

Strengths - Provides a basis for challenging unjust laws and connects law to universal human rights

Weaknesses - Morality means...

See on Student Notes »

no tego bagno

  • Epitet – określenie rzeczownika uwydatniające jego specjalne cechy (może to być rzeczownik, przymiotnik lub imiesłów); np. niska cena, słownik języka polskiego
  • Oksymoron – epitet sprzeczny, np. sucha woda
  • Porównanie – zestawienie dwóch przedmiotów lub zjawisk, które mają wspólną cechę (często robi się to przy użyciu takich słów jak: jak, jakby, jak gdyby, niczym lub na kształt); np. leje jak z cebra, stoi dumna niczym pierwszy przebiśnieg na polanie
  • Porównanie
...

See on Wikiteka »

Exami

(selection Sort)#include <stdio.h>


// Function to perform selection sort

void selectionSort(int arr[], int n)

 { int i, j, minIndex, temp;

 for (i = 0; i < n - 1; i++) { minIndex = i;

// Find the index of the minimum element in the unsorted part


for (j = i + 1; j < n; j++) {

if (arr[j] < arr[minIndex]) { minIndex = j;}

 }

// Swap the found minimum element with the first element

if (minIndex != i) { temp = arr[i];

arr[i] = arr[minIndex]; arr[minIndex] = temp;}

}

}


// Function

...

See on Student Notes »

produccion

Exterior del Bovino

  • Definición: Estudio del aspecto exterior → bondades y defectos productivos.
  • Formas corporales:
  • 🥩 Bovino de carne → forma rectangular.
  • 🥛 Bovino de leche → forma triangular.

Medidas principales:

Perímetro torácico: cinchera/retroescápula.

Barril/abdomen: límite dorso-lomo.

Alzada: altura a la cruz.

Largo del cuerpo: testuz hasta encole.

Grupa: largo (cadera–nalga), ancho (caderas).

Cabeza: largo (testuz–morro), ancho (ángulos ojos), espesor (frente–quijada)

...

See on Xuletas »

CS2030

Class: The class is a user-defined data structure that binds the data members & operation or methods into a single unit. 

Object: is an instance of class. Use obj to perform actions on obj or allow interactions. 

Method: Action to perform using attributes.

Attributes: characteristic or properties of class == instance variable (before method and belong to one obj), accessible through static and public method

Class variable: declared with static; shared among all objects of the class.

Local

...

See on Wikiteka »

wwwwww

-law abding,upright,honest,self-respecting,disciplined,punctual,charitable,helpful,merciful and forgiving.
-your mind and body are closely related in such a way that if you feel stressed out you are likely to experience fatigue and muscle tension.Similarly,if you feel happy you are likely to have more mental energy and physical vitality.
-to gain essential nutrients--->grains,fruits,vegetables,milk products,animal products and beans and oily foods.
-mushrooms,bamboo shoots,nuts,berry,leaves and

...

See on Student Notes »

Lab exam

TCP SERVER
#include<stdio.h> 
#include<stdlib.h>
 #include<string.h> 
#include<unistd.h> 
#include<arpa/inet.h>
int main()
}
char *ip="127.0.0.1";
int port = 5566;
int server_sock.client_sock;
struct sockaddr_in server_addr,client_addr;
socklen_t addr_size;
char buffer[1024]:
int n;
server_sock = socket(AF_INET,SOCK_STREAM,0);
if(server_sock<0){
perror("[-]socket error");
exit(1);
}
printf("[+]TCP server socket created.\n");
memset(&server_addr, 10, sizeof(server_
...

See on Student Notes »