• 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. Trim
  2. Fillet
  3. Offset
  4. Extend
اس سوال کو وضاحت کے ساتھ پڑھیں

سڑک کی جیومیٹری کی ڈیزائننگ کے لیے عام طور پر کون سا سافٹ ویئر استعمال کیا جاتا ہے؟
  1. AutoCAD Civil 3D
  2. MS Excel
  3. MS Word
  4. Adobe Photoshop
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Format
  2. Modify
  3. Draw
  4. Tools
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Trim
  2. Offset
  3. Extrude
  4. Fillet
اس سوال کو وضاحت کے ساتھ پڑھیں

بڑی اسکرین پر ویڈیو تصاویر دکھانے کے لیے کون سا آؤٹ پٹ ڈیوائس استعمال ہوتا ہے؟
  1. Scanner
  2. Printer
  3. Projector
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com