नमस्ते · Hello

श्रद्धावान् लभते ज्ञानम्।

श्रद्धा भएकाले ज्ञान प्राप्त गर्छ। (गीता ४.३९)

One who has faith gains knowledge. (Gita 4.39)

…

कम्प्युटर / सूचना प्रविधि कम्प्युटर अधिकृत (सातौँ तह) – प्राविधिक पत्र

कम्प्युटर / सूचना प्रविधि – कम्प्युटर अधिकृत (सातौँ तह)

Computer Officer – 7th Level · Computer & IT Posts

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

प्राविधिक पत्र: प्रश्न र उत्तर

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

  1. In C++, struct B { virtual void f(int x = 1) { cout << "B" << x; } }; struct D : B { void f(int x = 2) override { cout << "D" << x; } }; What is printed by B *p = new D; p->f(); ?

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

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

  2. In C++, struct B1 { B1() { cout << "1"; } }; struct B2 { B2() { cout << "2"; } }; struct D : public B2, public B1 { D() { cout << "D"; } }; What is printed by creating an object D d; ?

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

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

  3. What does the following C++ code print? try { throw string("err"); } catch (const char *e) { cout << "C"; } catch (string &s) { cout << s.size(); }

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

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

  4. What does the following C++ code print? string s = "hello world"; cout << count(s.begin(), s.end(), 'o');

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

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

  5. What does the following C++ code print? priority_queue<int> pq; pq.push(3); pq.push(1); pq.push(4); cout << pq.top(); pq.pop(); cout << pq.top();

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

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

  6. What does the following C++ code print? vector<int> v{1, 2, 3, 4}; v.erase(v.begin() + 1); v.insert(v.begin(), 9); for (int x : v) cout << x;

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

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

  7. What does the following C++ code print? string s = "abc"; s[1] = 'X'; cout << s + s.substr(2);

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

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

  8. What does the following C code print? int a = 5, b = 2; printf("%d %d", a / b * b, a % b + a / b);

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

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

  9. What does the following C code print? int x = 5, y = 0; if (y != 0 && x / y > 1) printf("A"); else printf("B");

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

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

  10. What does the following C code print? int a[] = {5, 9, 3, 9, 7}, i, f = a[0], s = -1; for (i = 1; i < 5; i++) { if (a[i] > f) { s = f; f = a[i]; } else if (a[i] < f && a[i] > s) s = a[i]; } printf("%d", s);

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

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

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