PGCB Sub-Assistant Engineer Exam 30 September 2021 — Question Solution | পিজিসিবি উপ-সহকারী প্রকৌশলী নিয়োগ পরীক্ষা ২০২১ — প্রশ্ন সমাধান
- PGCB
- Sub-Assistant Engineer
- 30 September 2021
- 9 questions · 0 MCQ, 9 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The PGCB Sub-Assistant Engineer exam was held on 30 September 2021, conducted by BUET. The paper had 9 written questions. The subjects asked most were Networking (2), Programming (2) and Web Technology (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
- PGCB
- Post
- Sub-Assistant Engineer
- Exam date
- 30 September 2021
- Conducted by
- BUET
- Questions
- 9 (0 MCQ, 9 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
MySQL database এর ক্ষেত্রে Backup and Restore করার কমান্ড লিখ।
What is API?
Sign up free to see the model answers to written questions 1–2 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is the difference between Compiler and Interpreter?
Model answer
Compiler vs Interpreter
Both translate a high-level program into a form the machine can execute. A compiler translates the whole high-level program into machine code (object code / an executable) before it runs. An interpreter translates and executes the program one statement at a time while it runs, and produces no separate executable file.
| Basis | Compiler | Interpreter |
|---|---|---|
| Unit translated | Whole program at once | One statement (line) at a time |
| Output | Object code / executable file, saved and reused | No object file; translation is repeated on every run |
| Error reporting | Errors of the whole program are reported together after translation; nothing runs until they are fixed | Execution stops at the first error reached; earlier statements have already run |
| Execution speed | Fast, translation is done once | Slower, translation happens during execution |
| Start-up | Translation step needed before the first run | Starts running immediately |
| Memory | Extra space needed to store the generated object code | No object code stored, but the interpreter must be in memory every run |
| Needed to run | Only the executable (for the same OS/CPU); the program code and the compiler are not needed | The program code and the interpreter, every time |
| Debugging | Edit, recompile, run | Easy to try statements interactively |
| Typical examples | C, C++, Pascal, Go (gcc, g++) | Python (CPython), BASIC, shell scripts, Ruby |
graph LR
subgraph CMP["Compiler"]
A["High-level program"] --> B["Compiler: translate the whole program"]
B --> X["Executable / object code"]
X --> R["Run many times, no re-translation"]
end
subgraph INT["Interpreter"]
S["High-level program"] --> T["Interpreter: translate one statement"]
T --> E["Execute that statement"]
E -->|"next statement"| T
end
Worked illustration. Suppose a three-line program has a misspelt function name on line 3:
print("A")
print("B")
prnt("C")
Python prints A and B, then stops at line 3 with NameError: name 'prnt' is not defined (Python 3.10+ adds the hint Did you mean: 'print'?). The same mistake in a C program is a compile-time error, so no executable is produced and nothing is printed.
Hybrid systems. Many real systems use both steps:
- Java:
javaccompiles the program to bytecode (.class); the JVM interprets that bytecode and its JIT compiler turns frequently used parts into machine code at run time. - CPython: first compiles the whole file to bytecode (so a syntax error is reported before any line runs), then interprets the bytecode on its virtual machine.
So "compiled" or "interpreted" describes a language implementation, not the language itself.
Exam tip: compiler = whole program first, separate executable, fast execution; interpreter = statement by statement, no executable, slower but immediate and easy to debug.
What is the difference between 8-bit (8085) and 16-bit (8086) microprocessor?
Apache কোন ধরনের Server এক কথায় লিখ?
E-mail পাঠানো এবং রিসিভ করার জন্য একটি করে প্রটোকলের নাম লিখ?
Python এ Recursive function ব্যবহার করে একটি ধনাত্মক সংখ্যার factorial মান বের করার function লিখ।
Linux এর ক্ষেত্রে User Creation এর কমান্ড লিখ?
Wi-Fi, Bluetooth, Wi-Max, Cellular network এইগুলোকে দূরত্ব অনুসারে ছোট থেকে বড় ক্রমে লিখ।
Sign up free to see the model answers to written questions 4–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 8 syllabus chapters; OSI & TCP/IP Models, SQL & Queries and Functions & Recursion lead, with 1 each. OSI & TCP/IP Models is asked in 112 other papers too (2012–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- OSI & TCP/IP Models Networking · 112 other papers, 2012–20261
- SQL & Queries Database · 93 other papers, 2015–20261
- Functions & Recursion Programming · 60 other papers, 2016–20261
- Wireless & Topologies Networking · 53 other papers, 2011–20261
- OS Basics & Types Operating Systems · 45 other papers, 2016–20261
- 8085/8086 Architecture Microprocessor · 36 other papers, 2011–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 PGCB Sub-Assistant Engineer exam (2021)?
- 9 written questions.
- Which subjects were asked most in the PGCB Sub-Assistant Engineer exam (2021)?
- Networking (2), Programming (2) and Web Technology (2), out of 9 questions.
- When was the PGCB Sub-Assistant Engineer exam held?
- On 30 September 2021, conducted by BUET.
- Where can I find the PGCB Sub-Assistant Engineer exam (2021) 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