Milk Vita Assistant Manager (CSE/MIS) Exam 2023 — Question Solution | মিল্ক ভিটা সহকারী ব্যবস্থাপক (সিএসই/এমআইএস) নিয়োগ পরীক্ষা ২০২৩ — প্রশ্ন সমাধান
- Milk Vita
- Assistant Manager (CSE/MIS)
- 2023
- 8 questions · 0 MCQ, 8 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Milk Vita Assistant Manager (CSE/MIS) exam was held in 2023. The paper had 8 written questions. The subjects asked most were Database (2), Operating Systems (2) and Algorithms (1). This page lists every question, with 2 answered and explained; the rest of the answers open with a free ARBS Academy account, where the paper can also be practised as a timed test.
মিল্ক ভিটা সহকারী ব্যবস্থাপক (সিএসই/এমআইএস) নিয়োগ পরীক্ষার (২০২৩) এই প্রশ্নপত্রে ৮টি প্রশ্ন ছিল, বেশিরভাগ ডেটাবেজ ও অপারেটিং সিস্টেম থেকে। এখানে ২টি প্রশ্নের ব্যাখ্যাসহ উত্তর দেওয়া আছে; বাকিগুলো ফ্রি অ্যাকাউন্টে খোলে।
- Organisation
- Milk Vita
- Post
- Assistant Manager (CSE/MIS)
- Exam date
- 2023
- Questions
- 8 (0 MCQ, 8 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
What is software design pattern? What are the advantages?
Model answer
Definition: a software design pattern is a named, proven and reusable solution to a design problem that recurs in a particular context. It describes how classes and objects should be arranged and should collaborate. It is a template to adapt, not finished code or a library to copy. Every pattern has four elements: name, problem (when it applies), solution (participants and relationships) and consequences (trade-offs). The classic "Gang of Four" catalogue (1994) lists 23 patterns.
graph TD
DP["Design patterns"] --> C["Creational: how objects are created"]
DP --> S["Structural: how classes and objects are composed"]
DP --> B["Behavioural: how objects interact"]
C --> C1["Singleton, Factory Method, Builder"]
S --> S1["Adapter, Decorator, Facade"]
B --> B1["Observer, Strategy, Command"]
Advantages
| Advantage | Why it helps |
|---|---|
| Proven, reusable solutions | Experienced designers have already tested these structures, so fewer design mistakes are made. |
| Shared vocabulary | Saying "use an Adapter here" conveys a whole design in two words in meetings, reviews and documents. |
| Flexibility and maintainability | Patterns favour loose coupling and programming to interfaces, so new behaviour can be added without editing tested code (Open/Closed Principle). |
| Faster development | Teams do not reinvent a solution for known problems such as object creation, notification or undo. |
| Reusability | Components built around patterns are easier to reuse in other projects. |
| Easier understanding and documentation | A pattern name in a class name (PaymentFactory, OrderObserver) tells a newcomer why the code is shaped that way. |
| Testability | Interfaces and injected collaborators can be replaced by mocks in unit tests. |
| Better communication of trade-offs | The "consequences" part of a pattern warns in advance about costs such as extra classes. |
Example: the Strategy pattern makes extension cheap
from abc import ABC, abstractmethod
class ShippingStrategy(ABC): # common interface
@abstractmethod
def cost(self, kg): ...
class InsideCity(ShippingStrategy):
def cost(self, kg): return 60 + 10 * kg
class OutsideCity(ShippingStrategy):
def cost(self, kg): return 120 + 20 * kg
class Order: # context: never changes
def __init__(self, kg, strategy):
self.kg, self.strategy = kg, strategy
def shipping(self):
return self.strategy.cost(self.kg)
class Express(ShippingStrategy): # added later, no edit to Order
def cost(self, kg): return 250 + 25 * kg
for s in (InsideCity(), OutsideCity(), Express()):
print(type(s).__name__, Order(3, s).shipping())
Output:
InsideCity 90
OutsideCity 180
Express 325
Adding Express needed no change to Order. That is the maintainability and Open/Closed advantage in practice.
Limitation: patterns add classes and indirection. Forcing one onto a simple problem ("pattern overuse") makes the code harder to read, so apply a pattern only when its problem actually exists.
Exam tip: define a pattern as a reusable solution to a recurring design problem (not code), name the three categories with examples, and list at least five advantages with a reason each.
What are the ACID properties of transaction to ensure data reliability and integrity?
Model answer
Direct answer: a transaction is one logical unit of work (for example, one fund transfer) made up of several reads and writes. To keep data reliable and correct in spite of concurrent users and system failures, every transaction must satisfy the four ACID properties: Atomicity, Consistency, Isolation and Durability.
| Property | Meaning | How the DBMS ensures it | What goes wrong without it |
|---|---|---|---|
| Atomicity | All-or-nothing: either every operation of the transaction takes effect, or none does | Undo (rollback) log; after a crash, unfinished transactions are rolled back | Money is debited from one account but never credited to the other |
| Consistency | A transaction takes the database from one valid state to another; all integrity constraints (PK, FK, CHECK) and business rules hold when it ends | Constraint checking by the DBMS plus correctly written transaction logic | A negative balance or an orphan record gets stored |
| Isolation | Concurrent transactions do not see each other's uncommitted changes; at the SERIALIZABLE level the outcome equals some serial (one-after-another) order | Concurrency control: locking (two-phase locking) or multiversion concurrency control (MVCC) | Dirty reads, lost updates, two withdrawals overdrawing the same balance |
| Durability | Once COMMIT succeeds, the change survives crashes and power failures | Write-ahead log forced to disk at commit, redo during recovery, plus backups/replicas | A confirmed payment disappears after a restart |
Worked example: accounts A-101 = 8,000 Tk and B-202 = 2,000 Tk, with CHECK (balance >= 0) (MySQL enforces CHECK constraints from 8.0.16).
BEGIN; -- PostgreSQL/MySQL/SQLite; standard SQL: START TRANSACTION; SQL Server: BEGIN TRANSACTION
UPDATE account SET balance = balance - 3000 WHERE acc_no = 'A-101';
UPDATE account SET balance = balance + 3000 WHERE acc_no = 'B-202';
COMMIT; -- A-101 = 5000, B-202 = 5000
BEGIN;
UPDATE account SET balance = balance + 6000 WHERE acc_no = 'B-202'; -- 11000, not yet committed
UPDATE account SET balance = balance - 6000 WHERE acc_no = 'A-101'; -- fails: CHECK (balance >= 0)
ROLLBACK; -- B-202 is back to 5000
- Atomicity: the failed second transfer is undone completely, including the 6,000 Tk already credited to B-202.
- Consistency: the total stays 10,000 Tk and no balance ever becomes negative.
- Isolation: at READ COMMITTED or a stricter level, no other session ever sees B-202 = 11,000, because that value was never committed.
- Durability: after the first COMMIT, the 5,000 / 5,000 balances survive even if the server crashes immediately.
Isolation levels (SQL standard): lower levels allow more anomalies in exchange for concurrency.
| Level | Dirty read | Non-repeatable read | Phantom |
|---|---|---|---|
| READ UNCOMMITTED | possible | possible | possible |
| READ COMMITTED | prevented | possible | possible |
| REPEATABLE READ | prevented | prevented | possible |
| SERIALIZABLE | prevented | prevented | prevented; result equals some serial order |
Defaults differ by DBMS: READ COMMITTED in PostgreSQL, Oracle and SQL Server; REPEATABLE READ in MySQL InnoDB.
Exam tip: Atomicity and Durability are provided by the recovery system (logs), Isolation by concurrency control, and Consistency by integrity constraints plus correct transaction design.
What are the four necessary condition of deadlock in an operating system?
Write a C/C++ program to calculate factorial of N using recursive function.
Write the recursive function of the below problem and find the recurrence relation of the function. F(n) = 1+2+3+..........+(n-1) +n
Consider an Employee table. Create a SQL view that shows the details of Employee information who have the salary equivalent to the maximum, minimum and average salary of employee.
Consider the five points: P1 (0.07, 0.83), P2 (0.85, 0.14), P3 (0.66, 0.89), P4 (0.49, 0.64), and P5 (0.80, 0.46). Group first two points considering single-linkage hierarchical clustering technique.
Write appropriate linux command:
- Show hidden files and directories
- Delete a directory and its file
- Prints last five lines of a text file
- Download a file from an URL
Sign up free to see the model answers to written questions 3–8 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
6 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৬টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 8 syllabus chapters; ER Model & Design, Functions & Recursion and Requirements & Design lead, with 1 each. ER Model & Design is asked in 101 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- ER Model & Design Database · 101 other papers, 2015–20261
- Functions & Recursion Programming · 60 other papers, 2016–20261
- Requirements & Design Software Engineering · 50 other papers, 2016–20261
- AI & Machine Learning Cloud & Emerging Tech · 49 other papers, 2017–20261
- OS Basics & Types Operating Systems · 45 other papers, 2016–20261
- Complexity & Analysis Algorithms · 26 other papers, 2016–20251
From our own past papers: each question filed under one syllabus chapter. Practice and held questions are not counted.
Questions about this paper · সাধারণ প্রশ্ন
- How many questions were in the Milk Vita Assistant Manager (CSE/MIS) exam (2023)?
- 8 written questions.
- Which subjects were asked most in the Milk Vita Assistant Manager (CSE/MIS) exam (2023)?
- Database (2), Operating Systems (2) and Algorithms (1), out of 8 questions.
- When was the Milk Vita Assistant Manager (CSE/MIS) exam held?
- In 2023. The exact day isn't in our records.
- Where can I find the Milk Vita Assistant Manager (CSE/MIS) exam (2023) question solution?
- On this page: 2 of the 8 questions are shown with worked answers. The rest of the answers open with a free ARBS Academy account, where the paper can also be practised as a timed test.
Question text is from the public recruitment exam; answers and explanations are written by ARBS Academy. All past papers