Jamuna Oil Company Limited
Post: Junior Officer (MIS & IT); Date: 23 May, 2024
Exam Taker: JOCL
Given: F = 1 when at least two of the three inputs A, B, and C are 1.
a) Truth table
| A | B | C | F |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
So, F = 1 for minterms:
m(3, 5, 6, 7)
And F = 0 for maxterms:
M(0, 1, 2, 4)
Simplification by K-map:

Simplified POS= (A+B)(A+C)(B+C)
Given:
Computer A: Clock speed = 2 GHz, Time per instruction = 250 ps
Computer B: Clock speed = 2.5 GHz, Time per instruction = 500 ps
Step 1: Convert picoseconds to seconds
1 picosecond = 10-12 seconds
For Computer A:
250 ps = 250 × 10-12 = 2.5 × 10-10 seconds
For Computer B:
500 ps = 500 × 10-12 = 5 × 10-10 seconds
Step 2: Calculate instructions per second
For Computer A:
Instructions per second = 1 / (2.5 × 10-10) = 4 × 109
For Computer B:
Instructions per second = 1 / (5 × 10-10) = 2 × 109
Step 3: Compare
Computer A = 4 × 109 instructions/second
Computer B = 2 × 109 instructions/second
Conclusion:
Computer A is faster because it executes about twice as many instructions per second as Computer B.
When a company has only a few months to complete a project, the Agile model is generally more suitable than the Waterfall model.
Agile development focuses on iterative development and continuous delivery. The project is divided into small parts called iterations or sprints, allowing developers to deliver working features quickly and improve them based on feedback.
In contrast, the Waterfall model follows a sequential process where each phase (requirements, design, development, testing) must be completed before moving to the next stage. This approach can take more time and is less flexible when quick changes are required.
Therefore, Agile is more suitable for short deadlines because it allows faster development, flexibility, and early delivery of functional software.
Short Deadline Project-এর জন্য Agile না Waterfall?
যখন কোনো কোম্পানির কাছে project সম্পন্ন করার জন্য অল্প সময় থাকে, তখন সাধারণত Agile model বেশি উপযুক্ত।
Agile model-এ project ছোট ছোট iteration বা sprint-এ ভাগ করে কাজ করা হয়। এতে দ্রুত feature develop করা যায় এবং feedback অনুযায়ী দ্রুত পরিবর্তন করা সম্ভব।
অন্যদিকে Waterfall model একটি sequential পদ্ধতি যেখানে প্রতিটি ধাপ (requirement, design, development, testing) ধারাবাহিকভাবে শেষ করতে হয়। এতে সময় বেশি লাগে এবং পরিবর্তন করা কঠিন।
তাই অল্প সময়ে project সম্পন্ন করার ক্ষেত্রে Agile model বেশি কার্যকর কারণ এটি দ্রুত development, flexibility এবং early delivery নিশ্চিত করে।
#include <stdio.h>
#include <ctype.h>
int main() {
char str[100];
int sum = 0;
printf("Enter an alphanumeric string: ");
scanf("%s", str);
for (int i = 0; str[i] != '\0'; i++) {
if (isdigit(str[i])) {
sum += str[i] - '0'; // convert char digit to integer
}
}
printf("Sum of digits = %d\n", sum);
return 0;
}
Sample Input: Enter an alphanumeric string: a1b2c3d4 Sample Output: Sum of digits = 10
Data Units of Different OSI Layers
In computer networking, each layer of the OSI model uses a specific type of data unit called a Protocol Data Unit (PDU).
- Physical Layer: The data unit of the Physical layer is Bits. This layer transmits raw binary data (0 and 1) over the communication medium.
- Data Link Layer: The data unit of the Data Link layer is Frame. This layer organizes bits into frames and handles error detection and physical addressing.
- Network Layer: The data unit of the Network layer is Packet. This layer is responsible for logical addressing and routing of data across networks.
- Transport Layer: The data unit of the Transport layer is Segment (in TCP) or Datagram (in UDP). This layer ensures reliable end-to-end communication.
OSI Model-এর বিভিন্ন Layer-এর Data Unit
Computer networking-এ OSI model-এর প্রতিটি layer একটি নির্দিষ্ট ধরনের data unit ব্যবহার করে যাকে Protocol Data Unit (PDU) বলা হয়।
- Physical Layer: Physical layer-এর data unit হলো Bits। এই layer communication medium-এর মাধ্যমে raw binary data (0 এবং 1) transmit করে।
- Data Link Layer: Data Link layer-এর data unit হলো Frame। এই layer bits-কে frame আকারে সংগঠিত করে এবং error detection ও physical addressing পরিচালনা করে।
- Network Layer: Network layer-এর data unit হলো Packet। এই layer logical addressing এবং data routing-এর জন্য দায়ী।
- Transport Layer: Transport layer-এর data unit হলো Segment (TCP-এর ক্ষেত্রে) অথবা Datagram (UDP-এর ক্ষেত্রে)। এই layer end-to-end communication নিশ্চিত করে।

