Bangladesh Computer Council CA Monitoring System Project Exam 2021 — Question Solution | বাংলাদেশ কম্পিউটার কাউন্সিল (সিএ মনিটরিং সিস্টেম প্রকল্প) নিয়োগ পরীক্ষা ২০২১ — প্রশ্ন সমাধান
- Bangladesh Computer Council CA Monitoring System Project
- 2021
- 7 questions · 0 MCQ, 7 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Bangladesh Computer Council CA Monitoring System Project exam was held in 2021. The paper had 7 written questions. The subjects asked most were Programming (3), Database (2) and Cyber Security (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 Computer Council CA Monitoring System Project
- Exam date
- 2021
- Questions
- 7 (0 MCQ, 7 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
What is primary key?
Write the create table command for the 'Employee' table with the following columns: Emp_ID, Emp_Name, Date_of_Birth.
Difference between private key and public key.
Sign up free to see the model answers to written questions 1–3 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is the purpose of '\0' character in C?
Model answer
'\0' is the null character (NUL): the character whose code is 0, with all bits zero. Its purpose in C is to mark the end of a string. C has no separate string type; a string is an array of char, and the text ends at the first '\0'. Such a string is called a null-terminated string.
How "Dhaka" is stored (6 bytes for 5 letters):
| Index | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| Content | 'D' |
'h' |
'a' |
'k' |
'a' |
'\0' |
Why it is needed
- End marker for library functions:
strlen,strcpy,strcmp,strcatandprintf("%s")process characters one by one until they meet'\0'. Because of it, a string can be passed to a function without passing its length. - Added automatically: a string literal such as
"Dhaka"gets a hidden'\0';scanf("%s"),fgetsandstrcpyalso store one. So an array must have one extra byte:char name[10]can hold at most 9 visible characters. - Shortening a string: writing
'\0'into a position ends the string there.
Example
#include <stdio.h>
#include <string.h>
/* counts characters up to (not including) the terminator */
int my_len(const char *s)
{
int k = 0;
while (s[k] != '\0')
k++;
return k;
}
int main(void)
{
char city[] = "Dhaka"; /* stored as D h a k a \0 */
char part[10] = "Dhaka";
printf("strlen = %d, my_len = %d, sizeof = %d\n",
(int)strlen(city), my_len(city), (int)sizeof(city));
part[3] = '\0'; /* cut the string after 3 chars */
printf("after cut: %s (length %d)\n", part, (int)strlen(part));
printf("code of NUL = %d, code of digit zero = %d\n", '\0', '0');
return 0;
}
Output
strlen = 5, my_len = 5, sizeof = 6
after cut: Dha (length 3)
code of NUL = 0, code of digit zero = 48
strlen and my_len stop at '\0' and do not count it; sizeof counts the whole array, including '\0'.
Do not confuse
| Item | Meaning |
|---|---|
'\0' |
null character, code 0, ends a string |
'0' |
the digit zero, code 48 |
NULL |
null pointer constant, a pointer that points nowhere, not a character |
"" |
empty string: an array holding only '\0' |
If the terminator is missing, string functions keep reading past the end of the array into other memory (undefined behaviour). For example, strncpy(dst, src, n) does not add '\0' when src has n or more characters, so it must be added by hand.
Exam tip: '\0' (value 0) is the end-of-string marker in C; strlen excludes it, sizeof of the array includes it, and every char array needs one byte for it.
Write some default data type in C.
Write a C program to check whether a number is EVEN or ODD.
Write the full form of: VIRUS, BIOS, DoS attack, OSPF, DVD, WiFi.
Sign up free to see the model answers to written questions 5–7 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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 7 syllabus chapters; Language Basics & Syntax, SQL & Queries and Control Flow & Loops lead, with 1 each. 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–20261
- SQL & Queries Database · 93 other papers, 2015–20261
- Control Flow & Loops Programming · 76 other papers, 2015–20261
- Cryptography Cyber Security · 49 other papers, 2012–20261
- Pointers, Arrays & Strings Programming · 44 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 Computer Council CA Monitoring System Project exam (2021)?
- 7 written questions.
- Which subjects were asked most in the Bangladesh Computer Council CA Monitoring System Project exam (2021)?
- Programming (3), Database (2) and Cyber Security (1), out of 7 questions.
- When was the Bangladesh Computer Council CA Monitoring System Project exam held?
- In 2021. The exact day isn't in our records.
- Where can I find the Bangladesh Computer Council CA Monitoring System Project exam (2021) question solution?
- On this page: 1 of the 7 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