Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago