Previous (2021-2026) Assistant Programmer QnS

Combined Bank, Assistant Programmer, 2026 (Based year 2023)

You must subscribe & Login to view more.

Don’t have an account? Register

Or your subscription is under review by admin. Please message on WhatsApp / Telegram.

Combined Bank, Assistant Programmer, 2026 (Based Year 2022)

You must subscribe & Login to view more.

Don’t have an account? Register

Or your subscription is under review by admin. Please message on WhatsApp / Telegram.

ICB, Assistant Programmer, 2026
Assistant Programmer • Year 2026
Investment Corporation of Bangladesh
💼Post Name: Assistant Programmer 📅Exam Date: 27-Jun-2026
9. Write about ‘Social Media’ oportunities,challenge ,employment
10. Write about 150 word environment and economic impact of Renewable Energy
11. Translation Bangla to English: ২১শে ফেব্রুয়ারি আমাদের জাতীয় ইতিহাসে একটি গৌরবময় এবং স্মরণীয় দিন। প্রতি বছর আমরা এই দিনটিকে শহীদ দিবস এবং আন্তর্জাতিক মাতৃভাষা দিবস হিসেবে পালন করি . এই দিনটি তাদের সেই মহান ত্যাগকে স্মরণ করিয়ে দেয়।
ICB Asset Management Company Ltd, Assistant Programmer, 2024ok
ICB Asset Management Company Ltd

Post:Assistant Programmer
Exam taker:FBS, DU Mark: Non:50 Tech:50
1.What are the propagation time and the transmission time for a 2.5-Kbyte message and if the bandwidth of the network is 1Gbps? Assume that the distance between the sender and the receiver is 12,000 km and that light travels at 2.4 × 10⁸ m/s

Propagation Time and Transmission Time

  • Given: Message size = 2.5 KByte = 2.5 × 1024 = 2560 Byte = 2560 × 8 = 20480 bits
  • Bandwidth (R): 1 Gbps = 1 × 109 bps
  • Distance (d): 12,000 km = 12,000,000 m
  • Propagation speed (v): 2.4 × 108 m/s
  • Transmission Time (Tt) = Message bits / Bandwidth
    Tt = 20480 / (1 × 109) = 2.048 × 10-5 s ≈ 20.48 μs
  • Propagation Time (Tp) = Distance / Propagation speed
    Tp = 12,000,000 / (2.4 × 108) = 5.0 × 10-2 s = 0.05 s = 50 ms
  • Final Answer: Propagation time = 50 ms, Transmission time = 20.48 μs
2. Write difference between compiler and interpreter.

Difference Between Compiler and Interpreter

  • Translation Method: A compiler translates the entire source code at once; an interpreter translates and executes code line by line.
  • Execution Speed: Compiled programs execute faster; interpreted programs execute slower.
  • Error Detection: A compiler shows errors after compiling the whole program; an interpreter shows errors one by one during execution.
  • Output: A compiler generates object/executable code; an interpreter does not generate separate object code.
  • Memory Usage: Compiler requires more memory to store object code; interpreter requires less memory.
  • Examples: C, C++ use compiler; Python, JavaScript use interpreter.

Compiler এবং Interpreter-এর পার্থক্য

  • Translation Method: Compiler সম্পূর্ণ source code একবারে translate করে; Interpreter line by line translate ও execute করে।
  • Execution Speed: Compiler দ্বারা তৈরি program দ্রুত execute হয়; Interpreter দ্বারা execute হওয়া program তুলনামূলক ধীর।
  • Error Detection: Compiler পুরো program compile করার পর error দেখায়; Interpreter execution চলাকালীন একটির পর একটি error দেখায়।
  • Output: Compiler object/executable code তৈরি করে; Interpreter আলাদা object code তৈরি করে না।
  • Memory Usage: Compiler object code সংরক্ষণের জন্য বেশি memory ব্যবহার করে; Interpreter কম memory ব্যবহার করে।
  • উদাহরণ: C, C++ compiler ব্যবহার করে; Python, JavaScript interpreter ব্যবহার করে।