For a deadlock to occur in a system, four conditions known as Coffman Conditions must be present simultaneously.
- Mutual Exclusion: At least one resource must be held in a non-shareable mode. Only one process can use the resource at a time.
- Hold and Wait: A process holding one resource is waiting to acquire additional resources held by other processes.
- No Preemption: Resources cannot be forcibly taken away from a process; they must be released voluntarily.
- Circular Wait: A circular chain of processes exists where each process is waiting for a resource held by the next process.
Deadlock হওয়ার চারটি প্রয়োজনীয় শর্ত
কোনো system-এ deadlock ঘটার জন্য চারটি শর্ত একসাথে থাকতে হয়। এই শর্তগুলোকে Coffman Conditions বলা হয়।
- Mutual Exclusion: একটি resource এক সময়ে কেবল একটি process ব্যবহার করতে পারে।
- Hold and Wait: একটি process একটি resource ধরে রেখে অন্য resource-এর জন্য অপেক্ষা করে।
- No Preemption: কোনো process থেকে resource জোর করে নেওয়া যায় না; process নিজে release না করা পর্যন্ত resource তার কাছেই থাকে।
- Circular Wait: একাধিক process এমনভাবে অপেক্ষা করে যেখানে প্রতিটি process অন্য process-এর resource-এর জন্য অপেক্ষা করে।
Five States of a Process in Operating System
In an Operating System, a process goes through several states during its execution. The five basic states of a process are:
- New: The process is being created and initialized.
- Ready: The process is prepared and waiting in the ready queue to be assigned to the CPU.
- Running: The process is currently being executed by the CPU.
- Waiting (Blocked): The process is waiting for an event such as input/output operation to complete.
- Terminated: The process has finished execution and is removed from the system.
Operating System-এ Process-এর পাঁচটি State
Operating System-এ একটি process তার execution চলাকালে বিভিন্ন state-এর মধ্য দিয়ে যায়। প্রধান পাঁচটি state হলো:
- New: Process নতুনভাবে তৈরি হচ্ছে।
- Ready: Process CPU পাওয়ার জন্য ready queue-এ অপেক্ষা করছে।
- Running: Process বর্তমানে CPU দ্বারা execute হচ্ছে।
- Waiting (Blocked): Process কোনো event বা input/output operation সম্পন্ন হওয়ার জন্য অপেক্ষা করছে।
- Terminated: Process-এর execution শেষ হয়েছে এবং system থেকে সরিয়ে ফেলা হয়েছে।

Bus, Star, and Mesh Network Topologies
- Bus Topology: In a bus topology, all devices are connected to a single main cable called the bus. Data travels through this central cable and all devices receive the signal, but only the intended device accepts it.
- Star Topology: In a star topology, all devices are connected to a central device such as a hub or switch. All communication between devices passes through this central node.
- Mesh Topology: In a mesh topology, every device is connected to every other device in the network. This provides multiple paths for data transmission and increases reliability.
Bus, Star এবং Mesh Network Topology
- Bus Topology: Bus topology-তে সব device একটি প্রধান cable বা bus-এর সাথে সংযুক্ত থাকে। Data এই cable দিয়ে transmit হয় এবং সব device signal পায়, তবে নির্দিষ্ট device তা গ্রহণ করে।
- Star Topology: Star topology-তে সব device একটি central device যেমন hub বা switch-এর সাথে সংযুক্ত থাকে। সব communication এই central device-এর মাধ্যমে হয়।
- Mesh Topology: Mesh topology-তে প্রতিটি device অন্য সব device-এর সাথে সংযুক্ত থাকে। এতে data transmission-এর জন্য একাধিক পথ থাকে এবং network-এর reliability বৃদ্ধি পায়।



