NTR 100 COMPLETE Syllabus and Academic Integrity Acknowledgement Arizona State University
NTR 100 COMPLETE Syllabus and Academic Integrity Acknowledgement Question 1 1 / 1 pts I have read the ASU ā¦
Grading Summary
These are the automatically computed results of your exam. Grades for essay questions, and comments from your instructor, are in the “Details” section below.
Date Taken: 11 / 1/2015
Time Spent: 22 min , 14 secs
Points Received: 32 / 35 (91.4% )
Question Type: # Of Questions: # Correct:
Multiple Choice 10 9
Essay 1 N/A
Grade Details - All Questions
Question 1. Question :
( TCO 2) What is used to add special characters to string literals?
Student Answer: Return codes
CORRECT Escape sequence characters
Special characters cannot be added to string literals.
Scope resolution codes
Instructor Explanation: Review the Escape Characters section of the Week 1 Lecture.
Points Received: 3 of 3 Comments:
Question 2. Question :
( TCO 2) What symbol terminates a statement?
Student Answer: //
CORRECT ;
\\\\
\>>
Instructor Explanation: Chapter 1, p. 11: The semicolon is the statement terminator.
Points Received: 3 of 3 Comments:
Question 3. Question :
( TCO 2) The body of the main function starts with a _____.
Student Answer: .\[
CORRECT .{
}
]
Instructor Explanation: Chapter 1, p. 11: It starts with a left brace {.
Points Received: 3 of 3
Comments:
Question 4. Question :
( TCO2) C++ paragraph comments are represented by which characters?
Student Answer: ::
CORRECT /\* \*/
\>>
//
Instructor Explanation: Chapter 1, p. 11
Points Received: 3 of 3 Comments:
Question 5. Question :
( TCO 2) A Main Function is enclosed inside _____.
Student Answer: box brackets CORRECT curly braces
parentheses
quotes
Instructor Explanation: Chapter 1, p. 11
Points Received: 3 of 3 Comments:
Question 6. Question :
( TCO 1) Which of the following statement about IDE is true?
Student Answer: IDE only allows programmers to edit their code.
CORRECT IDE provides editing, compiling, and debugging in one software package.
Visual Studio.Net is not an IDE.
IDE stands for integrated development engine.
Instructor Explanation: Chapter 1, p. 13
Points Received: 3 of 3
Comments:
Question 7. Question :
( TCO 2) Which of the following statements will output āHello Worldā?
Student Answer: CORRECT cout
cin
Print Queue
Print Line
Instructor Explanation: Chapter 1: Multiple code examples sending statements to the console with cout
Points Received: 3 of 3 Comments:
Question 8. Question :
( TCO 2) The ASCII of “a” is 97. What is the ASCII for “X”?
Student Answer: 86
87
98
CORRECT 88
Instructor Explanation: Chapter 2, p. 51 directs you to appendix B and the ASCII Table
Points Received: 3 of 3
Comments:
Question 9. Question :
( TCO 3) What is the value of x after the following statement?
float x; x = 3.0 / 4.0 + 3 + 2 / 5
Student Answer: 1.75
CORRECT 3.75
5.75
INCORRECT 4.15
Instructor Explanation: Chapter 2, p. 43 on data type: Float; see p. 46 for Arithmetic Expressions
Points Received: 0 of 3 Comments:
Question 10. Question :
( TCO 2) What are two requirements for declaring a variable?
Student Answer: CORRECT Data type and variable name
Data type, variable name, and initial value
Data type and initial value
Variable name and initial value
Instructor Explanation: Chapter 2, pp. 38 & 39: see declaring variables
Points Received: 3 of 3 Comments:
Question 11. Question :
(TCO 3) Explain the rules of operator precedence and how an expression using numeric values and operators would be evaluated.
Student Answer: The rules of operator precedence is that in an
expression that evaluates to a numeric value parenthesis are given a higher precedence followed by exponents,multiplication,division, addition then subtraction.Additionally, an expression is evaluated from left to right.An example of such an expression would be (4+5) / 3 .Here the numbers in parenthesis is handled first by adding them after which the result is divided by
3 .Here the expression would result in the value 3.
Instructor Explanation: Chapter 1, page 46
Numeric operations in a C++ expression are evaluated the same way as in an arithmetic expression. Operators contained within parenthesis are evaluated first, with the innermost parenthesis being evaluated first. Multiplication, division, and modulus operators are done next. If an expression contains a mix of multiplication, division, and modulus operators, the operators are evaluated left to right. Addition and subtraction are done next, and if the expression contains a mix of addition and subtraction, the operators are evaluated left to right.
Points Received: 5 of 5 Comments:
Powered by TCPDF (www.tcpdf.org)
NTR 100 COMPLETE Syllabus and Academic Integrity Acknowledgement Question 1 1 / 1 pts I have read the ASU ā¦
HEP 456 Module 5 Section 12 and 13 Planning for Analysis and Interpretation and Gantt chartĀ Name HEP 456: ā¦
HEP 456 Module 6 Section 14 Communication and Dissemination of The Findings HEP 456: Health Promotion Program ā¦