Ministry of Food
Post: Database Manager
Exam Date: 29/11/2022, Subject: CSE Exam Taker: BPSC
1. Draw an ER diagram for Hospital management system. Use Doctor, Patient, Hospital and Medical records as entities. Identify primary and foreign key. 5

2. Write SQL query for the following:
Consider the table: Employee (empno, deptno, ename, salary, designation, joining_date. DoB, city)
(i) Display name of employess whose experience is more than 10 years,
(ii) Display age of employees,
(iii) Display average salary of all employees,
(iv) Display name of employee who earned highest salary. 5
Consider the table: Employee (empno, deptno, ename, salary, designation, joining_date. DoB, city)
(i) Display name of employess whose experience is more than 10 years,
(ii) Display age of employees,
(iii) Display average salary of all employees,
(iv) Display name of employee who earned highest salary. 5
SELECT ename FROM Employee WHERE DATEDIFF(YEAR, joining_date, GETDATE()) > 10;(ii) Display age of employees
SELECT ename, DATEDIFF(YEAR, DoB, GETDATE()) AS age FROM Employee;(iii) Display average salary of all employees
SELECT AVG(salary) AS average_salary FROM Employee;(iv) Display name of employee who earned the highest salary
SELECT ename, salary FROM Employee WHERE salary = (SELECT MAX(salary) FROM Employee);
3. Describe the main processes in a modern software development environment, and the tools used to support them. 5
এরপর আসে Software Design ধাপ। এখানে সিস্টেম কীভাবে কাজ করবে তা পরিকল্পনা করা হয় এবং বিস্তারিত system architecture ও technical specifications তৈরি করা হয়।
ডিজাইন শেষ হলে শুরু হয় Coding বা Implementation। এই ধাপে ডেভেলপাররা নির্ধারিত ডিজাইন অনুযায়ী প্রকৃত source code লিখে থাকেন।
কোডিং সম্পন্ন হওয়ার পর সফটওয়্যারকে Testing ধাপের মধ্য দিয়ে যেতে হয়, যেখানে বিভিন্ন সমস্যা ও ত্রুটি (bugs) খুঁজে বের করে সমাধান করা হয়। এই ধাপে Unit Testing, Integration Testing এবং System Testing করা হয়। কাজকে দ্রুত ও নির্ভুল করার জন্য প্রায়ই Automated Testing Tools ব্যবহার করা হয়।
টেস্টিং সফলভাবে শেষ হলে সফটওয়্যারকে Deployment করা হয়, অর্থাৎ এটি ব্যবহারকারীদের জন্য উন্মুক্ত করা হয়। এ সময় প্রয়োজনীয় installation ও configuration সম্পন্ন করা হয়।
এই পুরো প্রক্রিয়া জুড়ে Version Control System যেমন Git ব্যবহার করা হয়, যা কোডের পরিবর্তন নিয়ন্ত্রণ এবং টিমের মধ্যে সমন্বয় বজায় রাখতে সহায়তা করে।
Safety-critical software (যেমন গাড়ির Anti-lock Braking System – ABS) এর ক্ষেত্রে অতিরিক্ত সতর্কতা অবলম্বন করা হয়। এতে আরও কঠোর testing, নির্দিষ্ট safety standards মেনে চলা এবং সম্পূর্ণ validation প্রয়োজন হয়। যদি সফটওয়্যারটি Over-the-Air (OTA) updates সমর্থন করে, তবে নিয়মিত updates, bug fixes এবং security patches পরিকল্পনা করতে হয়, যাতে সফটওয়্যার দীর্ঘমেয়াদে নিরাপদ ও নির্ভরযোগ্য থাকে।
4. Whate are the major differences between HTML and XHTML? 5

ব্যাখ্যা দেখুন
- It is simple and easy for beginners
- Supported by all web browsers
- Platform independent (runs on any operating system)
- Free of cost and available by default in Windows
- Lightweight and loads faster
- Easy syntax to learn
- Easily integrates with CSS, JavaScript, and other languages
- Cannot produce dynamic output by itself
- Even simple web pages need many lines of code
- Does not provide strong security
- Runs even if there are syntax errors, which may give wrong output
- Cannot create a complete web application alone (only basic pages)
- DOCTYPE – Declares the document type
- Head – Contains title and meta information
- Body – Contains the actual content of the web page
- Follows strict rules, so errors are reduced
- Code is more readable and well-organized
- Provides better security
- Easy to convert into other formats (XML-based)
- Better for future web development
- Portable and works well on devices with small processors
- Difficult for beginners
- Supported by only a few browsers
HTML-এর পূর্ণরূপ হলো Hypertext Markup Language। এটি Tim Berners-Lee ১৯৯৩ সালে তৈরি করেন। HTML হলো SGML-এর একটি extended form এবং এটি একটি web page-এর basic structure বা skeleton তৈরি করে। Hypertext হলো এমন text যা hyperlink ব্যবহার করে এক page থেকে অন্য page-এ নিয়ে যায়। Markup language হলো এমন language যা tags ব্যবহার করে web page ডিজাইন করে। HTML-এ সব elements tags দ্বারা নির্ধারিত হয়। Tag হলো একটি keyword যা browser-কে বলে দেয় content কীভাবে দেখাবে। HTML কোনো programming language নয়। HTML-এর সুবিধা:
- Beginner-friendly এবং সহজ
- সব browser দ্বারা supported
- Platform independent
- Free এবং Windows-এ default থাকে
- Lightweight এবং দ্রুত load হয়
- Syntax সহজ
- CSS ও JavaScript-এর সাথে সহজে কাজ করে
HTML-এর অসুবিধা
- Dynamic output তৈরি করতে পারে না
- Simple page-ও অনেক code প্রয়োজন
- Strong security নেই
- Syntax error থাকলেও run করে
- একা HTML দিয়ে সম্পূর্ণ web application তৈরি করা যায় না
XHTML কী?
XHTML-এর পূর্ণরূপ Extensible Hypertext Markup Language। এটি W3C দ্বারা তৈরি এবং ২০০০ সালে প্রকাশিত হয়। XHTML হলো HTML এবং XML-এর সমন্বয়। XHTML দেখতে HTML-এর মতো হলেও এটি অনেক বেশি strict। HTML খুব lenient হওয়ায় error control কম ছিল, তাই XHTML তৈরি করা হয়। XHTML-এর code বেশি secure, organized এবং সহজে অন্য format-এ convert করা যায়।
XHTML Document-এর অংশ
- DOCTYPE – Document type ঘোষণা করে
- Head – Title ও metadata থাকে
- Body – Web page-এর মূল content থাকে
XHTML-এর সুবিধা
- Strict rules follow করে
- Code পরিষ্কার ও readable
- বেশি secure
- XML-based হওয়ায় convert করা সহজ
- Future-oriented
- Low-processor device-এও ভালো কাজ করে
XHTML-এর অসুবিধা
- Beginner-দের জন্য কঠিন
- কম browser support করে
5. What do you mean by operator precedence in C programming? Rewrite the following operators in ascending order of precedence. 5
+ , (), ==, % , &&
+ , (), ==, % , &&

