NESCO Junior Assistant Manager (ICT) Exam 2021 — Question Solution | নেসকো জুনিয়র সহকারী ব্যবস্থাপক (আইসিটি) নিয়োগ পরীক্ষা ২০২১ — প্রশ্ন সমাধান
- NESCO
- Junior Assistant Manager (ICT)
- 2021
- 4 questions · 0 MCQ, 4 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The NESCO Junior Assistant Manager (ICT) exam was held in 2021, conducted by BUET. The paper had 4 written questions. The subjects asked most were Database (1), Programming (1) and Software Engineering (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
- NESCO
- Post
- Junior Assistant Manager (ICT)
- Exam date
- 2021
- Conducted by
- BUET
- Questions
- 4 (0 MCQ, 4 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
What is the difference between http session and http cookies?
Model answer
HTTP is stateless: each request is independent, so a website needs a way to remember a user between requests. Cookies and sessions are the two common ways.
- HTTP cookie: a small name–value piece of data that the server asks the browser to store (with the
Set-Cookieheader). The browser sends it back with theCookieheader on every later request to that site. The data itself lives on the client. - HTTP session: state kept on the server (in memory, files, a database or Redis) for one user. The client receives only a random session ID, normally inside a cookie, and the server uses that ID to find the user's data.
How they work together
sequenceDiagram
participant B as Browser
participant S as Web server
B->>S: Login form submitted
S->>S: Create session record for user 2381
S-->>B: Response with Set-Cookie carrying only the session ID
B->>S: Next request with Cookie carrying the session ID
S->>S: Look up the session data by that ID
S-->>B: Personalised page
Set-Cookie: sid=q81kz3t7; Path=/; HttpOnly; Secure; SameSite=Lax
Set-Cookie: theme=dark; Max-Age=2592000
Here theme=dark is a cookie holding real data (kept for 30 days); sid is the session cookie that holds only the ID, while the user's details stay on the server.
Differences
| Basis | Cookie | Session |
|---|---|---|
| Stored at | Client (browser) | Server |
| What the client holds | The actual data | Only a session ID |
| Size | Small — browsers support about 4 KB per cookie and a limited number per site | Limited only by server storage |
| Lifetime | Until Expires/Max-Age; without them, until the browser closes; can last months |
Until logout, destroy or idle timeout (PHP's default garbage-collection lifetime is 1440 s = 24 min) |
| Sent on each request | Yes, every cookie for that site travels with every request | Only the small ID travels |
| Security | User can read or edit it; never store passwords or sensitive data | Data hidden from the user; the risk is theft of the session ID (hijacking) |
| Dependency | Works on its own | Normally depends on a cookie to carry the ID |
| Server load | None | Uses server memory or storage per user |
| Typical use | Language, theme, "remember me" | Login state, shopping cart, user role |
In PHP
<?php
// Cookie: the value is stored in the browser for 30 days
setcookie("theme", "dark", time() + 30 * 24 * 60 * 60);
// Session: the data stays on the server, the browser gets only PHPSESSID
session_start();
session_regenerate_id(true); // new session ID after login (prevents session fixation)
$_SESSION["user_id"] = 2381;
// Removing them (for example on logout)
setcookie("theme", "", time() - 3600); // there is no unsetcookie(); set a past expiry
$_SESSION = [];
session_destroy();
Exam tip: cookie = client-side, small, can persist, less secure; session = server-side, larger, ends on logout or timeout, more secure, and identified by a session-ID cookie.
emp [e_id, e_name, dept_id, salary, DOB], dept [dept_id, city, dept_name]; প্রত্যেকটি Department এর নাম এবং ঐ Department এর employee দের গড় Salary দেখার SQL Query লিখ।
Find Output:
#include <stdio.h>
int main() {
int i, sum=0, x;
for(i=0, x=0; i<=10; i+=2){
x=i+3;
if(i==2)
continue;
if(i>8)
break;
sum+=(i+x);
printf("i=%d x=%d sum=%d\n", i, x, sum);
}
printf("Out site loop:\n i=%d x=%d sum=%d", i,x,sum);
return(0);
}
1 জন ব্যক্তি 1টি Bank Account খোলার জন্য একটি form fillup করেন। এরপর তাতে Manager স্বাক্ষর করেন। এবার উক্ত Account-এ ঐ ব্যক্তি কিছু টাকা Deposit করলে Account সচল হয়। এই Process টি DFD এর মাধ্যমে প্রকাশ করুন।
Sign up free to see the model answers to written questions 2–4 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
3 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৩টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 4 syllabus chapters; Language Basics & Syntax, SQL & Queries and Requirements & Design 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
- Requirements & Design Software Engineering · 50 other papers, 2016–20261
- HTTP & Web Protocols Web Technology · 25 other papers, 2015–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 NESCO Junior Assistant Manager (ICT) exam (2021)?
- 4 written questions.
- Which subjects were asked most in the NESCO Junior Assistant Manager (ICT) exam (2021)?
- Database (1), Programming (1) and Software Engineering (1), out of 4 questions.
- When was the NESCO Junior Assistant Manager (ICT) exam held?
- In 2021, conducted by BUET. The exact day isn't in our records.
- Where can I find the NESCO Junior Assistant Manager (ICT) exam (2021) question solution?
- On this page: 1 of the 4 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