বিপিএসসি নন-ক্যাডার সিএসই (বিষয়ভিত্তিক) MCQ প্রশ্ন সমাধান ২০২৫ — প্রশ্ন ও সমাধান
- পরীক্ষা:
- হালনাগাদ:
- ১ বার দেখা হয়েছে
- ৯৫
- ৯৫
- ৯৫ মি.
- ১ নম্বর
- নেই
প্রশ্ন ও সমাধান · ১–২০ / ৯৫
বিষয়: কম্পিউটার ও তথ্যপ্রযুক্তি
প্রশ্ন ১: Which of the following do not return any value?
- ক) Constructor functionসঠিক উত্তর
- খ) Friend function
- গ) Inline Function
- ঘ) Member Function
ব্যাখ্যা: A constructor in C++ is a special function that initializes objects. It does not return
any value, not even void.
(যখন একটি ক্লাসের অবজেক্ট ক্রিয়েট হয়, তখন কন্সট্রাক্টর অটো কল হয়)
#include <iostream>
using namespace std;
class A {
public:
// Constructor of the class without
// any parameters
A() {
cout << "Constructor called" << endl;
}
};
int main() {
A obj1;
return 0;
}
Friend function: a friend function can be granted special access to private and protected members
of a class in C++. They are not the member functions of the class but can access and manipulate
the private and protected members of that class for they are declared as friends.
A friend function can be:
✓ A global function
✓ A member function of another class
Inline Function: The whole code of the inline function is inserted or substituted at the point of its
call during the compilation instead of using the normal function call mechanism.
#include <iostream>
using namespace std;
// Inline function
inline int square(int x) {
return x * x;
}
int main() {
int num = 5;
// Calling inline function
int res = square(num);
cout << res;
return 0;
}
Member Function: a function that is declared in a class scope.
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ২: A function having more than one distinct meaning is called .................... function.
- ক) Parameter
- খ) Prototype
- গ) Overloadedসঠিক উত্তর
- ঘ) Polymorphism
ব্যাখ্যা: A function is said to be overloaded when it has multiple definitions with the same
name but different parameters. This is known as function overloading in C++.
Compile time polymorphism in which a function can perform different jobs based on the different
parameters passed to it. It is a feature of object-oriented programming that increases the readability
of the program.
int add (int a, int b) {
return a + b;
}
int add (int a, int b, int c) {
return a + b + c;
}
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ৩: Which of the following modifiers cannot be applied to a method in C++?
- ক) Protected
- খ) Private
- গ) Public
- ঘ) Abstractসঠিক উত্তর
ব্যাখ্যা: In C++, abstract is not a modifier. Instead, an abstract class is defined by including
at least one pure virtual function. The keywords private, protected, and public are valid method
access modifiers.
Public:
Members declared as public are accessible from anywhere in the program, both inside and
outside the class.
This is typically used for interfaces and functions that need to be exposed to external code.
Private:
Members declared as private are only accessible from within the same class.
They cannot be accessed directly from outside the class or by derived classes.
This promotes data hiding and encapsulation, ensuring that internal implementation details are
not directly manipulated by external code.
By default, class members are private if no access modifier is specified.
Protected:
Members declared as protected are accessible within the same class and by derived classes
(classes that inherit from the current class).
They are not accessible directly from outside the class by non-derived classes.
This allows for controlled access in inheritance hierarchies, where derived classes need to access
base class members for specific functionalities.
বিষয়: কম্পিউটার ও তথ্যপ্রযুক্তি
প্রশ্ন ৪: Assuming an int is of 4 bytes, What is the size of “int array[15]”?
- ক) 15
- খ) 19
- গ) 11
- ঘ) 60সঠিক উত্তর
ব্যাখ্যা: Each int takes 4 bytes. So, int array [15] will take 15 × 4 = 60 bytes.
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ৫: In C++, The library function exit () causes an exit from—
- ক) a block of statement
- খ) a loop in which it occurs
- গ) a function in which it occurs
- ঘ) a program in which it occursসঠিক উত্তর
ব্যাখ্যা: The exit () function terminates the entire program immediately, regardless of
where it is called.
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ৬: When you pass an array as an argument to a function, what actually gets passed?
- ক) All the elements of the array
- খ) The first element of the array
- গ) Address of the first element of the arrayসঠিক উত্তর
- ঘ) Address of the last element of the array
ব্যাখ্যা: #include <stdio.h>
// Array passed as an array without the size of its
// dimension
void printArr(int arr[], int n) {
for (int i = 0; i < n; i++)
printf("%d ", arr[i]);
}
int main() {
int arr[] = {1, 2, 3, 4, 5};
// Pass array to function
printArr(arr, 5);
return 0;
}
Explanation: In C/C++, when you pass an array to a function, it decays into a pointer, meaning
the address of the first element is passed to the function. This allows the function to access and
modify the original array elements directly using pointer arithmetic.
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ৭: A constructor is a special type of-
- ক) Class
- খ) Field
- গ) Methodসঠিক উত্তর
- ঘ) Property
ব্যাখ্যা: A constructor is a special kind of method in object-oriented languages like C++,
Java, and C#. It has the same name as the class and is used to initialize objects. Constructors are
automatically called when an object is created and do not have a return type.
বিষয়: গণিত
প্রশ্ন ৮: What is the following declaration for? int (*a)[10];
- ক) Pointer to an array of 10 integersসঠিক উত্তর
- খ) Array of 0 function pointers returning integer
- গ) A pointer to function returning an array of 10 integers
- ঘ) Array of 10 integers pointers
ব্যাখ্যা: The parentheses around *a mean that a is a pointer, not an array. The expression
int (*a)[10] tells the compiler that a is a pointer to an array of 10 integers. Without parentheses, it
would be int *a[10], which is an array of 10 pointers to integers.
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ৯: What is default inheritance in C++?
- ক) Public
- খ) Privateসঠিক উত্তর
- গ) Protected
- ঘ) Compile time error
ব্যাখ্যা: In C++, when you inherit a base class without specifying an access modifier, the
inheritance is private by default. This means that public and protected members of the base class
become private in the derived class unless explicitly declared otherwise.
class Base {
public:
int x = 5;
};
class Derived : Base { // equivalent to `: private Base`
public:
void show() {
// x is private here due to private inheritance
// std::cout << x; // ❌ Error
}
};
class → private inheritance by default
struct → public inheritance by default
You can override the default by explicitly specifying public, protected, or private.
বিষয়: কম্পিউটার ও তথ্যপ্রযুক্তি
প্রশ্ন ১০: C programming invalid variable name?
- ক) Average
- খ) No#of-studentsসঠিক উত্তর
- গ) Xzy
- ঘ) y23z
ব্যাখ্যা: In C, variable names cannot contain special characters like # or -. So, No#of-
students is invalid. Valid variable names can include letters, digits, and underscores, but must not
start with a digit or include symbols.
বিষয়: কম্পিউটার ও তথ্যপ্রযুক্তি
প্রশ্ন ১১: In C programming, which keyword is used to come out from a loop structure?
- ক) breakসঠিক উত্তর
- খ) if
- গ) switch
- ঘ) continues
ব্যাখ্যা: The break statement is used to exit a loop (for, while, do-while) or a switch block
immediately, bypassing any remaining iterations or cases. It is crucial for terminating loops
based on conditions checked within the loop body.
#include <stdio.h>
int main() {
for (int i = 1; i <= 5; i++) {
if (i == 3) {
continue; // Skips the rest of the code for i = 3
}
printf("%d\n", i);
}
return 0;
}
Output:
1
2
4
5
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ১২: What is the output? #include <stdio.h> int main() { printf("%c", 100); return 0; }
- ক) 100
- খ) one hundred
- গ) dসঠিক উত্তর
- ঘ) 0
ব্যাখ্যা: The ASCII code for 100 corresponds to the character 'd'. Using %c in printf()
prints the character associated with that ASCII value, not the number itself.
বিষয়: কম্পিউটার ও তথ্যপ্রযুক্তি
প্রশ্ন ১৩: A computer program that converts an entire program into machine language is called a/an;
- ক) Interpreter
- খ) Converter
- গ) Simulator
- ঘ) Compilerসঠিক উত্তর
ব্যাখ্যা: A compiler translates an entire source program into machine code before
execution.
বিষয়: কম্পিউটার ও তথ্যপ্রযুক্তি
প্রশ্ন ১৪: The logic gate that will have a low output when any one of its inputs is High is...
- ক) NAND gate
- খ) AND gate
- গ) NOR gateসঠিক উত্তর
- ঘ) OR gate
ব্যাখ্যা: NOR gate outputs low when any input is high.
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ১৫: Which of the following numbers is the next sequence number of 77(8) in Octal?
- ক) 88
- খ) 80
- গ) 100সঠিক উত্তর
- ঘ) 99
ব্যাখ্যা: Octal 77 + 1 = 100 in octal. (Octal 77 = Decimal 63. 63+1 = 64 = Octal 100)
77₈ = 7×8^1 + 7×8^0
= 7×8 + 7×1
= 56 + 7 = 63₁₀
63 + 1 = 64₁₀
64 ÷ 8 = 8 remainder 0
8 ÷ 8 = 1 remainder 0
1 ÷ 8 = 0 remainder 1
So, 64₁₀ = 100₈
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ১৬: 10101111 OR 00110011 = ?
- ক) 10111111সঠিক উত্তর
- খ) 00100011
- গ) 01010101
- ঘ) 111111111
ব্যাখ্যা: Bitwise OR:
10101111 | 00110011 = 10111111
বিষয়: সাধারণ বিজ্ঞান
প্রশ্ন ১৭: Which circuit can store 1 bit of data?
- ক) Register
- খ) Encoder
- গ) Decoder
- ঘ) Flip-flopসঠিক উত্তর
ব্যাখ্যা: A flip-flop is a digital memory element used to store a single bit (0 or 1). It is the
fundamental building block of memory systems, used in registers and RAM.
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ১৮: 10000000 এর 2's Complement মান কত (8-bit)?
- ক) 0
- খ) 128
- গ) -128সঠিক উত্তর
- ঘ) 256
ব্যাখ্যা: 10000000 → MSB is 1 → So it’s a negative number. In 8-bit 2's complement
representation:
Step-by-step:
Start with 10000000
Invert all bits: 01111111
Add 1: 01111111 + 1 = 10000000
So, the positive equivalent is 128
Therefore, the original number is: -128
10000000 = -128
The range for 8-bit signed numbers is –128 to 127.
বিষয়: সাধারণ জ্ঞান
প্রশ্ন ১৯: DNS port number is:
- ক) 63
- খ) 21
- গ) 53সঠিক উত্তর
- ঘ) 24
ব্যাখ্যা: Port 53 is used for DNS (Domain Name System) services.
Must remember HTTP, FTP, SMTP, telnet etc
বিষয়: কম্পিউটার ও তথ্যপ্রযুক্তি
প্রশ্ন ২০: Who is controlling "Domain" in the world?
- ক) CCNA
- খ) WWW3
- গ) ICANNসঠিক উত্তর
- ঘ) ISDN
ব্যাখ্যা: ICANN (Internet Corporation for Assigned Names and Numbers) manages the
domain name system.
এই প্রশ্নপত্রে সময় ধরে পরীক্ষা দিন
৯৫ প্রশ্ন · ৯৫ মিনিট · সাথে সাথে ফলাফল
সচরাচর জিজ্ঞাসা
এই পরীক্ষায় পাস নম্বর কত ছিল?
[প্রতিষ্ঠান প্রকাশ করলে এখানে যোগ হবে — Exam.passMark]
প্রতিটি ভুল উত্তরে কত নম্বর কাটা যায়?
এই পরীক্ষায় ভুল উত্তরের জন্য নম্বর কাটা হয় না।
প্রশ্নপত্রের PDF কোথায় পাব?
এই প্রশ্নপত্রের PDF এখনও যোগ হয়নি; সব প্রশ্ন ও সমাধান এই পাতাতেই পড়তে পারবেন।
