Bangladesh Competition Commission Programmer Exam 2019 — Question Solution | বাংলাদেশ প্রতিযোগিতা কমিশন প্রোগ্রামার নিয়োগ পরীক্ষা ২০১৯ — প্রশ্ন সমাধান
- Bangladesh Competition Commission
- Programmer
- 2019
- 9 questions · 0 MCQ, 9 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Bangladesh Competition Commission Programmer exam was held in 2019, conducted by DU. The paper had 9 written questions. The subjects asked most were Programming (3), Operating Systems (2) and Software Engineering (2). 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 Competition Commission
- Post
- Programmer
- Exam date
- 2019
- Conducted by
- DU
- Questions
- 9 (0 MCQ, 9 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
Difference between compiler and interpreter with example?
What is operating System? What are the main components of operating System?
Briefly Describe Abstraction, Encapsulation.
Sign up free to see the model answers to written questions 1–3 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is multitasking and multithreading? What are the advantages of threads over processes?
Model answer
Multitasking: the ability of an operating system to keep several tasks (processes) in progress at the same time. On one CPU core the OS switches the CPU among them so quickly (time-sharing) that they appear to run together; on a multi-core CPU some of them really run in parallel. In preemptive multitasking (Windows, Linux, macOS) a timer interrupt lets the OS take the CPU back; in older cooperative multitasking a task had to give up the CPU itself.
Multithreading: dividing a single process into several threads, the smallest units the CPU scheduler runs, which execute concurrently inside that process. All threads of a process share its code, data, heap and open files, but each thread has its own program counter, registers and stack.
| Point | Multitasking (several processes) | Multithreading (several threads in one process) |
|---|---|---|
| Unit of execution | Process | Thread |
| Memory | Separate address space for each process | One shared address space |
| Switching cost | Higher: the memory map (page tables) must also be switched | Lower: only registers and stack pointer change |
| Communication | Needs IPC (pipes, message queues, shared memory set-up) | Directly through shared variables |
| Isolation | A crash usually stays inside one process | A crashing thread can bring down the whole process |
flowchart TB
subgraph P["One process"]
SH["Shared: code, data, heap, open files"]
T1["Thread 1: own stack, registers, PC"] --> SH
T2["Thread 2: own stack, registers, PC"] --> SH
T3["Thread 3: own stack, registers, PC"] --> SH
end
Advantages of threads over processes:
- Cheaper creation: no new address space has to be built, so a thread starts much faster than a process.
- Faster context switch: switching between threads of the same process keeps the same memory map.
- Resource sharing: code, data and files are shared automatically, saving memory.
- Easy communication: threads exchange data through shared memory, without IPC system calls.
- Responsiveness: if one thread blocks on I/O, the other threads of the process keep working.
- Use of multiple cores: threads of one process can run in parallel on different cores, raising throughput.
Example: a spreadsheet program can use one thread to accept typing, a second to recalculate formulas and a third to autosave to disk. If autosave waits for the disk, typing is not frozen, and all three work on the same workbook in memory.
Shared memory also needs care: threads must use locks or other synchronisation to avoid race conditions.
Exam tip: multitasking = many processes sharing the CPU; multithreading = many threads inside one process sharing its memory. Threads are lighter and faster, at the cost of weaker isolation.
Write a program in C to find the sum of following series: 1²+2²+3²+ ………... +n²
What is the difference between primary key and candidate key? Explain the foreign key with an example.
A prime number is a number that is evenly divided by only 1 and itself. Write a program in your favorite language to print the first 100 prime numbers.
What is the output of following code?
#include<stdio.h>
void main (){
char *f [] = {"Ronaldo", "Messi", "Zidan", "Maradona"}, str[20];
printf("%s\n", f[1]+2);
printf("%s",f[2]+1);
}
Answer the following question:
a. Polymorphism refers to ________?
b. What is the simplest method to prove that a graph is bipartite?
c. In C what is the correct syntax to send a 3-dimension array as a parameter?
d. The Size of the character variable in C is ______?
e. In Java what is true about private constructor?
Sign up free to see the model answers to written questions 5–9 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
8 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৮টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 6 syllabus chapters; the biggest is Control Flow & Loops, in Programming, with 2 questions. Control Flow & Loops is asked in 76 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Control Flow & Loops Programming · 76 other papers, 2015–20262
- Language Basics & Syntax Programming · 122 other papers, 2015–20261
- Sorting Algorithms · 59 other papers, 2013–20261
- Processes & Threads Operating Systems · 55 other papers, 2011–20261
- OS Basics & Types Operating Systems · 45 other papers, 2016–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 Bangladesh Competition Commission Programmer exam (2019)?
- 9 written questions.
- Which subjects were asked most in the Bangladesh Competition Commission Programmer exam (2019)?
- Programming (3), Operating Systems (2) and Software Engineering (2), out of 9 questions.
- When was the Bangladesh Competition Commission Programmer exam held?
- In 2019, conducted by DU. The exact day isn't in our records.
- Where can I find the Bangladesh Competition Commission Programmer exam (2019) question solution?
- On this page: 1 of the 9 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