Algorithm | MCQs

    Q1: A well-defined list of steps for solving a particular problem written in a natural language is called ______?

    قدرتی زبان میں لکھے گئے کسی خاص مسئلے کو حل کرنے کے لئے اقدامات کی ایک اچھی طرح سے بیان کردہ فہرست کو ______ کہا جاتا ہے؟
    • A. None of these
    • B. Flow Chart
    • C. Program
    • D. Algorithm

    Q2: When an algorithm breaks a problem into sub-problems, solves a single sub-problem and merges the solutions _____?

    جب کوئی الگورتھم کسی مسئلے کو ذیلی پریشانیوں میں توڑ دیتا ہے تو ، ایک واحد ذیلی مسئلہ حل کرتا ہے اور حل _____ کو ضم کرتا ہے؟
    • A. Recursive Algorithm
    • B. None of these
    • C. Divide and Conquer Algorithm
    • D. Searching Algorithm

    Q3: If you go through all possible solutions, the required algorithm is _____?

    اگر آپ ہر ممکن حل سے گزرتے ہیں تو ، مطلوبہ الگورتھم _____ ہے؟
    • A. Sorting Algorithm
    • B. Searching Algorithm
    • C. None of these
    • D. Brute Force Algorithm

    Q4: Every algorithm has a _____?

    ہر الگورتھم میں _____ ہوتا ہے؟
    • A. None of these
    • B. Loop Condition
    • C. Start, Stop
    • D. Sequence, Conditions

    Q5: What is the purpose of using a flowchart in analyzing an algorithm?

    الگورتھم کا تجزیہ کرنے میں فلو چارٹ استعمال کرنے کا مقصد کیا ہے؟
    • A. To compile the program
    • B. To create a user interface
    • C. To identify logical errors and weakness
    • D. None of these

    Q6: Algorithm and Flowchart help us to ______?

    الگورتھم اور فلو چارٹ ______ میں ہماری مدد کرتے ہیں؟
    • A. Know the memory capacity
    • B. Identify the base of a number system
    • C. Specify the problem completely and clearly
    • D. None of these

    Q7: The time factor when determining the efficiency of the algorithm is measured by:

    الگورتھم کی کارکردگی کا تعین کرتے وقت وقت کا عنصرکس سے ماپا جاتا ہے
    • A. Counting the kilobytes of algorithm
    • B. Counting Microseconds
    • C. Counting the number of statements
    • D. Counting the number of key operations

    Q8: In flow chart, __________ represents input or output:

    فلو چارٹ میں، کون ان پٹ یا آؤٹ پٹ کی نمائندگی کرتا ہے
    • A. Parallelogram
    • B. All of these
    • C. Oval
    • D. Line

    Q9: What is the worst case time complexity of a quick sort algorithm?

    فوری ترتیب والے الگورتھم کی بدترین صورتحال کا وقت کی پیچیدگی کیا ہے؟
    • A. None of these
    • B. O(log N)
    • C. O(N2)
    • D. O(N log N)

    Q10: Flowchart is a _________ representation of algorithm_?

    فلو چارٹ الگورتھم کی کون نمائندگی ہے؟
    • A. Diagrammatic
    • B. Symbolic
    • C. Both A & B
    • D. Linked
✅ Correct: 0 | ❌ Wrong: 0 | 📊 Total Attempted: 0