Final Exam Quizes

Final Exam Quizes - Week 1 Quiz 1 What is used to add special characters to string literals Chpt 3 pg 90 a Escape codes 2 Function headers are

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Week 1 Quiz 1. What is used to add special characters to string literals? Chpt. 3 pg. 90 a. Escape codes 2. Function headers are composed of which three parts? Chpt. 3 pg. 99 a. Return type, name, body 3. A step-by-step problem solving process in which a solution is arrived in a finite amount of time is called _______? Chpt. 1 pg. 12 a. Algorithm 4. A tool that consists of short English statements that programmers use to help them plan an algorithm is called ______? Chpt. 2 pg. 55 a. Pseudocode 5. In which namespace can cout, endl, and cin be found? Chpt. 3/Lecture a. Std 6. Preprocessor directives begin with what character? Chpt. 3 pg. 99 a. # /Lecture 7. A part of a C++ program designed to perform a single task or solve a specific problem is a ______. Lecture a. Function 8. The file extension of a C++ source code file is ______. Chpt. 3 pg. 122 a. .cpp /Lecture 9. A text editor that color codes keywords and automatically indents is known as a _______. Chpt. 3 pg. 116 a. Code Editor /Lecture 10. Visual Studio is an example of a(n) ______. Lecture a. IDE 11. Explain the essential aspects of a C++ program (include directive, using Lecture statements, and the main function) that outputs a line of text to the console. Create an actual example of this C++ program and make sure it does not contain errors.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
To create a program that outputs a line of text you must use the include statement to merge the iostream header file, include a using statement to allow the compile to find the definition of cout, a function named main which is executed when the program starts, use the standard output stream, cout, to write a line of text to the console, and return a value to the operating system. Example: #include <iostream> using namespace std; int main (void) { cout << “a line of text”; return 0; } Week 2 Quiz 1. The term that refers to where a variable can be seen and used is ______. Lecture a. Scope 2. A variable whose value cannot change while a program is running is called a(n) Chpt. 4 pg. 194 ______. a. Named constant 3. Numeric data assigned to memory locations that store only numbers, is Chpt. 4 pg. 160 represented in internal memory using the ______. a. Binary number system 4. Letters, symbols and numbers that will not be used in calculations are called Chpt. 4 pg. 159 ______. a. Characters 5. A variable that retains its value during the execution of a program, but has a Lecture Limited scope is called a ______. a. Static variable 6. The C++ equality operator is ______. Chpt. 5 pg. 237 a. == Lecture 7. The C++ assignment operator is _______. Chpt. 5 pg. 237 a. = Lecture 8. What value must the temp variable have for the following expression to be true? Chpt. 5 Lecture a. 25
Background image of page 2
9. In C++the logical not operator is? Chpt. 5 pg. 248
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/12/2010 for the course CIS 170C taught by Professor Martinez during the Spring '10 term at DeVry Arlington.

Page1 / 10

Final Exam Quizes - Week 1 Quiz 1 What is used to add special characters to string literals Chpt 3 pg 90 a Escape codes 2 Function headers are

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online