3.What is SDLC? Write down the Phases of SDLC?
SDLC (Software Development Life Cycle)

SDLC is a structured process used to develop high-quality software in a systematic and organized manner. It defines a set of phases that guide the development team from planning to maintenance.

Phases of SDLC:

  1. Planning: Identify the problem, define objectives, scope, budget, and feasibility of the project.
  2. Requirement Analysis: Gather and analyze user requirements to determine what the system should do.
  3. System Design: Prepare system architecture, database design, interface design, and technical specifications.
  4. Implementation (Coding): Develop the software according to the design.
  5. Testing: Test the system to detect and fix errors (unit, integration, system testing).
  6. Deployment: Install and release the software for users.
  7. Maintenance: Provide updates, fix bugs, and improve performance after deployment.

SDLC (Software Development Life Cycle)

SDLC হলো একটি কাঠামোবদ্ধ প্রক্রিয়া যার মাধ্যমে ধাপে ধাপে মানসম্মত সফটওয়্যার তৈরি করা হয়।

SDLC-এর ধাপসমূহ:

  1. Planning: সমস্যা চিহ্নিত করা, লক্ষ্য, পরিধি, বাজেট ও সম্ভাব্যতা নির্ধারণ।
  2. Requirement Analysis: ব্যবহারকারীর চাহিদা সংগ্রহ ও বিশ্লেষণ।
  3. System Design: সিস্টেমের কাঠামো, ডাটাবেস ও ইন্টারফেস ডিজাইন করা।
  4. Implementation (Coding): ডিজাইন অনুযায়ী প্রোগ্রাম তৈরি করা।
  5. Testing: ত্রুটি শনাক্ত ও সংশোধনের জন্য পরীক্ষা করা।
  6. Deployment: সফটওয়্যার ব্যবহারকারীদের জন্য চালু করা।
  7. Maintenance: সফটওয়্যার রক্ষণাবেক্ষণ ও উন্নয়ন করা।
4. Difference between while and do while loop.

Difference Between while and do-while Loop (With Example)

  • Condition Checking: In a while loop, the condition is checked before executing the loop body; in a do-while loop, the condition is checked after executing the loop body.
  • Execution Guarantee: A while loop may execute zero times if the condition is false; a do-while loop executes at least once.
  • Type of Loop: while is an entry-controlled loop; do-while is an exit-controlled loop.
  • Syntax Structure: In while loop, the condition appears at the beginning; in do-while loop, the condition appears at the end.
  • Semicolon Usage: while loop does not require a semicolon after the condition; do-while loop requires a semicolon at the end.

Example:

while loop:
int i = 5;
while(i < 5) {
System.out.println(i);
i++;
}
(Output: No output because condition is false at the beginning)

do-while loop:
int i = 5;
do {
System.out.println(i);
i++;
} while(i < 5);
(Output: 5 → Executes at least once)

while এবং do-while loop-এর পার্থক্য (উদাহরণসহ)

  • Condition Checking: while loop-এ condition আগে check করা হয়; do-while loop-এ loop body execute হওয়ার পর condition check করা হয়।
  • Execution Guarantee: while loop-এ condition false হলে একবারও execute নাও হতে পারে; do-while loop অন্তত একবার execute হয়।
  • Loop-এর ধরন: while একটি entry-controlled loop; do-while একটি exit-controlled loop।
  • Syntax Structure: while loop-এ condition শুরুতে থাকে; do-while loop-এ condition শেষে থাকে।
  • Semicolon ব্যবহার: while loop-এ condition-এর পরে semicolon লাগে না; do-while loop-এ শেষে একটি semicolon ব্যবহার করতে হয়।

উদাহরণ

while loop:
int i = 5;
while(i < 5) {
System.out.println(i);
i++;
}
(Output: শুরুতেই condition false, তাই কিছু print হবে না)

