Jahangirnagar University Department of CSE Admission: 2015 Exam 2015 — Question Solution | জাহাঙ্গীরনগর বিশ্ববিদ্যালয় নিয়োগ পরীক্ষা ২০১৫ — প্রশ্ন সমাধান
- Jahangirnagar University
- 2015
- 8 questions · 0 MCQ, 8 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Jahangirnagar University Department of CSE Admission: 2015 exam was held in 2015. The paper had 8 written questions. The subjects asked most were Networking (3), Database (2) and Programming (2). 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
- Jahangirnagar University
- Exam date
- 2015
- Questions
- 8 (0 MCQ, 8 written)
- Exam guide
- M.Sc. admission (CSE and ICT) · এমএসসি ভর্তি (সিএসই ও আইসিটি)
Distinguish between database schema and instance.
Model answer
A database schema is the design of a database: its tables, columns, data types, keys, constraints and relationships. It is defined with DDL and changes rarely. A database instance (also called the database state) is the actual data stored in the database at one particular moment. It changes every time rows are inserted, updated or deleted.
| Aspect | Schema | Instance |
|---|---|---|
| What it is | structure / design of the database | set of tuples (rows) present at a given moment |
| Also called | intension | extension, database state |
| Defined / changed by | DDL: CREATE, ALTER, DROP |
DML: INSERT, UPDATE, DELETE |
| How often it changes | rarely (a design change) | constantly |
| Stored in | the data dictionary (catalog) as metadata | the data files |
| Analogy | a class or type declaration; a blank form | objects of that class; the filled-in forms |
Example
Schema (one table):
CREATE TABLE student (
roll INT PRIMARY KEY,
name VARCHAR(40) NOT NULL,
dept VARCHAR(10) NOT NULL
);
erDiagram
STUDENT {
int roll PK
string name
string dept
}
Instance at time t₁, after two inserts:
| roll | name | dept |
|---|---|---|
| 101 | Sumaiya | CSE |
| 102 | Nahid | EEE |
Instance at time t₂, after INSERT INTO student VALUES (103, 'Rafsan', 'CSE') and UPDATE student SET dept = 'ICT' WHERE roll = 102:
| roll | name | dept |
|---|---|---|
| 101 | Sumaiya | CSE |
| 102 | Nahid | ICT |
| 103 | Rafsan | CSE |
The schema is the same at t₁ and t₂; only the instance changed. Right after CREATE TABLE, the instance is empty (0 rows). Running ALTER TABLE student ADD COLUMN phone VARCHAR(14) changes the schema: every row now has a phone column, NULL for the existing rows.
Related points
- Every instance must satisfy the schema's constraints. For example, inserting a second row with roll 101 is rejected by the primary key, so the instance always stays a valid state of the schema.
- In the three-schema architecture there are three schema levels: external (user views), conceptual/logical (tables and relationships) and internal/physical (files and indexes). The conceptual and internal levels each have one schema, while the external level can have several (one per user group); the schemas stay fixed while the instance keeps changing.
Exam tip: schema = structure (intension, changes rarely, DDL); instance = data at a moment (extension, changes often, DML). Show one table and two snapshots of its rows.
What is the main problem with MAC address-based communication over the Internet instead of IP address?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is SQL? Classify SQL statement in three categories.
Model answer
SQL (Structured Query Language) is the standard, declarative language of relational database systems. With it you define the structure of a database, store and change data, retrieve data with queries, and control who may access it. You state what result you want, and the DBMS decides how to get it. SQL was developed at IBM in the 1970s (as SEQUEL). It became an ANSI standard in 1986 and an ISO standard in 1987, and the current version is ISO/IEC 9075:2023. MySQL, PostgreSQL, Oracle, SQL Server and SQLite all use it, each with its own extensions.
Three categories of SQL statements
| Category | Full form | Purpose | Main statements |
|---|---|---|---|
| DDL | Data Definition Language | defines and changes the structure (schema) of database objects | CREATE, ALTER, DROP, TRUNCATE, RENAME |
| DML | Data Manipulation Language | works with the data in the tables | SELECT, INSERT, UPDATE, DELETE (MERGE in several DBMSs) |
| DCL | Data Control Language | controls access rights | GRANT, REVOKE |
Examples
-- DDL: define and change structure
CREATE TABLE student (roll INT PRIMARY KEY, name VARCHAR(30) NOT NULL);
ALTER TABLE student ADD COLUMN dept VARCHAR(10);
-- DML: work with the data
INSERT INTO student (roll, name, dept) VALUES (101, 'Sumaiya', 'CSE');
UPDATE student SET dept = 'ICT' WHERE roll = 101;
SELECT roll, name, dept FROM student WHERE dept = 'ICT' ORDER BY roll;
DELETE FROM student WHERE roll = 101;
-- DCL: give and take back a privilege
GRANT SELECT ON student TO exam_clerk;
REVOKE SELECT ON student FROM exam_clerk;
-- DDL: remove the table and its data
DROP TABLE student;
The GRANT/REVOKE lines use the PostgreSQL, Oracle and SQL Server form, where exam_clerk is a user or role. In MySQL the grantee is an account such as 'exam_clerk'@'localhost'. SQLite has no GRANT/REVOKE, because access is controlled by file permissions. ALTER TABLE … ADD COLUMN is the MySQL, PostgreSQL and SQLite form; SQL Server writes ADD without the word COLUMN.
Points that are often asked
DELETE(DML) removes rows and keeps the table.DROP(DDL) removes the table itself.TRUNCATEremoves all rows quickly and is treated as DDL in MySQL and Oracle, where it commits implicitly and cannot be rolled back.SELECTis sometimes listed on its own as DQL (Data Query Language).- A fourth group, TCL (Transaction Control Language:
COMMIT,ROLLBACK,SAVEPOINT), is often added. It groups DML statements into all-or-nothing transactions.
Exam tip: define SQL as the standard declarative language for relational databases. Then give the three categories with their purpose and commands: DDL = structure (CREATE, ALTER, DROP), DML = data (SELECT, INSERT, UPDATE, DELETE), DCL = permissions (GRANT, REVOKE).
What is a WiMAX? Write down the name of OSI model.
Define the Bandwidth and Latency.
What is output if you will compile and execute the following C code?
#include<stdio.h>
int main(){
int a=5;
float b;
printf("%d",sizeof(++a+b));
printf(" %d",a);
return 0;
}
What is the difference between WHILE and DO WHILE statements?
Suppose a=2, b=8. Find their arithmetic mean and geometric mean.
Sign up free to see the model answers to written questions 4–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; IP Addressing & Subnetting, Language Basics & Syntax and OSI & TCP/IP Models lead, with 1 each. IP Addressing & Subnetting is asked in 133 other papers too (2012–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- IP Addressing & Subnetting Networking · 133 other papers, 2012–20261
- Language Basics & Syntax Programming · 122 other papers, 2016–20261
- OSI & TCP/IP Models Networking · 112 other papers, 2012–20261
- ER Model & Design Database · 101 other papers, 2015–20261
- SQL & Queries Database · 93 other papers, 2016–20261
- Transmission & Media Networking · 79 other papers, 2012–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: 2015 exam (2015)?
- 8 written questions.
- Which subjects were asked most in the Jahangirnagar University Department of CSE Admission: 2015 exam (2015)?
- Networking (3), Database (2) and Programming (2), out of 8 questions.
- When was the Jahangirnagar University Department of CSE Admission: 2015 exam held?
- In 2015. The exact day isn't in our records.
- Where can I find the Jahangirnagar University Department of CSE Admission: 2015 exam (2015) 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