Home
Subjects
Textbook solutions
Create
Study sets, textbooks, questions
Log in
Sign up
Upgrade to remove ads
Only $35.99/year
C++ Programming Ch 2
STUDY
Flashcards
Learn
Write
Spell
Test
PLAY
Match
Gravity
Terms in this set (25)
An identifier must start with a letter and can be any sequence of characters.
...
In C++, there is no difference between a reserved word and a predefined identifier.
...
A C++ identifier cannot start with a digit.
...
The collating sequence of a character is its preset number in the character data set.
...
Only one of the operands of the modulus operator needs to be of type int.
...
If a = 4; and b = 3;, then after the statement a = b; the value of be is erased.
...
If the input is 7 and x is a variable of type int, then the statement
cin >> x; assigns the value 7 to x.
False
In and output statement, the newline character may be a part of the string.
True
In C==, all variable must be initialized when they are declared
True
In a mixed expression, all the operands are converted to floating-point numbers.
False
Supposed x = 5. After the statement y = x++; executes, y is 5 and x is 6.
...
Suppose a = 5. after the statement ++a; executes, the value of a is still 5 because the value of the expression is not saved in another variable.
...
Which of the following are valid C++ identifiers?
a) firstC++Prog
b) travel_Time
c) 3feetInAYard
d) _number
e) CPP_Assignment
f) InchesInOneCentimeter
g) Monthly Pay
h) Jack'sHomework
i) first#
j) bonusAmount$
...
Which of the following is not a reserved word in C++?
a) int
b) include
c) double
d) const
e) cin
f) bool
...
What is the difference between a reserved word and a user-defined identifier?
...
Sets with similar terms
Computer science chapter 9@ and 9b homework
17 terms
Evaluating Algebraic Expressions - Algebra 1B
40 terms
7th Grade~Algebraic Expressions ( bell ringer/Apri…
19 terms
Evaluating Algebraic Expressions
40 terms
Sets found in the same folder
2.7: The char Data Type
8 terms
7.5: Processing Array Contents
4 terms
Chapter 5 MPL
11 terms
7.6: Focus on Software Engineering: Using Parallel…
7 terms
Other sets by this creator
C++ Programming Chapter 1
30 terms
Chemistry Ch 2
9 terms
Chemistry Ch 1 Review
84 terms
Chemistry Chapter 8
75 terms
Verified questions
ALGEBRA
Ten people from a local youth group went to Black Hills Whitewater Rafting Tour Company for a one-day rafting trip. The group paid $425. Write an equation in slope-intercept form to find the total cost C for p people.
ALGEBRA2
Rick claims that the equation $$ x^2 + 5x + 9 = 0 $$ has no solution. Jenny claims that there are two solutions. Explain how Rick could be correct, and explain how Jenny could be correct.
PRECALCULUS
The head circumference C of a child is related to the height H of the child (both in inches) through the function H(C) = 2.15C - 10.53. Verify that C=C(H) is the inverse of H=H(C) by showing that H(C(H))=H and C(H(C))=C.
BUSINESS MATH
Write the expense function for the electronic widget in terms of q where q is the quantity that will be produced.
Other Quizlet sets
RADT 201 Final Review
51 terms
Leçon 2 : Impôt sur le revenu
21 terms
rules of the road
44 terms
Consumer Math 2.01 Unit 2 Quiz 1
20 terms
Related questions
QUESTION
What are the two steps you should take when solving equations and inequalities ?
QUESTION
Calculate the average (as a double) of the values contained in the integer variables num1, num2, num3 and assign that average to the double variable avg.
QUESTION
What does the "m" in y=mx+b stand for?
QUESTION
how to find a slope on a graph