• 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. Personal software
  2. System software
  3. Application software
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

دوسری نسل کے کمپیوٹر میں مندرجہ ذیل میں سے کون سی ٹیکنالوجیز استعمال ہوئی؟
  1. Vacum Tubes
  2. Transistors
  3. Integrated circuits
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کون سی میموری سب سے تیز ہوتی ہے اور عام طور پر سی پی یو کے اندر موجود ہوتی ہے؟
  1. Main Memory
  2. SRAM
  3. Cache Memory
  4. DRAM
اس سوال کو وضاحت کے ساتھ پڑھیں

مندرجہ ذیل میں سے کون سا نان وولیٹائل اسٹوریج ڈیوائس ہے جو بجلی بند ہونے کے بعد بھی ڈیٹا محفوظ رکھتا ہے؟
  1. ROM
  2. RAM
  3. CPU
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

مندرجہ ذیل میں سے کون سی غیر مستحکم میموری ہے؟
  1. RAM
  2. ROM
  3. Cache
  4. Both A and C
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com