Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

C857 Test Questions and Answers(RATED A)

Document preview thumbnail
Preview 2 out of 8 pages

C857 Test Questions and Answers(variable -ANSWER named location in memory main function -ANSWER called when the program starts cout -ANSWER a filestream variable that represents the default output device #include iostream -ANSWER include directive needed to allow use of the various I/O operators such as cout and cin. preprocessor directive -ANSWER C program line beginning with # that provides an instruction to the preprocessor; instruction to the compiler to change the source code before compilation. how to enable printing of output (C++) -ANSWER #include iostream using namespace std; endl -ANSWER a stream manipulator that can be used to advance the cursor to the next line on the computer screen; starts new output line cin -ANSWER a filestream variable that represents the default input source block comment -ANSWER Multiline (usually) comment; enclosed between /* and */ over multiple lines in the source code. literal -ANSWER a specific value in code, like 2 include statement and namespace statement needed to use e.g. cout, cin, endl -ANSWER #include iostream using namespace std; approximate max value that int can handle -ANSWER ~2 billion (2,000,000,000) When the / operands are integers, the division operator / performs integer division, throwing away any ______ -ANSWER When the / operands are integers, the division operator / performs integer division, throwing away any remainder. Examples: 24 / 10 is 2. 50 / 50 is 1. 1 / 2 is 0. 2 divides into 1 zero times; remainder of 1 is thrown away. const -ANSWER Make a variable unmodifiable. When a variable represents a literal, the variable's value should not be changed in the code. If the programmer precedes the variable declaration with the keyword ____, then the compiler will report an error if a later statement tries to change that variable's value. include statement for standard math library -ANSWER #include cmath implicit conversion -ANSWER the automatic transformation of one data type to another For an arithmetic operator like + or *, if either operand is a double, the other is automatically converted to double, and then a floating-point operation is performed. For assignment =, the right side type is converted to the left side type. RATED A)


Document information

Uploaded on
January 26, 2024
Number of pages
8
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
nursingismylife
3.6
(38)
Sold
263
Followers
174
Items
9125
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.