• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
If the variable name is 'age' and the programmer wants to input age, which is the correct syntax?
  1. cin(age)
  2. cin<<age;
  3. cin>>age;
  4. None of these
Explanation

cin >> age; is the correct syntax in C++ to take input from the user and store it in the variable age.

The >> operator is used with cin to extract the input value into the variable.

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