Answer the following statements true (T) or false (F)

1. Using top-down, stepwise refinement properly results in pseudocode that can be
naturally evolved into a Visual Basic program.
2. Having many levels of nesting improves program readability.
3. The off-by-one syntax error is frequently caused by using an incorrect relational operator in a
loop’s condition.
4. Logic errors prevent a program from compiling successfully and can cause a running program
to produce incorrect results.
5. A While statement automatically increments a variable that a programmer specifies.

1. True.
2. False. Too many levels of nesting can make a program difficult to understand.
3. False. It’s a logic error, not a syntax error.
4. False. Logic errors do not prevent a program from compiling successfully (syntax errors do), but they can cause a running program to produce incorrect results.
5. False. The While statement does not automatically increment a value. It tests a condition and executes the body if the condition evaluates to true.

Computer Science & Information Technology

You might also like to view...

Macros are recorded in ________ language, which is used to write computer programs within the Microsoft Windows environment

A) Visual Basic for Activities B) Visual Basic for Associates C) Visual Basic for Applications D) Visual Basic for AJAX

Computer Science & Information Technology

To log on to the computer system, enter your ________, which identifies you to the computer or operating system

A) Firstname B) User name C) Lastname D) Password

Computer Science & Information Technology