Jiban Bima Assistant Programmer Exam 2018 — Question Solution | জীবন বীমা কর্পোরেশন সহকারী প্রোগ্রামার নিয়োগ পরীক্ষা ২০১৮ — প্রশ্ন সমাধান
- Jiban Bima
- Assistant Programmer
- 2018
- 6 questions · 0 MCQ, 6 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Jiban Bima Assistant Programmer exam was held in 2018. The paper had 6 written questions. The subjects asked most were Programming (3), Database (2) 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
- Jiban Bima
- Post
- Assistant Programmer
- Exam date
- 2018
- Questions
- 6 (0 MCQ, 6 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
Construct a database table "Customer", Where CustomerID is primary key of the table.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Define Super key and Primary key.
Model answer
Super key: a set of one or more attributes whose combined value can never be the same in two rows of a relation, so it identifies every row uniquely. It may contain extra attributes that are not needed for uniqueness.
Primary key: the one candidate key (a minimal super key) that the designer chooses as the main identifier of the table. Its value must be unique and can never be NULL; a table has at most one primary key, and it may be a single column or a combination of columns (composite key).
Example: Vehicle(reg_no, chassis_no, model, owner_name)
Business rules: every vehicle has its own registration number and its own chassis number; model and owner can repeat (one owner may have two cars of the same model). So reg_no → all attributes and chassis_no → all attributes.
| Attribute set | Super key? | Minimal (candidate key)? | Primary key? |
|---|---|---|---|
| {reg_no} | Yes | Yes | Yes (chosen) |
| {chassis_no} | Yes | Yes | No (alternate key) |
| {reg_no, model} | Yes | No (model is extra) | No |
| {chassis_no, owner_name} | Yes | No (owner_name is extra) | No |
| {model, owner_name} | No (two cars can share both) | – | – |
Every set that contains reg_no or chassis_no is a super key: 2⁴ − 2² = 12 super keys among the 15 non-empty attribute sets, but only 2 candidate keys and 1 primary key.
CREATE TABLE vehicle (
reg_no VARCHAR(20) NOT NULL PRIMARY KEY,
chassis_no VARCHAR(20) NOT NULL UNIQUE, -- alternate (candidate) key
model VARCHAR(30),
owner_name VARCHAR(40)
);
A second row with an existing reg_no, or with reg_no = NULL, is rejected. (In standard SQL a PRIMARY KEY column is NOT NULL automatically; SQLite accepts NULL in a non-INTEGER primary key unless NOT NULL is written, so it is written here.)
| Basis | Super key | Primary key |
|---|---|---|
| Minimal? | Not necessarily | Always (it is a candidate key) |
| Number per table | Many | At most one |
| NULL allowed? | Not part of the definition | Never |
| Chosen by designer? | No, any set that qualifies | Yes, picked from the candidate keys |
Primary key ⊆ candidate keys ⊆ super keys: every primary key is a super key, but not every super key is a primary key.
Exam tip: decide keys from business rules (what must never repeat), not from a few sample rows, and always mention minimality and NOT NULL for the primary key.
Write a program to check whether a number is prime or not prime.
Calculate subnet mask and network address from the given IP address. 192.168.5.44/26.
Write output:
#include<stdio.h>
#include<string.h>
int main(){
char str1[20]="Bangladesh";
char str2;
str1[4]='\0';
str2=strlen(str1);
printf("%s",str1);
return 0;
}
Write output:
#include<stdio.h>
int main(){
int i;
for(i=0;i<5;++i){
if(i==3)
continue;
printf("%d ",i);
}
return 0;
}
Sign up free to see the model answers to written questions 3–6 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
5 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; the biggest is Language Basics & Syntax, in Programming, with 2 questions. Language Basics & Syntax is asked in 122 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Language Basics & Syntax Programming · 122 other papers, 2015–20262
- IP Addressing & Subnetting Networking · 133 other papers, 2012–20261
- ER Model & Design Database · 101 other papers, 2015–20261
- Control Flow & Loops Programming · 76 other papers, 2015–20261
- Keys & Relational Model Database · 42 other papers, 2016–20251
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 Jiban Bima Assistant Programmer exam (2018)?
- 6 written questions.
- Which subjects were asked most in the Jiban Bima Assistant Programmer exam (2018)?
- Programming (3), Database (2) and Networking (1), out of 6 questions.
- When was the Jiban Bima Assistant Programmer exam held?
- In 2018. The exact day isn't in our records.
- Where can I find the Jiban Bima Assistant Programmer exam (2018) question solution?
- On this page: 1 of the 6 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