Comprehensive Question Bank for Object Oriented Programming
Department of Information Technology
Question Bank (III Sem 2025-26)
Subject: Object Oriented Programming (3SN02)
Subject Faculty: Dr. P.P. Deshmukh
Unit I
Explain Object Oriented Programming principles with real-life examples.
Explain all primitive data types supported by the Java programming language with suitable examples.
Write ‘for’, ‘while’, and ‘do-while’ programs to compute 4 + 8 + 12 + 16 + … + 80.
What are the applications of Object Oriented Programming?
Explain the features of Java.
Redux State Management Examples and React Hooks Performance
Redux Task Store Implementation
1. Setup and Initial State
Import createStore from Redux. Note: In modern Redux Toolkit, this function is deprecated in favor of configureStore.
const { createStore } = require('redux'); // Or 'import { createStore } from 'redux';'
const initialState = { tasks: [] };
2. Action Types & Creators
Define actions for adding and removing tasks.
const ADD_TASK = 'ADD_TASK';
const REMOVE_TASK = 'REMOVE_TASK';
function addTask(task) { // task: { id, description }
return Understanding Public and Private International Law
1. Public and Private
Public international law and private international law are two branches of international law. Generally, there is no distinction between public international law and private international law, but it is very necessary that one should not confuse public international law and private international law.
2. Definitions of International Law:
Oppenheim
International law is a body of customary and conventional rules, which are considered binding on civilized states in their relations
Understanding Turing Machines and Their Complexities
Turing Machine
The Turing machine is a collection of the following components: M = (Q, E, Γ, δ, q0, B, F). 1) Q is a finite set of states. 2) T is a finite set of external symbols. 3) E is a finite set of input symbols. 4) A or B or B in T is a blank symbol, majorly used as an end marker for input. 5) δ is a transition or mapping function.
Design of TM
The Turing machine can be modeled with the help of the following representation: 1) The input tape has an infinite number of cells, each cell containing
Read MoreUnderstanding Glass and Plastic Packaging Materials
Advantages:
- Lightweight
- Good oxidation and sulfidation resistance
- Sensory stability of the product
- Recyclable
Disadvantages:
- Low resistance to acidic foods
- Requires varnishing
- Sterilization containers controlled
- Difficulty with side seam welding (two pieces preferred over three)
Applications:
- Beer
- Carbonated beverages
- Easy open lids
- Fish
- Marine delicacies
Glass Containers: Glass is a supercooled liquid, non-crystalline, with a variable chemical composition and very high viscosity, resulting from the merger of organic
Read MoreKey Concepts in Evolutionary Biology and Genetics
Key Evolutionary and Genetic Concepts
Fixism
Belief that all species were created as we see them today. Species are therefore immutable.
Lamarckism
Evolutionary theory proposed by Lamarck. It considers that living beings change throughout their lives as a result of the use or disuse of organs. Body modifications acquired are transmitted to the offspring. Also called evolutionism.
Genotype
The combination of specific alleles of a cell of an individual for the full genome, or more often, a particular gene.
Read MoreEconomic Impacts of World War I and the Great Depression
The Economic Consequences of World War I
The First World War caused a lot of military and civilian casualties, but it also resulted in significant monetary and material costs.
The government had to intervene in the economy, which was necessary during the war (control on prices, production, labor, etc.). Some controls remained, but the economic system changed.
The war also caused a disruption of international trade. Non-belligerents promoted domestic production (import substitution), European countries
Read MoreKey Concepts in Microeconomics: Consumer Theory and Market Welfare
Four Properties
1.
Higher indifference curves are preferred to lower ones.
2. Indifference curves cannot cross
3. Indifference curves are downward sloping.
4. Indifference curves are bowed inward –convexity-
Tangency Condition
MRS = P1 / P2
Consumer’s Optimal Choice
MU1 / MU2 = P1 / P2
Proportionality Rule
MU1 / P1 = MU2 / P2
Perfect Substitutes:
Indifference curves are straight lines. Optimal choice is at one extreme (all of one good).
Perfect Complements:
Indifference curves are L-shaped.
Historical Foundations of Ritual, Protocol, and Power Dynamics
Ceremony, Ritual, and Social Concepts
- Ceremony
- A set of formal acts, often fixed and traditional, performed on important social or religious occasions (they are not always religious). They are often public and always involve more than one participant and/or observer. A ceremony only happens on special occasions, while rituals are acts which are repeated through a period of time (e.g., the mass is a ceremony).
- Ritual
- A set of fixed actions and sometimes words performed regularly, especially as part of
Romanticism Movement: Art, Literature, and Philosophy
Romanticism: Artistic and Intellectual Movement
Romanticism (also the Romantic era or the Romantic period) was an artistic, literary, and intellectual movement that originated in Europe toward the end of the 18th century. In most areas, it peaked approximately from 1800 to 1850.
Romanticism was characterized by its emphasis on emotion and individualism, as well as the glorification of the past and nature, preferring the medieval over the classical. It was partly a reaction to:
- The Industrial Revolution.
