answer all the above please Statements that can never execute are called dead co
ID: 3542138 • Letter: A
Question
answer all the above please
Statements that can never execute are called dead code. A) True B) False In C++, the first element in any array is the element with the 1 subscript. A) True B) False All arithmetic operators are binary, A) True B) False When more than one arithmetic operator is included in an expression, then multiplication, division, and modulus operations always occur before addition or subtraction. A) True B) False You must always surround a single statement after an if with curly braces. A) True B) False When you assign one pointer to another, you are not making a copy of the data; instead, you are setting two pointers to point to the same memory location. A) True B) False ___ a function name involves creating multiple functions with the same name but different parameter lists. A) Encapsulating B) Prototyping C) Overriding D) Overloading When you use a(n) ____function, a copy of the function statements is placed directly into the compiled calling program. A) inline B) local C) global D) prototype A(n) ___ value is a value sent from a subfunction to the function that called it. A) return B) output C) suboutine D) function The statement that executes a function is the function ___ . A) statement B) alias C) call D) expression variables are known only in a limited scope. A) Global B) Local C) Limited D) Modular What problem can you identify in the following program? char name1[] = Mary; char name2[] = Diane; strcpy(name2, Margaret Veronica); A) It tries to input a string value including whitespace. B) It tries to assign one string to another using the assignment operator. C) It tries to compare strings using the comparison operator. D) It exceeds the bounds of an array. If you create a firstName string and initialize it to Mary, and then use the C++ statement cout &firstName;[1];, the output is . ___ A) Mary B) ary C) an error D) empty because the program does not compileExplanation / Answer
5. true
6. false
7. true
8. true
9. false
10. true
11. overloading
12. prototype
13. return
14. call
15. local
16. B
17.B
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.