Question
a.
cin << "Hello";
b.
cin >> "Hello";
c.
cout << "Hello";
d.
cout >> "Hello";
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following statements will display the word "Hello" on the computer screen?
Similar Questions
Discover Related MCQs
Q. The preprocessor directive always starts with the symbol
View solution
Q. Which of the following statements is true ?
View solution
Q. Evaluate the following expression:
7 >=3 + 4 || 6<4 && 2<5
View solution
Q. Which of the following while clause will stop the loop when the value in the age variable is less than the number 0?
View solution
Q. The most efficient data type for a variable that stores the number 4.6e20 is the _____ data type
View solution
Q. Which of the following is a C++ object?
View solution
Q. Which of the following can be used to declare the main function?
View solution
Q. The highest level of cohesion is
View solution
Q. The two statements that can be used to change the flow of control are
View solution
Q. If p and q are assigned the values 2 and 3 respectively then the statement p = q++
View solution
Q. Which of the following is the insertion operator?
View solution
Q. If you want only one memory location to be reserved for a class variable, no matter how many objects are instantiated, you should declare the variable as
View solution
Q. Which of the following are valid characters constants?
View solution
Q. To create and execute a C++ program, you need to have access to
View solution
Q. Many programmers separate a class into two files: _____
View solution
Q. Files whose names end in .h are called _____ files
View solution
Q. Assume that a program contains a programmer-defined void function. When C++ encounters the function's closing brace (}), C++ returns to the statement _____
View solution
Q. A _____ is a single item of information about a person, place, or thing
View solution
Q. Which (if any) of the following is NOT a programmer-defined type
View solution
Q. A file pointer always contains the address of the file
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!