• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
How does C++ handle lexicographical string comparison?
  1. By length only
  2. By character ASCII values in order
  3. Randomly
  4. By reversing strings
Explanation
  • In C++, strings are compared lexicographically using the <, >, == operators.
  • Comparison proceeds character by character from left to right.
  • Each character is evaluated using its ASCII (or Unicode) value.
  • Related MCQs

    کمپیوٹر پراسیس ینالاگ اور ڈیجیٹل سگنل دونوں ______ ہے؟
    1. Hybrid
    2. Analogue
    3. Digital
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    کمپیوٹر کو دی گئی ہدایات کس زبان میں دی جاتی ہیں؟
    1. Assembly Language
    2. High-Level Language
    3. Machine Language
    4. Scripting Language
    اس سوال کو وضاحت کے ساتھ پڑھیں

    کمپیوٹر کی پہلی زبان کون سی تھی؟
    1. Pascal
    2. BASIC
    3. Cobol
    4. Fortron
    اس سوال کو وضاحت کے ساتھ پڑھیں

    درج ذیل میں سے آپریٹنگ سسٹم کی مثال کون سی ہے؟
    1. Photoshop
    2. MS Windows
    3. MS Word
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    مندرجہ ذیل میں سے کون سا کلائنٹ آپریٹنگ سسٹم ہے؟
    1. Windows Server 2016
    2. Windows Server 2012
    3. Windows 10
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    All Rights Reserved © TestPointpk.com