नमस्ते · Hello

विद्या ददाति विनयं विनयाद् याति पात्रताम्।

विद्याले विनम्रता दिन्छ, विनम्रताबाट योग्यता आउँछ।

Knowledge gives humility, and humility makes one worthy.

…

प्रोग्रामिङ – Programming MCQ

प्रोग्रामिङ – कम्प्युटर र IT

Programming · Computer & IT (Technical) · १,५६५ प्रश्न

१,५६५ प्रश्न उपलब्ध। मोड छान्नुहोस्:

प्रोग्रामिङ: प्रश्न र उत्तर

सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।

  1. Trace this C fragment and give its output: int x = 0xA; printf("%d", x ^ 6);

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  2. Trace this C fragment and give its output: int a = 2, b = 3; printf("%d", a * b % 4 + b / a);

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  3. Trace this C fragment and give its output: printf("%d", 3 + 4 % 3 * 2 - 1);

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  4. The Sieve of Eratosthenes is an algorithm for:

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  5. Inserting the keys 10, 20, 30, 40, 50 in that order into an empty (unbalanced) binary search tree produces:

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  6. The keys 30, 10, 40, 5, 20 are inserted in that order into an empty binary search tree. What is its level-order traversal?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  7. LSD radix sort sorts numbers digit by digit, starting from the least significant digit; for the result to be correct, the sort used on each digit must be:

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  8. If the Fibonacci function stores (memoises) each computed value, the time to compute fib(n) becomes:

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  9. Using Kadane's algorithm, what is the maximum sum of a contiguous subarray of [-2, 1, -3, 4, -1, 2, 1, -5, 4]?

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

  10. If the key being searched is equally likely to be any of the n elements, the average number of comparisons in a successful linear search is:

    💬 टिप्पणी / गल्ती रिपोर्ट (०)

    टिप्पणी जाँचपछि मात्र देखिन्छ।

यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।