# **Program 1: NumPy Array Operations**
import numpy as np
arr=np.array([[1,2,3],[4,5,6],[7,8,9]])
print("Sum of all columns:",np.sum(arr,axis=0))
print("Product of all rows:",np.prod(arr,axis=1))
print("Last two rows and columns:\n",arr[1:,1:])
arr2=np.array([[9,8,7],[6,5,4],[3,2,1]])
print("Element-wise addition:\n",arr+arr2)
.
.
# **Program 2: Vowel Frequency in Each Word**
sentence=input("Enter a sentence in lowercase: ")
vowels='aeiou'
for w in sentence.split():
print(f"{w}: {sum(w.count(v) for v...
## **1. a) Define Java Bytecode. Justify that Java is platform independent
**Java Bytecode** is the intermediate code generated by the Java compiler after compiling a Java program. When you write a Java source file (`.java`) and compile it using `javac`, the compiler converts it into a bytecode file (`.class`). This bytecode is not specific to any machine and can be executed by the **Java Virtual Machine (JVM)** on any platform.
**Platform independence** means that a Java program can run on any
...Cloud computing is a transformative technology that enables users to access computing resources over the internet rather than on physical devices or local servers. Below is a detailed note on cloud computing, covering key concepts, types, benefits, and use cases.
Cloud computing refers to the delivery of various services over the internet, including storage, processing, networking, databases, software, and more. It allows businesses and individuals to use computing resources...
Q1
Principles of Non-Discrimination in International Trade Law
In international trade law, non-discrimination is a fundamental principle that ensures equal treatment of goods, services, and service suppliers from different countries. The two main principles of non-discrimination in international trade law are:
### 1. Most-Favored-Nation (MFN) Principle
- Definition: The MFN principle requires that a country treats goods, services, and service suppliers from one country no less favorably than it treats
1.Consider the following grammar for hexadecimal integers:
⟨hex literal⟩::= 0x⟨number⟩
⟨number⟩::= ⟨number⟩⟨number⟩|⟨digit⟩
⟨digit⟩::= 0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |A |B |C |D |E |F
String 0xF3 is an element of the language generated by this grammar.1 How many distinct
derivation sequences exist for this string?2 How many distinct parse trees exist for this string?
Show all parse trees.
There exist 6 derivation sequences:
⟨hex literal⟩⇒0x⟨number⟩⇒0x⟨number⟩⟨number⟩⇒0x⟨digit⟩⟨number⟩⇒0x⟨digit⟩⟨digit⟩⇒0xF⟨digit⟩⇒0xF3...
Chapter 1: Introduction to Constitutional Law
A constitution is an expression of a nation's fundamental political and legal values
Constitutional law is built on a core set of values:
Social Order
Prevention of Tierney
27 Amendments Since 1789
The first 10, the Bill of rights 1791
Federalists: people who support a strong centralized government; A political party that advocates a strong, centralized government.
Anti-Fed: people who oppose the establishment of a strong centralized...
Busola:kompas magnetyczny używany do wytyczenia kierunku żeglugi.Astrolabium:służyło do ustalania wysokości ciał niebieskich nad horyzontem.Karawela:jednopokładowy żaglowiec wyposażony w dwa lub trzy maszty.Karaka:trzymasztowy statek żaglowy.umożliwiała podróże oceaniczne.Nowy świat:kontynenty ameryki odkryte przez eueopejczyków.Traktat Tordesillas:zatwierdzono w nim podział niepoznanych jeszcze lądów południka leżącego ok w 2 tyś km. Na zachód od wysp zielonego przylądka....
Define Machine Learning. Briefly explain the types of learnings.
Machine Learning (ML) is a branch of Artificial Intelligence (AI) that enables computers to learn automatically from data and improve their performance on a task without being explicitly programmed. It focuses on developing algorithms that can identify patterns and make predictions or decisions.
Supervised Learning:
The model is trained using labeled data (input-output pairs).
It learns
1. (Utilizând Sursa A) Identifică două documente care atestă recunoașterea internațională a Marii Uniri din 1918.
Două documente:Tratatul de la Saint-Germain (10 septembrie 1919) — tratat între Puterile Învingătoare și Austria; reglementează frontiere şi recunoaşte anumite schimbări teritoriale (are rol în recunoașterea situațiilor din fosta monarhie austro-ungară, inclusiv aspecte legate de Bucovina).Tratatul de la Trianon (4 iunie 1920) — tratat cu Ungaria; consacră noile...