Jahangirnagar University Department of CSE Admission: 2016 Exam 2016 — Question Solution | জাহাঙ্গীরনগর বিশ্ববিদ্যালয় নিয়োগ পরীক্ষা ২০১৬ — প্রশ্ন সমাধান
- Jahangirnagar University
- 2016
- 5 questions · 0 MCQ, 5 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Jahangirnagar University Department of CSE Admission: 2016 exam was held in 2016. The paper had 5 written questions. The subjects asked most were Mathematics (2), Cyber Security (1) and Database (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
- Jahangirnagar University
- Exam date
- 2016
- Questions
- 5 (0 MCQ, 5 written)
- Exam guide
- M.Sc. admission (CSE and ICT) · এমএসসি ভর্তি (সিএসই ও আইসিটি)
The Difference between Passive and Active Attacks on a Computer?
Express the following data in normalized form -5, 5, 15, -1, 20.
Sign up free to see the model answers to written questions 1–2 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What does Referential Integrity (RI) mean?
Model answer
Referential integrity (RI) is the rule that every non-NULL foreign-key value in a referencing (child) table must match an existing value of the referenced key (its primary key or a UNIQUE key) in the referenced (parent) table. A foreign key may be NULL when the column allows it, which means "no related row". RI therefore forbids orphan rows: rows that point to something that does not exist.
Formally: if FK in R₂ references key K of R₁, then for every tuple t₂ ∈ R₂ with t₂[FK] not NULL there must be a tuple t₁ ∈ R₁ with t₁[K] = t₂[FK].
CREATE TABLE department (
dept_id INT PRIMARY KEY,
dept_name VARCHAR(40) NOT NULL UNIQUE
);
CREATE TABLE officer (
officer_id CHAR(6) PRIMARY KEY,
officer_name VARCHAR(50) NOT NULL,
dept_id INT, -- foreign key, NULL allowed
CONSTRAINT fk_officer_dept
FOREIGN KEY (dept_id) REFERENCES department (dept_id)
);
erDiagram
DEPARTMENT |o--o{ OFFICER : "employs"
What the DBMS does (department = 10 Accounts, 20 ICT, 30 Audit; officers OF1001 → 10, OF1002 → 20, OF1003 → 20, OF1004 → NULL)
| Operation | Result |
|---|---|
Insert officer with dept_id = 99 (no such department) |
rejected: FK violation |
Update OF1001 to dept_id = 77 |
rejected |
Insert officer with dept_id = NULL |
accepted (references nothing) |
| Delete department 20 (still has officers) | rejected |
| Change department 20's key to 21 | rejected |
| Delete department 30 (no officers) | accepted |
Referential actions (ON DELETE … / ON UPDATE … on the foreign key)
| Action | Effect when the parent row is deleted or its key changed |
|---|---|
NO ACTION (default when no action is written) |
the change is rejected if child rows still refer to it |
RESTRICT |
rejected, checked immediately |
CASCADE |
children follow: deleting department 10 also deletes OF1001; changing 20 → 21 changes OF1002 and OF1003 to 21 |
SET NULL |
children's FK becomes NULL (deleting 20 leaves OF1002 and OF1003 with NULL) |
SET DEFAULT |
children's FK becomes the column default |
DBMS differences
- PostgreSQL:
NO ACTIONcan be deferred to the end of the transaction;RESTRICTcannot. - MySQL (InnoDB):
NO ACTIONbehaves exactly likeRESTRICT, and a table defined withSET DEFAULTis rejected. - Oracle: offers only
ON DELETE CASCADEandON DELETE SET NULL. There is noON UPDATEclause; with no clause, a parent row that still has children cannot be deleted. - SQLite: checks foreign keys only after
PRAGMA foreign_keys = ON;. With the default (off), the orphan insert above is accepted.
Why it matters: RI keeps relationships between tables correct. Joins never lose rows to missing parents, and no officer belongs to a department that does not exist. RI is one of the core integrity rules, together with entity integrity (a primary key is unique and never NULL) and domain integrity (values come from the column's allowed domain).
Exam tip: define RI as "a foreign-key value must match an existing primary/unique key value in the referenced table, or be NULL". Then give an FK example and the default NO ACTION behaviour on delete.
Difference between Call by Value and Call by Reference?
Write an Expression for the following series 151, 152, 153, 161, 162, 163, 171............N
Sign up free to see the model answers to written questions 4–5 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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; Attacks & Threats, Functions & Recursion and Keys & Relational Model lead, with 1 each. Attacks & Threats is asked in 81 other papers too (2012–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Attacks & Threats Cyber Security · 81 other papers, 2012–20261
- Functions & Recursion Programming · 60 other papers, 2017–20261
- Keys & Relational Model Database · 42 other papers, 2017–20251
- Sets, P&C, Syllogism & Puzzles Mathematics · 20 other papers, 2017–20261
- Probability & Statistics Mathematics · 17 other papers, 2018–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 Jahangirnagar University Department of CSE Admission: 2016 exam (2016)?
- 5 written questions.
- Which subjects were asked most in the Jahangirnagar University Department of CSE Admission: 2016 exam (2016)?
- Mathematics (2), Cyber Security (1) and Database (1), out of 5 questions.
- When was the Jahangirnagar University Department of CSE Admission: 2016 exam held?
- In 2016. The exact day isn't in our records.
- Where can I find the Jahangirnagar University Department of CSE Admission: 2016 exam (2016) 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