• 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. Real-time operating system
  2. Batch operating system
  3. Distributed operating system
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کمپیوٹر کے مدر بورڈ پر سی ایم او ایس بیٹری کا کیا کام ہے؟
  1. To power the processor
  2. To maintain system time and BIOS/UEFI settings
  3. To increase internet speed
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

درج ذیل میں سے کون سی آپٹیکل اسٹوریج ڈیوائس کی مثال ہے؟
  1. SSD
  2. DVD Drive
  3. Hard drive
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

جی این یو آپریٹنگ سسٹم کا منصوبہ کس نے شروع کیا؟
  1. Bill Gates
  2. Steve Jobs
  3. Richard Stallman
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

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

All Rights Reserved © TestPointpk.com