do-while loop:
int i = 5;
do {
System.out.println(i);
i++;
} while(i < 5);
(Output: 5 → অন্তত একবার execute হবে)

5. Write the RSA Algorithm used for public key cryptography.

RSA Algorithm (Public Key Cryptography)

RSA is an asymmetric encryption algorithm that uses two keys: a Public Key and a Private Key.

Step 1: Key Generation

  1. Choose two large prime numbers: p and q.
  2. Compute n = p × q.
  3. Compute Euler’s Totient: φ(n) = (p − 1)(q − 1).
  4. Choose an integer e such that:
    • 1 < e < φ(n)
    • gcd(e, φ(n)) = 1
  5. Compute d such that:
    d × e ≡ 1 (mod φ(n))

Public Key: (e, n)
Private Key: (d, n)

Step 2: Encryption
To encrypt message M:
C = Me mod n

Step 3: Decryption
To decrypt ciphertext C:

M = Cd mod n

RSA Algorithm (Public Key Cryptography)

RSA একটি asymmetric encryption পদ্ধতি, যেখানে দুটি key ব্যবহৃত হয়: Public Key এবং Private Key
ধাপ ১: Key Generation

    1. দুটি বড় prime সংখ্যা নির্বাচন করো: p এবং q
    2. গণনা করো n = p × q
    3. Euler’s Totient নির্ণয় করো:
      φ(n) = (p − 1)(q − 1)
    4. একটি সংখ্যা e নির্বাচন করো যাতে:
      • 1 < e < φ(n)
      • gcd(e, φ(n)) = 1
  1. d নির্ণয় করো যাতে:
    d × e ≡ 1 (mod φ(n))

Public Key: (e, n)
Private Key: (d, n)

ধাপ ২: Encryption
বার্তা M encrypt করতে:
C = Me mod n
ধাপ ৩: Decryption
Ciphertext C decrypt করতে:
M = Cd mod n

6. You are given a sorted array of integers. Write an algorithm using Binary Search to search for a given key element in the array. If the element is found, return its index; otherwise, return -1.

Binary Search Algorithm

Binary Search is used to find a key element in a sorted array by repeatedly dividing the search interval into two halves.

Pseudocode:

BINARY_SEARCH(A, n, key)
1. low ← 0
2. high ← n - 1
3. while low ≤ high do
4.     mid ← (low + high) / 2
5.     if A[mid] = key then
6.         return mid
7.     else if A[mid] < key then
8.         low ← mid + 1
9.     else
10.        high ← mid - 1
11. return -1

Explanation:

  • If the key equals the middle element, return its index.
  • If the key is greater, search the right half.
  • If the key is smaller, search the left half.
  • If not found, return -1.

Time Complexity: O(log n)
Space Complexity: O(1)

Binary Search অ্যালগরিদম

Binary Search একটি sorted array-এ কোনো key খুঁজতে ব্যবহৃত হয়। এটি বারবার array-কে দুই ভাগে বিভক্ত করে অনুসন্ধান করে।

Pseudocode:

BINARY_SEARCH(A, n, key)
1. low ← 0
2. high ← n - 1
3. while low ≤ high do
4.     mid ← (low + high) / 2
5.     if A[mid] = key then
6.         return mid
7.     else if A[mid] < key then
8.         low ← mid + 1
9.     else
10.        high ← mid - 1
11. return -1

ব্যাখ্যা:

  • key যদি মধ্যম উপাদানের সমান হয়, index ফেরত দেয়।
  • key বড় হলে ডান অংশে খোঁজে।
  • key ছোট হলে বাম অংশে খোঁজে।
  • না পেলে -1 ফেরত দেয়।

Time Complexity: O(log n)
Space Complexity: O(1)

7. Write various types of CPU scheduling. Describe a CPU scheduling method which has best performance.

