Chapter 1-accessModifier staticOrInstance returnType methodName(parameterType parameterName, ...) {
API (Application Programming Interface): collection of predefined classes, interfaces, methods (libraries). Java is a simple (easy to learn), object-oriented (uses objects and classes), distributed (supports network-based applications), and interpreted (runs via JVM from bytecode) language. It is robust (strong in error handling and memory management), secure (protects against threats with built-in
...Inheritance in Python
Inheritance allows a class to use and extend the properties and methods of another class.
It promotes code reusability and reduces duplication.
Think of it as “child learns from parent.” 👨👦💻
Program with no Inheritance:
import datetime
class TennisPlayer:
def __init__(self, fname, lname, birth_year):
self.first_name = fname
self.last_name = lname
self.birth_year = birth_year
self.aces = []
def get_age(self):
now = datetime.datetime.now()
return now.year - self.birth_
Sericulture is the rearing of silkworms for the production of silk. It is a farm-based, labor-intensive, and commercially profitable agro-industry that provides employment and income to rural people, especially women and small farmers.
Main scopes include:
1. Employment generation: Provides year-round jobs to farmers, reelers, weavers, and traders.
2. Rural development: Boosts the rural economy through cottage industries.
3. Export potential: India earns valuable foreign exchange through export
...SECTION A WEEKS 1 - 4
MODEL QUESTIONS / ANSWERS ETC
Q: Write R code to create a vector v with elements 3, NA, Inf, and -Inf. Then, explain what happens if you add 5 to v.
A:v <- c(3, NA, Inf, -Inf). Adding 5: v + 5 outputs [1] 8 NA Inf -Inf. NA propagates (remains NA), Inf + finite = Inf, -Inf + finite = -Inf (from specialvalues.html: arithmetic with Inf behaves sensibly, but NA is "not available").
Q: Given vector a <- c(10, 15, NA, 20), write code to count NAs and replace them with the
Brain networks in social media use: Reward - VTA, VMPFC, VS; Mentalizing - TPJ, ATP, IFG, PCC, DMPFC; Self-referential - MPFC
🧠 Neuroimaging & Brain Anatomy
A single-phase induction motor is a widely used AC motor in domestic and commercial appliances. It works on the principle of electromagnetic induction and has a simple and rugged construction similar to a three-phase squirrel cage induction motor.
Stator:
The stator is a stationary part made of laminated steel to reduce eddy current losses.
A single-phase winding is placed in slots distributed around the stator
1. Describe Types of Offer.
Definition (Section 2(a), Indian Contract Act, 1872):
When one person signifies to another his willingness to do or abstain from doing something, with a view to obtaining the assent of that other person to such act or abstinence, he is said to make a proposal or offer.
Explanation:
An offer is the first step in the formation of a contract. It expresses a person’s readiness to enter into a legal relationship on specific terms.
Types of Offers:
1. Express Offer: Made by...
Gram-positive, non-motile, and non-spore forming bacteria that are strict fermenters.
They are catalase and oxidase negative and can't synthesize cytochromes.
LAB can be either homofermentative or heterofermentative. The type of fermentation is determined by the enzymes produced by the organism.
Homofermentative: Converts glucose into two lactic acid molecules, with 85-95% of the glucose carbon ending up as lactate. This pathway uses the glycolytic (Embden-Meyerhof)
(10 Marks)
Input matrices A and B stored in HDFS.
Map Phase: Emits key-value pairs for each element multiplication.
Mapper emits (i,j), value = A[i][k]×B[k][j].
Shuffle Phase: Groups values by (i,j).
Reduce Phase: Sums all values for each key (i,j).
Final result = Σ A[i][k]×B[k][j].
Each Mapper processes partial multiplication.
Reducer aggregates partial results.
Data locality optimizes performance.
Scalable to huge