नमस्ते · Hello

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

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

One who has faith gains knowledge. (Gita 4.39)

…

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

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

Computer Officer – 7th Level · Computer & IT Posts

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

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

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

  1. In C++, class A has a default constructor and a copy constructor that prints "C". Given void f(A a) {}, what is printed by A a; f(a); f(a); ?

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

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

  2. What is printed by the C++ code: try { throw 5; } catch (double d) { cout << "D"; } catch (int i) { cout << "I" << i; } ?

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

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

  3. What is printed by the C++ code: map<int, int> m; m[3] = 1; m[1] = 2; m[2] = 3; for (auto &p : m) cout << p.second; ?

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

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

  4. What is printed by the C++ code: string s = "Kathmandu"; cout << s.length() - s.find("man"); ?

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

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

  5. What is printed by the C++ code: vector<int> v{3, 1, 4, 1, 5}; cout << count(v.begin(), v.end(), 1) << *max_element(v.begin(), v.end()); ?

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

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

  6. In C++, given template <typename T> T sum(T a, T b) { return a + b; }, what is printed by cout << sum(2, 3) << sum(2.5, 1.5); ?

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

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

  7. In C++, given struct C { int v; C& operator++() { v += 2; return *this; } };, what is printed by C c{1}; ++c; ++c; cout << c.v; ?

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

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

  8. In C++, given void f(int x, int &y) { x++; y++; } and int a = 1, b = 1;, what is printed by f(a, b); cout << a << b; ?

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

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

  9. In C++, class Base's destructor prints "1", class M's destructor prints "3", and class Derived : public Base has a data member of type M and a destructor that prints "2". What is printed when a Derived object goes out of scope?

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

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

  10. In C++, class A prints "A" in its constructor, and class B has a data member of type A and prints "B" in its own constructor. What is printed by the declaration B b; ?

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

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

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