NEW
Font size
WorksheetsProgramming and Logic Lesson 2
Total questions: 16
Worksheet time: 16mins
Which type of error causes a program to produce incorrect results, such as the sum of two values instead of the difference of two values?
Syntax
Logic
Runtime
System
An algorithm is the process of:
devising a set of step-by-step instructions to solve a problem or perform a task.
using a pencil and paper to work through an existing program by hand.
determining whether an existing program performs its intended task and works efficiently.
translating a program's instructions into machine language.
Which type of error is usually identified by the compiler or interpreter?
Runtime
Syntax
System
Logic
Which tool used to plan computer programs is an English-like representation of program steps?
Flowchart
Debugging
Pseudocode
Assembly
The general problem-solving strategy includes the following activities: understand the problem, devise a plan, test the plan, review the result, and revise. What is the next step in the process?
Return to Step 2 and revise until the most efficient method is found
Create procedures needed to execute the solution.
Return to Step 1 and repeat the process until the solution is found.
Create a series of statements using code.
Which tool used to plan computer programs is a pictorial representation of program steps?
Assembly
Flowchart
Debugging
Pseudocode
Logical thinking is:
. the process of solving a problem.
progressively moving from one connected thought to another.
systematic steps to correct an error.
the steps required to create a solution.
There are _____ types of programming errors.
2
5
4
3
Which of the following is not a goal of testing?
To determine if the program works efficiently.
To ensure that it solves the original problem.
To determine if there are errors in the program.
To determine if performs as intended.
What is not included in a testing plan?
Debugging
Desk checking
Testing individual components
Creating new algorithms
What type of error occurs while the program is running?
Syntax
Logic
Runtime
System
What is the pencil and paper method of finding errors?
Debugging
Desk Checking
Slicing
Testing Individual Components
What is the name of the process that identifies errors and make necessary corrections to meet the program’s intended outcome?
Debugging
Flowchart
Assembly
Pseudocode
Which of the following statements are correct when trying to solve a complex problem.
Confusion and frustration are often part of the process.
A deep understanding of the problem is not necessary.
Testing is rarely required.
Finding solutions to problems are quick and simple.
Which of the following statements are not correct about desk-checking?
It is a computerized process.
It is a simple method using a pencil and paper.
It is a manual process.
It is very effective.
Problem solving is _______________________.
translating a program's instructions into machine language.
determining whether an existing program performs its intended task and works efficiently.
using a pencil and paper to work through an existing program by hand.
devising a set of step-by-step instructions to solve a problem or perform a task.
