Bangladesh Satellite Company Limited Exam — Question Solution | বাংলাদেশ স্যাটেলাইট কোম্পানি নিয়োগ পরীক্ষা — প্রশ্ন সমাধান
- Bangladesh Satellite Company
- 5 questions · 0 MCQ, 5 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Bangladesh Satellite Company Limited exam was held. The paper had 5 written questions. The subjects asked most were Cloud & Emerging Tech (1), Database (1) and Networking (1). This page lists every question, with 1 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
- Bangladesh Satellite Company
- Questions
- 5 (0 MCQ, 5 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
Write a function that takes an array as argument and returns the minimum value in it.
With 10 Mbps bandwidth and an average packet length of 1500 bytes, what is the maximum packet arrival rate that can be supported without causing congestion?
Write concepts of Coupling and Cohesion with Example?
Sign up free to see the model answers to written questions 1–3 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
How does indexing improve query performance?
Model answer
An index is an extra, sorted data structure built on one or more columns of a table. Each entry holds a key value and a pointer (row id) to the row. Like the alphabetical order of a telephone directory, it lets the DBMS go straight to the matching rows instead of reading the whole table. Most DBMSs use a B+ tree by default. Some also offer hash indexes for equality search (for example USING HASH in PostgreSQL).
How it improves performance
- Full scan becomes a tree search. Without an index,
WHERE nid = …forces a full table scan: every row (every data page) is read, O(n). With a B+ tree the DBMS walks root → internal node → leaf, O(log n). Each node is one disk page holding hundreds of keys. With about 200 keys per node, 3 levels cover 200³ = 8,000,000 keys, so a table of 200,000 rows needs only about 3 page reads instead of thousands. - Range queries. Leaves are sorted and linked, so
BETWEEN,<and>find the first key and then read the next leaves in order. A prefix patternLIKE 'abc%'can be turned into such a range (in SQLite only when its LIKE-optimization conditions on case and collation hold). - ORDER BY / GROUP BY without sorting. The rows come out of the index already in key order.
- MIN / MAX are read from the first or last leaf.
- Faster joins. An index on the foreign-key column lets each outer row find its matches directly (index nested-loop join).
- Covering index. If the index holds every column the query needs, the table is not touched at all.
- Uniqueness checks. In most DBMSs PRIMARY KEY and UNIQUE are enforced through an index, so a duplicate check is also a quick search.
graph TD
R["Root: 1000400000 | 1000800000"] --> A["Internal: keys < 1000400000"]
R --> B["Internal: 1000400000 to 1000799999"]
R --> C["Internal: keys >= 1000800000"]
B --> L1["Leaf: 1000699993, 1000700000, 1000700007 → row ids"]
B --> L2["Leaf: next keys → row ids"]
L1 --> L2
Worked example (SQLite 3.50, EXPLAIN QUERY PLAN)
CREATE TABLE staff (
staff_id INTEGER PRIMARY KEY,
nid CHAR(10) NOT NULL,
name VARCHAR(40) NOT NULL,
dept_no INT NOT NULL,
salary DECIMAL(10,2) NOT NULL
);
-- 200,000 rows: staff_id i = 1..200000, nid = 1000000000 + 7i,
-- name 'Name' || i, dept_no = 1 + i % 20, salary = 20000 + (37i % 60000)
SELECT staff_id, name FROM staff WHERE nid = '1000700000'; -- returns 100000 | Name100000
| Step | Query plan reported |
|---|---|
| before any index | SCAN staff |
after CREATE INDEX idx_staff_nid ON staff(nid); |
SEARCH staff USING INDEX idx_staff_nid (nid=?) |
SELECT nid … WHERE nid = '1000700000' |
SEARCH staff USING COVERING INDEX idx_staff_nid (nid=?) |
SELECT MAX(nid) FROM staff |
SEARCH staff USING COVERING INDEX idx_staff_nid |
With a composite index CREATE INDEX idx_staff_dept_sal ON staff(dept_no, salary);:
SELECT staff_id, name FROM staff WHERE dept_no = 5 AND salary BETWEEN 30000 AND 30100→SEARCH staff USING INDEX idx_staff_dept_sal (dept_no=? AND salary>? AND salary<?)(17 rows)SELECT staff_id, name FROM staff WHERE salary > 79990→SCAN staff. The leading column is missing (leftmost-prefix rule).
The index is not used for a search when the column is wrapped in a function: SELECT nid FROM staff WHERE substr(nid,1,4) = '1000' → SCAN staff USING COVERING INDEX idx_staff_nid, a scan of all index entries, not a search (with SELECT staff_id, name it is SCAN staff). A leading wildcard, SELECT nid FROM staff WHERE nid LIKE '%00000', gives the same scan.
Costs and when not to index
- Extra disk space for every index.
- Slower INSERT, UPDATE and DELETE, because each index must be updated too.
- Little gain on small tables or low-selectivity columns (such as a yes/no column) where most rows match anyway.
Clustered vs non-clustered: a clustered index stores the table rows themselves in key order (one per table; in SQL Server you choose it, and MySQL InnoDB clusters on the primary key). A non-clustered (secondary) index stores keys plus pointers, and a table can have many.
Exam tip: an index turns an O(n) full table scan into an O(log n) B+ tree search. Index columns used in WHERE, JOIN, ORDER BY and GROUP BY, and mention the write and storage cost.
How do assessment and audit reports help detect vulnerabilities and ensure compliance to cloud security posture?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
4 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৪টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 5 syllabus chapters; SQL & Queries, Protocols (TCP/UDP/HTTP/DNS) and Functions & Recursion lead, with 1 each. SQL & Queries is asked in 93 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- SQL & Queries Database · 93 other papers, 2015–20261
- Protocols (TCP/UDP/HTTP/DNS) Networking · 90 other papers, 2012–20261
- Functions & Recursion Programming · 60 other papers, 2016–20261
- Requirements & Design Software Engineering · 50 other papers, 2016–20261
- Cloud Computing Cloud & Emerging Tech · 39 other papers, 2015–20261
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 Bangladesh Satellite Company Limited exam?
- 5 written questions.
- Which subjects were asked most in the Bangladesh Satellite Company Limited exam?
- Cloud & Emerging Tech (1), Database (1) and Networking (1), out of 5 questions.
- Where can I find the Bangladesh Satellite Company Limited exam question solution?
- On this page: 1 of the 5 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