Search Header Logo
Trace Tables

Trace Tables

Assessment

Presentation

Computers

9th - 10th Grade

Practice Problem

Medium

Created by

Calum Gordon

Used 41+ times

FREE Resource

14 Slides • 11 Questions

1

Trace Tables

by BSN Computing

2

media

3

media

4

Multiple Select

Question image

In this lesson I am going to learn to ... ?

1

Determine the values of variables by tracing an algorithm

2

Determine the output of an algorithm

3

Determine the input to an algorithm

4

Determine test data to test an algorithm

5

media

6

Multiple Choice

What is the purpose of a trace table?

1

To help the programmer track the values of variables

2

To provide the programmer with a set of test data

3

To show the control flow of a program

4

To fill the programmer's time with meaningless tasks

7

media

8

Multiple Select

Choose all the columns that should be inserted into a trace table?

1

variables

2

output

3

loop conditions or counters

4

constants

9

Multiple Choice

Question image

Which column headings are needed to trace this program?

1

count

number

count != 0

output

2

count

number

output

3

count

number

count != 0

4

count

number

10

Multiple Choice

Question image

Which column headings are needed to trace this program?

1

index < length?

index

length

total

output

2

index

length

total

output

3

index < length?

index

length

total

4

index

length

total

11

media

12

media

13

media

14

media

15

media

16

media

17

media

18

Multiple Choice

The most common use of trace tables is to _______

1

Find logic errors in the algorithm

2

Test input data

3

Waste the programmer's time

4

Correct syntax errors in the program

19

media

20

Multiple Choice

Which one is NOT a reason for using a trace table to trace an algorithm?

1

Find errors in the algorithms

2

Show that the algorithm gives correct output for a given input

3

Determine the purpose of the algorithm

4

To validate the input data

21

Multiple Choice

Question image

An algorithm that manipulates sales figures is shown.

The first four values in the data structure SalesFile are 355, 554, 199, and 409.

Which trace table shows the correct execution of the pseudocode for these four values?

1
2
3
4

22

media

23

Multiple Select

Question image

In this lesson I have learned to ...

1

use trace tables

2

identify the purpose of trace tables

3

debug algorithms

4

create test data for an algorithm

24

Open Ended

Question image

Thinking Hard

Write a set of step-by-step instructions to guide a student how to trace an algorithm using a trace table

(press Shift+Enter to take a new line ...)

25

Poll

Question image

How much of this lesson have you understood?

None of it

Some of it

Most of it

All of it

Trace Tables

by BSN Computing

Show answer

Auto Play

Slide 1 / 25

SLIDE