cpa answersheet programming essentials in c chapter 1 assessment
programming essentials in c chapter 1 assessment
Written for
CPA Programming Essentials in C++ CISCO
All documents for this subject (13)
Seller
Follow
arviemontemayor
Content preview
Ito ung sinundan ko voi
-di ko parin alam ung sa literal kung pano yun.
CPA Chapter 1 Assessment Answers 100%
1. Which of the following strings is a proper integer
number (in the “C++” language sense)?
3.14
3E14
3,14
314
2. What is the value of the following literal?
010
8
10
The literal is invalid.
2
3. What is the value of the following literal?
X10
The literal is invalid.
10
16
2
4. What is the value of the following literal?
018
16
The literal is invalid.
10
2
5. What is the value of the following literal?
0x1A
The literal is invalid.
16
6
26
6. Which of the following strings represents a valid variable
name?
first_literal_is_invalid
first literal is invalid
, #1_literal_is_invalid
1_literal_is_invalid
7. Which of the following strings does not represent a valid
variable name?
Auto
AUTO
auto
aUTO
8. Which of the following strings is a proper floating-point
number (in the “C++” language sense)?
3_14
3,14
3.14
E14
9. What is the value of the following literal?
0E1
The literal is invalid.
0.01
0
0.1
10. What is the value of the following literal?
-1e-1
-0.1
-10.0
-1.0
The literal is invalid.
11. What is the value of the i variable?
float x = 1..0;
int i = x;
1
0
a quarter
0.25
12. What is the value of the x variable?
float x = 1. / 2. + 2. / 4.;
1.0
0.75
0.5
0.25
13. What is the value of the k variable?
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller arviemontemayor. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $4.99. You're not tied to anything after your purchase.