engr 110 DL test 2 S08 F0502

engr 110 DL test 2 S08 F0502 - ENGINEERING TOOLS TEST 2...

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

View Full Document Right Arrow Icon
ENGINEERING TOOLS NAME:_______________________ TEST 2 Spring 2008 Complete all questions. Partial credit may be given. You should put your answers to questions 1-21 on this paper. Attach the required information for questions 22 and 23 to this test paper. Most questions carry equal weight. 1.a. What is our definition of an algorithm? An algorithm is just a set of step by step instructions to accomplish a task . b. What tool do we use to document our algorithm (it’s a series of arrows and geometric shapes)? The tools that you use to document the algorithm is called a flow chart. 2. We have 5 steps in our programming process. In which step do we finally begin work on the computer using C++ - it’s the step where we actually start typing in our code. Step number 3. 3. What three things do we do in the first step of the programming process (this step is called defining the problem – what I’m asking here is: what are the three things we must write down in this step)? The first thing we must do is understand what we are supposed to be accomplishing. You need to develop a written problem statement, a list of data input, and output. 4. List the two types of errors we can have in our programs and give a brief description of each error type. Syntax errors are thins in code that compiler cannot understand. Runtime errors are errors we find when we execute the program. 5. What is our definition of a C++ variable. A variable is defined as a named memory location. 6. We have discussed three types of algorithms we can have in our programs. Which is the algorithm that describes programs that have IF blocks in them? 7.
Background image of page 1

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

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

This note was uploaded on 04/08/2008 for the course ENGR 110 taught by Professor Ernest during the Spring '08 term at Hudson Valley Community College.

Page1 / 5

engr 110 DL test 2 S08 F0502 - ENGINEERING TOOLS TEST 2...

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

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