नमस्ते · Hello

उद्यमेन हि सिध्यन्ति कार्याणि न मनोरथैः।

काम परिश्रमले पूरा हुन्छ, इच्छाले मात्र होइन।

Work is done by effort, not by wishing alone.

…

कम्प्युटर र सूचना प्रविधि (प्राविधिक)

कम्प्युटर र सूचना प्रविधि (प्राविधिक)

Computer & IT (Technical) · ५,०७६ प्रश्न

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

कम्प्युटर र IT: प्रश्न र उत्तर

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

  1. Binary search (mid = (low + high) / 2, integer division) looks for 7 in the sorted array [1, 3, 5, 7, 9, 11, 13]. How many comparisons with array elements are needed to find 7?

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

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

  2. Pseudocode: N = 6, F = 0; for K = 1 to N: if N mod K = 0 then F = F + K; print F. What is printed?

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

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

  3. Pseudocode: S = 0, I = 1; while I <= 5 do S = S + I * I; I = I + 2; end; print S. What is printed?

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

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

  4. The recurrence T(n) = 2T(n/2) + c, where c is a constant, has the solution:

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

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

  5. In Big-O notation, the running time f(n) = 3n^2 + 1000n + 50 log n is:

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

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

  6. The keys 10, 20, 5 and 30 are inserted one by one into an empty max-heap stored in an array. What is the array after the last insertion?

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

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

  7. Quicksort with the Lomuto partition scheme uses the last element as pivot. After partitioning [3, 8, 2, 5, 1, 4], at which index (0-based) does the pivot end up?

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

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

  8. What is printed by the C code: int n = 10, i, j, c = 0; for (i = 0; i < n; i++) for (j = 0; j < i; j++) c++; printf("%d", c); ?

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

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

  9. What is the time complexity of: for (i = 1; i < n; i *= 2) for (j = 0; j < i; j++) count++; ?

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

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

  10. Keys 12, 7, 22 and 3 are inserted into a hash table of size 5 using h(k) = k mod 5 with separate chaining. What is the length of the longest chain?

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

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

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