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

ورلڈ وائیڈ ویب کو رابرٹ کیلِیو کے ساتھ کس نے ایجاد کیا؟
  1. Tom Burne
  2. Tim Burner Lee
  3. Fred Zuckerberg
  4. Both a and b
اس سوال کو وضاحت کے ساتھ پڑھیں

مصنوعی ذہانت کا بانی کسے کہا جاتا ہے؟
  1. Mark Zuckerberg
  2. Alan Turing
  3. John McCarthy
  4. Bill Gates
اس سوال کو وضاحت کے ساتھ پڑھیں

کمپیوٹر گرافکس کا بانی کسے کہا جاتا ہے؟
  1. Charles Babbage
  2. Alan Turing
  3. Ivan Sutherland
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

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

All Rights Reserved © TestPointpk.com