Types of CPU Scheduling

  • First Come First Serve (FCFS): Processes are executed in the order of their arrival.
  • Shortest Job First (SJF): The process with the shortest burst time is executed first.
  • Shortest Remaining Time First (SRTF): Preemptive version of SJF where the process with the shortest remaining time is selected.
  • Priority Scheduling: The process with the highest priority is executed first.
  • Round Robin (RR): Each process gets a fixed time quantum in cyclic order.
  • Multilevel Queue Scheduling: Processes are divided into different queues based on priority or type.
  • Multilevel Feedback Queue: Processes can move between queues based on their behavior and execution history.

Best Performing CPU Scheduling Method – Shortest Job First (SJF)

Shortest Job First (SJF) is considered one of the best scheduling algorithms in terms of performance because it minimizes the average waiting time.

  • Working Principle: The process with the smallest CPU burst time is selected first.
  • Performance: It gives minimum average waiting time among all scheduling algorithms.
  • Efficiency: Short processes are completed quickly, improving overall throughput.
  • Limitation: It may cause starvation for long processes.

CPU Scheduling-এর বিভিন্ন প্রকার

  • First Come First Serve (FCFS): Process আগমনের ক্রমানুসারে execute হয়।
  • Shortest Job First (SJF): যে process-এর burst time সবচেয়ে কম, সেটি আগে execute হয়।
  • Shortest Remaining Time First (SRTF): এটি SJF-এর preemptive version, যেখানে কম remaining time বিশিষ্ট process নির্বাচন করা হয়।
  • Priority Scheduling: সর্বোচ্চ priority বিশিষ্ট process আগে execute হয়।
  • Round Robin (RR): প্রতিটি process নির্দিষ্ট time quantum পায় এবং পর্যায়ক্রমে execute হয়।
  • Multilevel Queue Scheduling: বিভিন্ন ধরনের process আলাদা queue-তে ভাগ করা হয়।
  • Multilevel Feedback Queue: Process-এর behavior অনুযায়ী এক queue থেকে অন্য queue-তে স্থানান্তর করা যায়।

সর্বোত্তম Performance প্রদানকারী CPU Scheduling – Shortest Job First (SJF)

Shortest Job First (SJF) algorithm performance-এর দিক থেকে অন্যতম সেরা, কারণ এটি average waiting time সর্বনিম্ন রাখে।

  • Working Principle: যে process-এর CPU burst time সবচেয়ে কম, সেটি আগে execute করা হয়।
  • Performance: এটি সব scheduling algorithm-এর মধ্যে সর্বনিম্ন average waiting time প্রদান করে।
  • Efficiency: ছোট process দ্রুত সম্পন্ন হওয়ায় throughput বৃদ্ধি পায়।
  • Limitations: বড় process-এর ক্ষেত্রে starvation হতে পারে।
8. Write a program that check a number is prime number.
#include <stdio.h>

int main() {
    int num, i, isPrime = 1;

    printf("Enter a number: ");
    scanf("%d", &num);

    if (num <= 1) {
        isPrime = 0;
    } else {
        for (i = 2; i <= num / 2; i++) {
            if (num % i == 0) {
                isPrime = 0;
                break;
            }
        }
    }

    if (isPrime)
        printf("%d is a prime number.\n", num);
    else
        printf("%d is not a prime number.\n", num);

    return 0;
}
9. Write various types of information security against cyber threats.

Types of Information Security Against Cyber Threats

Information Security includes different protective measures to safeguard data and systems from cyber attacks.

  1. Network Security: Protects network infrastructure from unauthorized access and attacks using Firewall, IDS/IPS, VPN, etc.
  2. Application Security: Secures software and applications from vulnerabilities through secure coding, patch management, and testing.
  3. Data Security: Protects sensitive data using encryption, data masking, and backup systems.
  4. Endpoint Security: Secures end-user devices such as computers and smartphones using antivirus and anti-malware tools.
  5. Cloud Security: Protects cloud-based systems and data using access control, encryption, and monitoring.
  6. Identity and Access Management (IAM): Controls user authentication and authorization using passwords, biometrics, and multi-factor authentication (MFA).
  7. Physical Security: Protects hardware and infrastructure from physical damage or theft.

