Question: 7. Given the following code, which is the preprocessor? //preprocessor #include using namespace std; main() { cout < < Hi! < < endl; } A.

7. Given the following code, which is the preprocessor? //preprocessor #include using namespace std; main() { cout << "Hi!" << endl; } A. //preprocessor B. #include C. using namespace std; D. main() { } E. cout << "Hi!" << endl; 8. Given the following code, which statement is correct? string s1; cin >> s1; A. "s1" is a namespacce B. "s1" is the identifier of a variable C. "s1" is variable of "cin" type D. "cin" is an instance of "s1" type E. "cin" is a variable of string type 9. Given the following code, the output is __. int main() { /*this is a line this is the second line*/ //this is a sentence //this is the second sentence// cout << "this is a word"; }

A. this is a line B. this is the second line C. this is a sentence D. this is the second sentence E. this is a word 10. Which is a sample statement that can compile a C++ source file named "apple.cpp" in a Developer Command Prompt of a Microsoft Windows computer? A. cl.exe /cpp apple B. cl.exe apple C. cl.exe::apple.cpp D. cl.exe apple.cpp E. apple.cpp cl.exe

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!