Programming- Programming MCQs
Showing 30 questions (Total: 30)
Back up প্রোগ্রাম বলতে কী বোঝানো হয়?
Correct Answer:
ক: নির্ধারিত ফাইল কপি করা
Explanation:
Back up প্রোগ্রাম বলতে কী বোঝানো হয়? সঠিক উত্তর নির্ধারিত ফাইল কপি করা ব্যাকআপ প্রোগ্রাম বা সফটওয়্যারের মাধ্যমে কম্পিউটারের কোনো ফাইল, ফোল্ডার বা কোনো প্রোগ্রাম কপি করে সংরক্ষণ করা হয়।
কম্পিউটার সমস্যা সমাধানের উদ্দেশ্যে সম্পাদনের অনুক্রমে সাজানো নির্দেশিকাকে কি বলা হয়?
Correct Answer:
খ: প্রোগ্রাম
Explanation:
কম্পিউটার সমস্যা সমাধানের উদ্দেশ্যে সম্পাদনের অনুক্রমে সাজানো নির্দেশিকাকে কি বলা হয়? সঠিক উত্তর প্রোগ্রাম কম্পিউটারের সমস্যা সমাধানের উদ্দেশ্য সম্পাদনের অনুক্রমে সাজানো নির্দেশিকাকে ‘প্রোগ্রাম’ বলা হয়। কম্পিউটারের হার্ডওয়্যার দিয়ে কোনো কাজ করানোর জন্য ব্যবহৃত প্রোগ্রামগুলো হলো সফটওয়্যার। কম্পিউটারের যে কোনো যন্ত্র বা যন্ত্রাংশকেই হার্ডওয়্যার বলে।
কম্পিউটারের ভাষা কি বলা হয়?
Correct Answer:
ঘ: যান্ত্রিক ভাষা
Explanation:
কম্পিউটারের ভাষা কি বলা হয়? সঠিক উত্তর যান্ত্রিক ভাষা কম্পিউটারের ভাষা বাইনারি, অর্থাৎ ০ (শূন্য) এবং ১ (এক)। যাকে ম্যাশিন ল্যাংগুয়েজ বলা হয়। কম্পিউটার ০ এবং ১ ছাড়া কোন কিছু বোঝে না। আমরা যখন প্রোগাম রচনা করি বা যে কাজই করি, তা কম্পাইলার নামক একটি অনুবাদক প্রোগাম বাইনারিতে রুপান্তর করে কম্পিউটারকে জানায়। আবার কম্পিউটার যখন আমাদেরকে কোন কিছু জানায়, তখনও এই কম্পাইলার বাইনারি থেকে আমাদের ভাষায় রুপান্তর করে দেয়।
প্রোগ্রাম কি ?
Correct Answer:
ঘ: গণনা কাজের সকল নির্দেশনামা
Explanation:
প্রোগ্রাম কি ? সঠিক উত্তর গণনা কাজের সকল নির্দেশনামা কম্পিউটার প্রোগ্রাম (বা সফটওয়্যার প্রোগ্রাম বা শুধু প্রোগ্রাম) হচ্ছে কম্পিউটারের জন্য তৈরীকৃত নির্দেশমালা। কম্পিউটার এই নির্দেশগুলোই নির্বাহ বা সম্পাদনা করে। কম্পিউটার প্রোগ্রামারগণ প্রোগ্রাম লিখে থাকেন। প্রোগ্রাম লেখা হয় প্রোগ্রামিং ভাষায়। কার্যকরণের ভিত্তিতে কম্পিউটার প্রোগ্রামকে দুই ভাগে ভাগ করা হয়। ১. আপ্লিকেশন সফটওয়ার( application software)২. সিস্টেম সফটওয়ার(system software)
The machine readable form of a program is called as ?
Correct Answer:
B: Object code
Explanation:
The machine readable form of a program is called as ? Correct Answer Object code প্রশ্নঃ The machine readable form of a program is called as ? বর্ণনাঃ Source Code: উৎস প্রোগ্রাম, যা একজন প্রোগ্রামার দ্বারা লিখিত একটি কোড। সাধারণত একটি উচ্চ স্তরের ভাষা ব্যবহার করে, যা মানুষের দ্বারা সহজেই পাঠযোগ্য। Object Code: অবজেক্ট প্রোগ্রাম সাধারণত একটি মেশিন এক্সিকিউটেবল ফাইল, যা একটি কম্পাইলার ব্যবহার করে উৎস ফাইল কম্পাইল করার ফলাফল। যেহেতু তারা মেশিন কোডে নির্দেশাবলী রাখে, তাই তারা মানুষের দ্বারা সহজেই পঠনযোগ্য নয়। Executable File: এটি হল Object Code কে linking নামক প্রক্রিয়ার ভিতর দিয়ে চালনা করার ফলাফল। এটি এমন মেশিন কোড, যা সরাসরি মেশিন (সিপিইউ )দ্বারা চালিত হতে পারে। Source Code > Object Code > Executable File > Machine(CPU) অর্থাৎ Object Code ও Executable File উভয়ই machine ল্যাংগুয়েজে লেখা তবে এদের ভিতর Executable File সরাসরি মেশিন (সিপিইউ )দ্বারা চালিত হতে পারে। Object Code লিংকিং নামক প্রসেসের দ্বারা Executable File এ পরিণত হয়।
In a flowchart, a diamond generally stands for
Correct Answer:
B: Decision
Explanation:
In a flowchart, a diamond generally stands for Correct Answer Decision ফ্লোচার্ট হচ্ছে অ্যালগরিদম বা সিদ্ধান্তক্রমের ধাপসমূহ চিত্ররূপ। প্রোগ্রামের ধাপগুলো কোন পথে এবং কীভাবে প্রবাহিত হচ্ছে তা চিত্র আকারে উপস্থাপন করাই ফ্লোচার্টের মূল উদ্দেশ্য। অর্থাৎ ফ্লোচার্টের প্রতিটি ডায়মন্ড এক একটি সিদ্ধান্ত decision.
কোনো প্রোগ্রামের ভুল বের করাকে কি বলে?
Correct Answer:
ঘ: ডিবাগিং
Explanation:
কোনো প্রোগ্রামের ভুল বের করাকে কি বলে? সঠিক উত্তর ডিবাগিং প্রোগ্রামের ভুল ত্রুটি খুঁজে বের করে তা দূর করা হলো ডিবাগিং। এর আক্ষরিক অর্থ পোকা বাছা।
সমস্যা সমাধানের জন্য বিশেষ অনুক্রমে সাজানো কম্পিউটার নির্দেশকে কি বলা হয়?
Correct Answer:
খ: প্রোগ্রাম
Explanation:
সমস্যা সমাধানের জন্য বিশেষ অনুক্রমে সাজানো কম্পিউটার নির্দেশকে কি বলা হয়? সঠিক উত্তর প্রোগ্রাম কম্পিউটার বা মেশিনের মাধ্যমে কোন সমস্যা সমাধানের জন্য যে প্রয়োজনীয় নিদের্শ দেয়া হয়, সেই নিদের্শমালার সমষ্টিকেই বলা হয় প্রোগ্রাম।
which of the following is the destructor for the class Vehicle?
Correct Answer:
B: -Vehicle ()
Explanation:
which of the following is the destructor for the class Vehicle? Correct Answer -Vehicle () The destructor for the class Vehicle is - Vehicle () .
what is the time complexity of Huffman Coding?
Correct Answer:
B: O (NLogN)
Explanation:
what is the time complexity of Huffman Coding? Correct Answer O (NLogN) The time complexity of the Huffman algorithm is O(nlogn). Using a heap to store the weight of each tree, each iteration requires O(logn) time to determine the cheapest weight and insert the new weight. There are O(n) iterations, one for each item.
which of the following operator functions cannot be global , ie. must be a number function.
Correct Answer:
A: Converstion Operator
Explanation:
which of the following operator functions cannot be global , ie. must be a number function. Correct Answer Converstion Operator New and delete can be global.
which of these is not a core data type?
Correct Answer:
C: Class
Explanation:
which of these is not a core data type? Correct Answer Class Class is a user - defined data type.
what is the value of 'd' after this line of code has been executed ? double d = Math round ( 2.5 + math random () );
Correct Answer:
C: 3
Explanation:
what is the value of 'd' after this line of code has been executed ? double d = Math round ( 2.5 + math random () ); Correct Answer 3 The Math.random() method returns a number greater than or equal to 0 and less than 1 . Since we can then be sure that the sum of that number and 2.5 will be greater than or equal to 2.5 and less than 3.5, we can be sure that Math.round() will round that number to 3. So Option B is the answer.
what is the value of variable x after the following statement is executed in JavaScript? Var x2-'3'+'4';
Correct Answer:
C: Undefined
Explanation:
what is the value of variable x after the following statement is executed in JavaScript? Var x2-'3'+'4'; Correct Answer Undefined undefined is a property of the global object. That is, it is a variable in global scope. The initial value of undefined is the primitive value undefined. In modern browsers (JavaScript 1.8.5 / Firefox 4 + ), undefined is a non - configurable, non - writable property, per the ECMAScript 5 specification. (Even when this is not the case, avoid overriding it.) A variable that has not been assigned a value is of type undefined. A method or statement also returns undefined if the variable that is being evaluated does not have an assigned value. A function returns undefined if a value was not returned.
which of the following will produce an answer that is closest in value to a double , d. while not being greater than d?
Correct Answer:
D: (int)Math.Floor(d);
Explanation:
which of the following will produce an answer that is closest in value to a double , d. while not being greater than d? Correct Answer (int)Math.Floor(d); Description The method floor gives the largest integer that is less than or equal to the argument. Syntax This method has the following variants − double floor(double d) double floor(float f) Parameters Here is the detail of parameters − A double or float primitive data type. Return Value This method returns the largest integer that is less than or equal to the argument. Returned as a double. Example Live Demo public class Test { public static void main(String args) { double d = - 100.675; float f = - 90; System.out.println(Math.floor(d)); System.out.println(Math.floor(f)); System.out.println(Math.ceil(d)); System.out.println(Math.ceil(f)); } } This will produce the following result − Output - 101.0 - 90.0 - 100.0 - 90.0
why do we need to handle exceptions?
Correct Answer:
C: To avoid syntax errors
Explanation:
why do we need to handle exceptions? Correct Answer To avoid syntax errors The exceptions should be handled to prevent any abnormal termination of a program. The program should keep running even if it gets interrupted in between.
If same message is passed to objects of several different classes and all of those can respond in a different way, what is this feature called?
Correct Answer:
C: Polymorphism
Explanation:
If same message is passed to objects of several different classes and all of those can respond in a different way, what is this feature called? Correct Answer Polymorphism The feature defined in question defines polymorphism features. Here the different objects are capable of responding to the same message in different ways, hence polymorphism.
Source code is (n)
Correct Answer:
A: Program
Explanation:
Source code is (n) Correct Answer Program In computing, source code is any collection of code, with or without comments, written using a human - readable programming language, usually as plain text. The source code of a program is specially designed to facilitate the work of computer programmers, who specify the actions to be performed by a computer mostly by writing source code. The source code is often transformed by an assembler or compiler into binary machine code that can be executed by the computer. The machine code might then be stored for execution at a later time. Alternatively, source code may be interpreted and thus immediately executed.
Does constructor overloading include different return types for constructors to be overloaded ?
Correct Answer:
D: No, constructors doesn't have any return type
Explanation:
Does constructor overloading include different return types for constructors to be overloaded ? Correct Answer No, constructors doesn't have any return type The constructors doesn't have any return type. When we can't have return type of a constructor, overloading based on the return type is not possible.
what is the mounting of file system ?
Correct Answer:
C: attaching portion of the file system into a directory structure
Explanation:
what is the mounting of file system ? Correct Answer attaching portion of the file system into a directory structure Mounting is a process by which the operating system makes files and directories on a storage device (such as hard drive, CD - ROM, or network share) available for users to access via the computer's file system. In general, the process of mounting comprises the operating system acquiring access to the storage medium; recognizing, reading, and processing file system structure and metadata on it before registering them to the virtual file system (VFS) component.
Multi threaded programs are :
Correct Answer:
A: lesser prone to deadlocks
Explanation:
Multi threaded programs are : Correct Answer lesser prone to deadlocks A multi - threaded program will take advantage of additional threads — and cores — to distribute the load of the program more efficiently, as opposed to have one poor core do all the work while the others simply watch. The premise of concurrency is to run two or more different programs, kind of at the same time.
"Pushing an elemnt into stack already having five elements and stack size of 5, results in "
Correct Answer:
A: "Overflow "
The process of making object code from one system worked on another type of system is called.
Correct Answer:
A: Proteing
Which one of the following is a loop construct that will always be executed be execited once?
Correct Answer:
D: do while
Which type of following errors in generated when the program is being executed?
Correct Answer:
C: Run time error
Explanation:
Which type of following errors in generated when the program is being executed? Correct Answer Run time error Run time error হলো এমন একটি প্রোগ্রাম ত্রুটি যা প্রোগ্রাম চলাকালীন ঘটে থাকে। কম্পিউটারকে ভুল ডেটা জানালে বা ডেটার ফরমেট ঠিক না থাকলে Run time error ভুল বার্তা ছাপায়। কোনো অ্যাপ্লিকেশন বা প্রোগ্রাম যখন সফটওয়্যার বা হার্ডওয়্যার ত্রুটির কারণে তার পূর্ণ ক্ষমতায় কাজ করতে পারে না, তখন এই ত্রুটির মুখোমুখি হতে হয়।
নিচের কোনটি Invalid Variable mean?
Correct Answer:
খ: No# of- student
An n x a array v is defined as follows : v [i,j] = i.j for all i. j 1 < = i < = n ,i < j =n.
Correct Answer:
Correct Answer:
Explanation:
An n x a array v is defined as follows : v [i,j] = i.j for all i. j 1 < = i < = n ,i < j =n. Correct Answer প্রশ্নটি অত্যন্ত সময়সাপেক্ষ। তাই বহু নির্বাচনী (MCQ) পরীক্ষায় প্রশ্ন টি আসলে তা এড়িয়ে যাওয়াই উত্তম হবে। i এবং j এর শর্তানুসারে সম্ভাব্য সকল মান নিজের টেবিলে দেওয়া হলঃ Now, we take the sum of the first row and first column, which comes out to be zero. Similarly, we take the sum of second row and second column, third row and third column, and so on, and it is found that all have a sum equal to zero. So, the sum of all the elements in the matrix is zero. উত্তরঃ শুন্য
The operator that cannot be overloaded is
Correct Answer:
D: ::
Explanation:
The operator that cannot be overloaded is Correct Answer :: There are 4 operators that cannot be overloaded in C + + . They are :: (scope resolution), . (member selection), . * (member selection through pointer to function) and ?: (ternary operator).
DRY principle makes the code:
Correct Answer:
C: Bad Repetitive
Explanation:
DRY principle makes the code: Correct Answer Bad Repetitive DRY stand for "Don't Repeat Yourself," a basic principle of software development aimed at reducing repetition of information. The DRY principle is stated as, "Every piece of knowledge or logic must have a single, unambiguous representation within a system."
Which of the following creates a new type?
Correct Answer:
B: Append
Explanation:
Which of the following creates a new type? Correct Answer Append Concatenate - একসঙ্গে জোড়া দেওয়া Join - মিলিত করা Add - যোগ করা Append - যুক্ত করা/ নিম্নদেশে ঝুলিয়ে দেওয়া। সুতরাং নতুন করে পুরাতন কোন কিছুর ধারাবাহিকতায় যুক্ত করা হচ্ছে Append.