Conclusion: Effective information security requires a combination of technical, administrative, and physical controls to protect against cyber threats.

Cyber Threat-এর বিরুদ্ধে Information Security-এর প্রকারভেদ

Information Security বিভিন্ন পদ্ধতিতে তথ্য ও সিস্টেমকে সাইবার আক্রমণ থেকে রক্ষা করে।

  1. Network Security: Firewall, IDS/IPS, VPN ব্যবহার করে নেটওয়ার্ক সুরক্ষা।
  2. Application Security: Secure coding ও patch management-এর মাধ্যমে সফটওয়্যার সুরক্ষা।
  3. Data Security: Encryption ও backup-এর মাধ্যমে সংবেদনশীল তথ্য সুরক্ষা।
  4. Endpoint Security: Antivirus ও anti-malware দ্বারা ব্যবহারকারীর ডিভাইস সুরক্ষা।
  5. Cloud Security: Cloud system-এ access control ও encryption ব্যবহার।
  6. Identity and Access Management (IAM): Password, biometric ও MFA-এর মাধ্যমে ব্যবহারকারী যাচাই।
  7. Physical Security: Hardware ও অবকাঠামো শারীরিকভাবে সুরক্ষা।
10. What is trigger, explain with example. Why trigger needed?
Trigger in DBMSA Trigger is a special type of stored procedure in a database that automatically executes (fires) in response to specific events such as INSERT, UPDATE, or DELETE operations on a table.Why Trigger is Needed?
  • To enforce business rules automatically.
  • To maintain data integrity.
  • To audit changes (track modifications).
  • To automatically update related tables.
Example:Suppose we want to keep a log whenever a new employee is inserted.
CREATE TRIGGER emp_log
AFTER INSERT ON Employee
FOR EACH ROW
BEGIN
   INSERT INTO Employee_Log(emp_id, action)
   VALUES (NEW.id, 'New Employee Added');
END;
Explanation:
  • This trigger runs automatically after a new record is inserted into the Employee table.
  • It stores the employee ID and action in the Employee_Log table.
Conclusion: Triggers help automate tasks, maintain consistency, and enforce rules in a database system.
DBMS-এ TriggerTrigger হলো একটি বিশেষ ধরনের stored procedure যা কোনো নির্দিষ্ট event (যেমন INSERT, UPDATE, DELETE) ঘটলে স্বয়ংক্রিয়ভাবে কার্যকর হয়।Trigger কেন প্রয়োজন?
  • Business rule স্বয়ংক্রিয়ভাবে প্রয়োগ করতে।
  • Data integrity বজায় রাখতে।
  • Data পরিবর্তনের লগ রাখতে।
  • সম্পর্কিত table স্বয়ংক্রিয়ভাবে update করতে।
উদাহরণ:ধরা যাক, নতুন employee যোগ হলে একটি log রাখতে চাই।
CREATE TRIGGER emp_log
AFTER INSERT ON Employee
FOR EACH ROW
BEGIN
   INSERT INTO Employee_Log(emp_id, action)
   VALUES (NEW.id, 'New Employee Added');
END;
ব্যাখ্যা:
  • Employee table-এ নতুন record যোগ হলে trigger স্বয়ংক্রিয়ভাবে কাজ করবে।
  • Employee_Log table-এ তথ্য সংরক্ষণ করবে।
Combined Bank, Assistant Programmer, 2024 (MCQ)
Combined Bank
Post: Assistant Programmer
Exam Date: 15.02.2024, Exam Taker: ANZA

Here Total Question: 45
To show all question with answer click: See Answer or take exam

