C++ -- Chapter 2

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

double

An example of a floating point data type is

Prompt lines

Executable statements that inform the user what to do

True

If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right

Syntax

Rules of programming language tell you which statements are legal, or accepted by the programming language.

True

Suppose a = 5. After the execution of the statement: ++a; the value of a is now 6

alpha = 50

Suppose that alpha and beta are int variables and alpha = 5 and beta = 10. After the statement: alpha *= beta; executes, what is the results?

beta = beta - 1; alpha = beta;

Suppose that alpha and beta are int variables. The statement: alpha = -- beta; is equivalent to the statements...

sum = 15

Suppose that sum and num are int and sum = 5 and num = 10. Statement: sum += num; executes to...

False

The escape sequence \r moves the insertion point to the beginning of the next line

13

The expression: static_case<int>(6.9) + static_cast<int>(7.9) evaluates to...


Kaugnay na mga set ng pag-aaral

Workers' Compensation Insurance (Chapter 14)

View Set

Ch.7 Installing and Operating Cisco LAN Switches

View Set

Ch 13 The Expectant Family: Needs and Care

View Set

Pharmacology Practice Assessment

View Set

Chapter 2 QUIZ (Business Analytics)

View Set

Level 1 Antiterrorism Awareness Training (JS-US007) Answers

View Set

HORT 2043 - Organic Gardening Final (QUIZ 6-10)

View Set

GRE_complete_sentence_only_vol.2

View Set

Google Level 1 Certification Practice

View Set

CIS 101 - 500 at RCBC Chapters 1 -3 Terms

View Set