Study sets, textbooks, questions
Upgrade to remove ads
C++ Programming Ch 2
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.
In and output statement, the newline character may be a part of the string.
In C==, all variable must be initialized when they are declared
In a mixed expression, all the operands are converted to floating-point numbers.
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?
g) Monthly Pay
Which of the following is not a reserved word in C++?
What is the difference between a reserved word and a user-defined identifier?
Sets with similar terms
Computer science chapter 9@ and 9b homework
Evaluating Algebraic Expressions - Algebra 1B
7th Grade~Algebraic Expressions ( bell ringer/Apri…
Evaluating Algebraic Expressions
Sets found in the same folder
2.7: The char Data Type
7.5: Processing Array Contents
Chapter 5 MPL
7.6: Focus on Software Engineering: Using Parallel…
Other sets by this creator
C++ Programming Chapter 1
Chemistry Ch 2
Chemistry Ch 1 Review
Chemistry Chapter 8
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.
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.
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.
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
Leçon 2 : Impôt sur le revenu
rules of the road
Consumer Math 2.01 Unit 2 Quiz 1
What are the two steps you should take when solving equations and inequalities ?
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.
What does the "m" in y=mx+b stand for?
how to find a slope on a graph