All India Exams
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

Input Output Streams C++ Questions And Answers

Here you can find Input Output Streams C++ Questions and Answers.

Why Input Output Streams C++ Questions and Answers Required?

In this Input Output Streams C++ Questions and Answers section you can learn and practice Input Output Streams C++ Questions and Answers to improve your skills in order to face technical inerview conducted by Banks. By Practicing these interview questions, you can easily crack any Bank Exams interview.

Where can I get Input Output Streams C++ Questions and Answers?

AllIndiaExams provides you lots Input Output Streams C++ Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Input Output Streams Questions and Answers as PDF files and eBooks.

How to solve these Input Output Streams C++ Questions and Answers?

You no need to worry, we have given lots of Input Output Streams C++ Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Bank Exams interview.

Input Output Streams C++ Questions and Answers

1. Which operator is used for input stream?

Input Output Streams C++ Questions and Answers

2. Where does a cin stops it extraction of data?

Input Output Streams C++ Questions and Answers

3. What is the output of this program? #include < iostream > using namespace std; int main () { int i; cout << "Please enter an integer value: "; cin >> i + 4; return 0; }

Input Output Streams C++ Questions and Answers

4. What is the output of this program? #include < iostream > using namespace std; int main( ) { char line[100]; cin.getline( line, 100, 't' ); cout << line; return 0 }

Input Output Streams C++ Questions and Answers

5. How many parameters are there in getline function?

Input Output Streams C++ Questions and Answers

6. What can be used to input a string with blankspace?

Input Output Streams C++ Questions and Answers

7. When will the cin can start proceessing of input?

Input Output Streams C++ Questions and Answers

8. How many groups of output of operation are there in c++?

Input Output Streams C++ Questions and Answers

9. Pick out the correct objects about the instantiation of output stream.

Input Output Streams C++ Questions and Answers

10. What is meant by ofstream in c++?

Home EngineeringComputer Science & EngineeringC++ Multiple Choice Questions & AnswersInput Output Streams

Input Output Streams - C++ Questions and Answers

This is the c++ programming questions and answers section on "Input Output Streams" with explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand.

Input Output Streams C++ Questions

Online Test Name Input Output Streams
Exam Type Multiple Choice Questions
Category Computer Science Engineering Quiz
Number of Questions 12
1. Which operator is used for input stream?
  • A. >
  • B. >>
  • View Answer
  • Workspace
  • Report
  • Discuss
2. Where does a cin stops it extraction of data?
  • A. By seeing a blankspace
  • B. By seeing ()
  • C. Both a & b
  • D. None of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

cin will stop its extraction when it encounters a blank space.

Workspace

Report Error


3.

What is the output of this program?

#include < iostream >

using namespace std;

int main ()

{

int i;

cout << "Please enter an integer value: ";

cin >> i + 4;

return 0;

}

  • A. 73
  • B. your value + 4
  • C. Error
  • D. None of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

We are not allowed to do addition operation on cin.

Workspace

Report Error


4.

What is the output of this program?

#include < iostream >

using namespace std;

int main( )

{

char line[100];

cin.getline( line, 100, 't' );

cout << line;

return 0

}

  • A. 100
  • B. t
  • C. It will print what we give.
  • D. None of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

In this program, We are printing the input what we read from cin.

Workspace

Report Error


5. How many parameters are there in getline function?
  • A. 1
  • B. 2
  • C. 3
  • D. 4
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

There are three parameters in getline function. They are a pointer to an array of characters and maximum number of characters and a delim.

Workspace

Report Error


  • «
  • 1
  • 2
  • 3
  • »

Related Topics:

  • Operators and Statements
  • Constants
  • Namespaces
  • Classes
  • Arrays
  • Templates
  • Macros
  • Functions
  • Interfaces
  • Inheritance

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • IT Courses Quiz

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions

Programming Quiz

  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • Python Programming
  • DataScience MCQ
  • Hadoop MCQ
  • Mongo DB MCQ
  • MySQL MCQ

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics

Our Sites

AView.in

© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy