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. Algorithm
    • C. Flow Chart
    • D. Program

    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. None of these
    • B. Brute Force Algorithm
    • C. Searching Algorithm
    • D. Sorting Algorithm

    Q4: Every algorithm has a _____?

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

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

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

    Q6: Algorithm and Flowchart help us to ______?

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

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

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

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

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

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

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

    Q10: Flowchart is a _________ representation of algorithm_?

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