1.
আপন পাঠেতে করহ নিবেশ', বাক্যে 'পাঠেতে' শব্দটি কোন কারকে কোন বিভক্তি?
2.
একাধিক স্বাধীন বাক্যকে একটি বাক্যে লিখলে সেগুলোর মাঝখানে কোন চিহ্ন বসে?
3.
কোনটি অস্তিবাচক বাক্য?
4.
সাদাটে হলুদ বর্ণকে কী বলা হয়?
5.
কোনটি বাংলা একাডেমি থেকে প্রকাশিত মাসিক পত্রিকা?
6.
'আবির্ভাব' শব্দটি গঠিত হয়েছে-
7.
Which one of the following is true?
8.
The Mona Lisa portrait was painted by Leonardo da Vinci in the—
9.
Who wrote the book ‘Politics’?
10.
Pythagoras was a Greek—
11.
What is the name of American built spacecraft landed in the lunar’s southern polar region on February 22, 2024?
12.
GPT stands for—
13.
The poem ‘Shadhinota Tumi’ is written by—
14.
Who is the fastest woman after winning 100 metre sprint titles of the 44th National Games Championship held in January 2024?
15.
Who taught her such things? (Passive Voice)
16.
We hope that we shall win the match. (Passive Voice)
17.
The Manager said, “Well, what can I do for you?”
18.
He said, “Can you sing?” And I said, “No.”
19.
He said, “Will you listen to such a man?”
20.
In how many ways can a group of 5 men and 2 women be made out of a total of 7 men and 3 women?
21.
The area of a square is three-fifths the area of a rectangle. The length of rectangle is 25 cm and breadth is 10 cm. What is the perimeter of the square?
22.
The number 3 divides ‘a’ with result ‘b’ and remainder 2. The number 3 divides ‘b’ with result 2 and remainder 1. What is the value of ‘a’?
23.
Which of the following is not a prime number?
24.
What will be the output of this C program?
25.
What is the output of this Java program?
26.
Interfaces in Java are meant to be—
27.
Which one is the first high level programming language?
28.
Which one is the first search engine?
29.
Which sorting algorithm is best for linked list with minimum time complexity?
30.
Let P be a singly linked list. Let Q be the pointer to an intermediate node x in the list. What is the worst-case time complexity of the best known algorithm to delete the node x from the list?
31.
In a doubly linked list, the number of pointers affected in insertion operation will be—
32.
The time required to search an element in a linked list of length n is—
33.
The minimum number of fields with each node of doubly linked list is— 1 2 3 4
34.
IPv6 does not support which addressing mode?
35.
What is the class and subnet bits if the subnet mask is 255.224.0.0?
36.
What is the output of this C program? (static recursive example)
37.
Which of the following is not a storage class specifier in C?
38.
In C, static storage class cannot be used with—
39.
Which storage class has global visibility in C/C++?
40.
Output of: int y = 0; int x = (y != 0); printf("%d", x);
41.
Which data structure follows FIFO principle?
42.
43.
Which protocol is used to send emails?
44.
Which number system is used internally by a computer?
45.
Combined Bank, Assistant Programmer, 2024

You must subscribe & Login to view more.

Don’t have an account? Register

Or your subscription is under review by admin. Please message on WhatsApp / Telegram.

Combined Bank, Assistant Programmer, 2023

You must subscribe & Login to view more.

Don’t have an account? Register

Or your subscription is under review by admin. Please message on WhatsApp / Telegram.

Bangladesh Bank, Assistant Programmer, 2023
Assistant Programmer • Year 2023
Bangladesh Bank
💼Post Name: Assistant Programmer 📅Exam Date: 03-Feb-2024
Bangladesh Bank, Assistant Programmer, 2023 (MCQ)
Bangladesh Bank
Post: Assistant Programmer
Exam Date: 03.02.2023, Exam Taker: BIBM

Here Total Question: 25
To show all question with answer click: See Answer or take exam