Linear Data Structures:
In linear data structures, elements are arranged sequentially and each element is connected to the next element in a single line.
Examples of linear data structures:
- Array
- Stack
- Queue
Non-Linear Data Structures:
In non-linear data structures, elements are not arranged sequentially. Instead, elements are connected in hierarchical or network form.
Examples of non-linear data structures:
- Tree
- Graph
- Heap
Memory Efficiency:
Generally, linear data structures are more memory efficient because they store data sequentially and require less memory overhead compared to non-linear data structures.
Linear Data Structure:
Linear data structure-এ element গুলো ধারাবাহিকভাবে একটি লাইনে সাজানো থাকে এবং প্রতিটি element পরবর্তী element-এর সাথে সংযুক্ত থাকে।
Linear data structure-এর উদাহরণ:
- Array
- Stack
- Queue
Non-Linear Data Structure:
Non-linear data structure-এ element গুলো ধারাবাহিকভাবে সাজানো থাকে না। বরং element গুলো hierarchical বা network আকারে সংযুক্ত থাকে।
Non-linear data structure-এর উদাহরণ:
- Tree
- Graph
- Heap
Memory Efficiency:
সাধারণত linear data structure বেশি memory efficient কারণ এতে data sequentialভাবে সংরক্ষণ করা হয় এবং অতিরিক্ত memory overhead কম থাকে।
(a) Write an SQL query to show the top 10 highest marks from the Result table.
(b) Write an SQL query to show the number of male and female students who passed, individually.
(c) Write an SQL query to show the absent students in the Result table.
-- (a) Show the top 10 highest marks from the Result table
SELECT *
FROM Result
ORDER BY Marks DESC
LIMIT 10;
-- (b) Show the number of male and female students who passed individually
SELECT Gender, COUNT(*) AS TotalPassed
FROM Result
WHERE Status = 'Pass'
GROUP BY Gender;
-- (c) Show the absent students in the Result table
SELECT *
FROM Result
WHERE Status = 'Absent';
General Part
1. জাতীয় গ্রিডে সংযুক্ত প্রথম সৌর বিদ্যুৎ প্রকল্প কোথায় স্থাপিত হয়? উত্তর : জামালপুর, সরিষাবাড়ি।
2. বাংলাদেশের দীর্ঘতম নদী কোনটি? উত্তর : পদ্মা।
3. “ভূষণ্ডির কাক” বাগধারাটির অর্থ কী? উত্তর : দীর্ঘজীবী।
4.বাক্যটি কোন বাচ্যের উদাহরণ: “কোথায় যাওয়া হচ্ছে”? উত্তর : ভাববাচ্য।
English
5. Fill in the blank using correct subjunctive mood: I wish I ___ a king. Answer : Were
6. Complete the sentence correctly: Where are you ___? Answer : From
7. What is the adjective form of the noun “misery”? Answer : Miserable
Math
8. If a+b+c=15 and ab+bc+ca=83 then what is the value of a2 + b2 + c2? Answer : 59
9. A product is sold at a loss of 8%. If the product is sold at a price of 800 Taka more than its original price, then there is a profit of 8%. What is the original price of the product? Answer : 10,000 taka
10. In a class of 100 students, 80 passed in Bengali, 88 passed in English, and 70 passed in both subjects. How many students failed in both subjects? Answer : 2
11. A box contains 10 red and 10 black marbles. If you close your eyes and pick 3 marbles, what is the probability that all 3 marbles will be black? Answer : 2/19