1.
print(9 // 2)
2.
Which of the following operators cannot be overloaded in C/C++?
3.
Assume that the size of an integer is 4 bytes. Predict the output of the following program:


#include
int main() {
int i = 12;
int j = sizeof(i++);
printf("%d %d", i, j); return 0;
}

4.
Which of the following algorithm design techniques is used in finding all pairs of shortest distances in a graph?
5.
Access time of the symbolic table will be logarithmic if it is implemented by-
6.
When was International Mother Language Day declared by UNESCO?
7.
If the radius is increased by 100%, by how much will the area of the circle be increased?
8.
Which data structure allows insertion and deletion of elements from both ends?
9.
Which of the following belongs to the algorithm paradigm?
10.
What is the result of compiling and running the following code?

public class Test {
public static void main(String[] args) {
int[] a = new int[0];
System.out.print(a.length);
}
}

11.
World environment day is celebrated on _____ of every year.
12.
In a complete k-array, every internal node has exactly k children. The number of leaves in such a tree with n internal nodes is-
13.
The time taken by NP-class sorting algorithm is-
14.
Determine Output:

void main() {
struct xx {
int x=3;
char name[] = "hello";
};
struct xx *s = malloc(sizeof(struct xx));
printf("%d", s->x);
printf("%s", s->name);
}

15.
What is the complexity of Merge sort?
16.
Which of the following is a non-linear data structure?
17.
Which of the following is not the required condition for a binary search algorithm?
18.
Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements?
19.
The _____ system may manage a high degree of interaction between processes and is very useful for high-speed and real-time processing.
20.
Table employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE. The SQL statement: SELECT COUNT (*) FROM employee WHERE SALARY > ALL (SELECT SALARY FROM EMPLOYEE);
21.
Design pattern for hierarchical structure is _____
22.
How many addresses are there in the network 200.10.10.10/20?
23.
Which is suitable subnet mask for 200 hosts?
24.
Determine Output:

void main() {
int i=i++, j=j++, k=k++;
printf("%d %d %d", i, j, k);
}

25.
The IPv4 is encapsulated to IPv6 which is known as _____.
SPCBL, Sub Assistant Programmer, 2022ok
Assistant Programmer • Year 2022
The Security Printing Corporation (Bangladesh) Ltd.
💼Post Name: Sub Assistant Programmer 📅Exam Date: 15-Jan-2022
6 Banks & Fin. Institutions, Assistant Programmer, 2021
Assistant Programmer • Year 2021
6 Banks and Financial Institution
💼Post Name: Assistant Programmer 📅Exam Date: 2021
6 Bank & Financial Institution, Assistant Programmer, 2021(MCQ)
6 Banks & Financial Institution
Post: Assistant Programmer
Exam Date: 18/03/2021

Here Total Question: 40
To show all question with answer click: See Answer or take exam

1.
Which of the following is correct to initialize arrays in C?
2.
What is the access methodology in array?
3.
What is the output for the following C code segment?

int i;
if (printf("0")) i = 5;
else i = 3;
printf("%d", i);

4.
In a shop, customers are provided the service as a first come first serve policy, but some special customers can be served at any time based on their importance. Which data structure most fits this scenario?
5.
Which of the following is correct?
6.
Which of the following data structures is more suitable for graph representation in Floyd-Warshall Algorithm?
7.
Which of the following is not a method of the Thread class?
8.
Which of the following statements is correct regarding abstract classes?
9.
The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is:
10.
In the following graph, determine the cost of the shortest path between node 1 and node 4.

11.
Suppose you are searching student data using student number as the key. Which of the following arrangements of the student data is suited for binary search?
12.
What is the output of this Java program?

class Test {
int i;
}
class Main {
public static void main(String args[]) {
Test t;
System.out.println(t.i);
}
}

13.
Suppose you are using an HTML browser at a client machine C to access a static HTML webpage hosted on an HTTP server S. The page contains exactly one static embedded image which also resides at S. Assuming no web caching, which of the following is correct when you load the webpage along with the embedded image?
14.
Converting a primitive type data into its corresponding wrapper class object instance is called ___.

Converting a primitive type data into its corresponding wrapper class object instance is called ___.

15.
An n x n array v is defined as follows:


v[i, j] = i - j for all
i, j, 1 <= i <= n, 1 <= j <= n

The sum of the elements of the array v is:

16.
The combination of an IP address and a port number is known as ___.
17.
To implement Dijkstra’s shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is ___.
18.
Consider the function fun(x, y) below. That is the value of fun(4, 3)?

int fun(int x, int y)
{
if (x == 0)
return y;
return fun(x - 1, x + y);
}

19.
What does the following function do?

int fun(int x, int y)
{
if (y == 0)
return 0;
return (x + fun(x, y - 1));
}

20.
Which of the following is not an in-place algorithm?
21.
Which of the following statements is/are TRUE for an undirected graph?

P: Number of odd degree vertices is even
Q: Sum of degrees of all vertices is even

22.
What is the full form of SMTP?
23.
Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE. The SQL statement

SELECT COUNT(*) FROM Employee
WHERE SALARY > ANY (SELECT SALARY FROM EMPLOYEE);

24.
An inversion in an array A[] is a pair (A[i], A[j]) such that A[i] > A[j] and i < j. An array will have maximum number of inversions if it is:
25.
Which of the following is the regular expression to represent all the binary strings with odd number of 1's?
26.
Which of the following data structures can be used both as Stack and Queue?
27.
What is the correct output of the following C program statements?

int array[] = {6, 7, 8, 9, 0, 1, 2, 4, 5, 6}, *p = array+5;
printf("%d\n", p[1]);

28.
What does the following function do for a given Linked List with the first node as head?

void fun1(struct node* head)
{

if (head == NULL)
return;
fun1(head->next);
printf("%d", head->data);
}

29.
Suppose you want to insert n elements into an empty linked list while maintaining the sorted order. What is the worst-case time complexity?
30.
Which of the following operations is not O(1) for an array of sorted data? You may assume that array elements are distinct.
31.
Which protocol dynamically assigns IP addresses in a TCP/IP network?
32.
The Post-order traversal of a binary tree is 8, 9, 6, 7, 4, 5, 2, 3, 1. The In-order traversal of the same tree is 8, 6, 9, 4, 7, 2, 5, 1, 3. What is the height of the above
33.
Suppose you have an 8-bit binary number N. Which of the following operations does not change its lower 4 bits?
34.
Which of the following is the appropriate set of test cases, (A, B) when the part of a program shown is tested by decision condition coverage (branch coverage)?


if (A OR B)
X = X+1;
else X = X-1;

35.
Consider a virtual memory system where three pages are allocated for real memory. If the page replacement algorithm used is FIFO, how many page replacements take place for the access sequence: 1, 3, 2, 1, 4, 5, 2, 3, 4, 5?
36.

#include
struct Testnode { char x, y, z; };
int main() {
struct Testnode node1 = {'(', '2', 'c'+3};
struct Testnode *node2 = &node1;
printf("%c, %c", *((char*)node2+1), *((char*)node2+2));
return 0;
}

37.
The minimum number of comparisons required to determine if an integer appears more than n/2 times in an array of integers is:
38.
Consider an Entity-relationship from entity set E1 to entity set E2. If E1 and E2 participate totally in R and cardinality of E1 is greater than the cardinality of E2. Which of the following is true about R?
39.
Suppose, Y is an integer variable whose value is either 0 or 1. Which of the following is the equivalent of the statement: if (Y==0) Y=1; else Y=0;?
40.
Following table shows the delivery record of an online shop. Which of the SQL statements results in the largest value?


You must subscribe & Login to view more.

Don’t have an account? Register

Or your subscription is under review by admin. Please message on WhatsApp / Telegram.

Leave a Comment

WhatsApp Telegram Messenger