wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

TSA REVIEW

Total questions: 80

Worksheet time: 4hrs 59mins

Name
Class
Date
1.

What would be displayed after the following code is run?

a)

2

b)

-4

c)

14

d)

4

2.

Determine what is printed by the following code.

a)

8

b)

-16

c)

-12

d)

16

3.

A student wrote the procedure below, which is intended to ask whether a user wants to keep playing a game. The procedure does not work as intended. Which of the following best describes the result of running the procedure?

a)

The procedure returns TRUE when the user inputs the value "y" and returns FALSE otherwise.

b)

The procedure returns TRUE when the user inputs the value "n" and returns FALSE otherwise.

c)

The procedure returns TRUE no matter what the input is.

d)

The procedure returns FALSE no matter what the input is.

4.

Determine what is printed by the following code.

a)

2 1 5

b)

9 1 6

c)

10 4 6

d)

10 1 6

5.

A program is created to perform arithmetic operations on positive and negative integers. The program contains the following incorrect procedure, which is intended to return the product of the integers x and y. A programmer suspects that an error in the program is caused by this procedure. Under which of the following conditions will the procedure NOT return the correct product? SELECT TWO ANSWERS:

a)

When the values of x and y are both.

b)

When the value of x is positive and the value of y is negative.

c)

When the value of x is negative and the value of y is positive.

d)

When the values of x and y are both negative.

6.

a)
b)
c)
d)
7.

In the program below, the initial value of X is 5 and the initial value of Y is 10. What is displayed as a result of running the program?

a)

Foxtrot

b)

Hotel

c)

November

d)

Yankee

8.

a)
b)
c)
d)
9.

a)
b)
c)
d)
10.

The question below uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom left square of the grid and facing toward the top of the grid. Code for the procedure Mystery is shown below. Assume that the parameter p has been assigned a positive integer value (e.g. 1,2,3...) Which of the following shows a POSSIBLE result of calling the procedure?

a)
b)
c)
d)
11.

a)
b)
c)
d)
12.

a)

Program I displays the correct sum, but Program II does not.

b)

Program II displays the correct sum, but Program I does not.

c)

Both Program I and Program II display the correct sum.

d)

Neither Program I nor Program II displays the correct sum.

13.

a)
b)
c)
d)
14.

a)
b)
c)
d)
15.

a)
b)
c)
d)
16.

a)
b)
c)
d)
17.

a)
b)
c)
d)
18.

Which of the following code segments can be used to move the robot to the gray square?

a)
b)
c)
d)
19.

What is the value of r as a result of executing the code segment?

a)

10

b)

20

c)

30

d)

40

20.

What would be the output from the code show here?

a)
b)
c)
d)
21.

What would be the output from the code show here?

a)
b)
c)
d)
22.

What would appear in the canvas if the following code is run?

a)
b)
c)
d)
23.

Which code shows the correct way to set a shapes position at the center of the canvas?

a)
b)
c)
d)
24.

What will be displayed as a result of this code?

a)

The result is: 31

b)

The result is: 10

c)

The result is: + expression

d)

The result is: 80

25.

Consider the following program, which uses the variables START, END, and CURRENT. What is displayed as a result of executing the program?

a)

1 3

b)

3 3

c)

3 4

d)

4 4

26.

Consider the following code segment, which moves the robot in the grid. Which of the following shows the location of the robot after running the code segment?

a)
b)
c)
27.

What is displayed as a result of executing the code segment?

a)

10 20 30 40

b)

21 30 40 50

c)

21 40 30 40

d)

21 40 30 50

28.

The following question uses a robot in a grid of squares. The robot is represented by a triangle, which is initially facing toward the top of the grid. Which of the following code segments will move the robot to the gray square along the path indicated by the arrows?

a)
b)
c)
d)
29.

On a scale of Baby Yoda, how are you feeling today?

4 lines
30.

A computer program uses 4 bits to represent nonnegative integers. Which of the following operations would create an overflow error?

a)

4 + 8

b)

5 + 11

c)

9 + 6

d)

7 + 10

e)

12 + 3

31.

When using bits to represent fractions of a number, can you create all possible fractions?

a)

Yes

b)

No

32.

Your computer uses 4 bits to represent decimal numbers (0, 1, 2, 3 and so on) in binary. What is the SMALLEST number for which an overflow error occur?

a)

14

b)

15

c)

16

d)

17

33.

Which of the following is true of how computers represent numbers?

a)

With a fixed number of bits some numbers are too large to represent in a computer which will lead to overflow errors.

b)

Using a fixed but large number of bits can eliminate the possibility of round off error when representing numbers in binary

c)

Using a fixed but large number of bits, for example 128, eliminates the possibility of overflow errors.

d)

With a large but fixed number of bits it is possible to eliminate either round-off errors or overflow errors, but not both.

34.

What is 0110 + 0010

a)

8

b)

9

c)

4

d)

3

35.

An overflow error is where...

a)

0s and 1s... Oh my!

b)

Not enough room memory to store results

c)

Wrong file type

d)

To much room in memory to add everything up

36.

An overflow error can cause...

a)

Correct results

b)

Loss of data

c)

Incorrect results

d)

A glitch in the Matrix

37.

Which of the following is true of intellectual property?

a)

Information created on a computer is not owned by anyone since only analog information is protected under copyright law.

b)

You do not need to cite work created by someone else if both the original work and your use of it are in digital form.

c)

Creative Commons enables content creators to freely distribute their otherwise copyrighted work.

d)

Creative Commons has severely hindered broad and open access to digital information

38.

What does this symbol indicate?

a)

Trademark

b)

Copyright

c)

Service mark

d)

patent

39.
What does this symbol represent?
a)
Copyright
b)
Cookies & Cream
c)
Creative Commons
d)
Creative Copyright
40.

What License does this have?

a)

Attribution-Share Alike License

b)

Attribution-No Derivative Works License

c)

Attribution-Non Commercial-Share Alike License

d)

Attribution-Non commercial-No Derivative Works License

41.
 You don't need permission to use Public Domain? 
a)
True 
b)
False
42.

What term is defined here?

4 lines
43.

What term is defined here?

4 lines
44.
4 lines
45.
4 lines
46.
4 lines
47.
4 lines
48.
4 lines
49.
4 lines
50.
4 lines
51.

What term is defined here?

4 lines
52.

What is invoked when objects are created in order to assign initial attributes for the object?

4 lines
53.

What is defined here?

4 lines
54.

What is defined here?

4 lines
55.
4 lines
56.
4 lines
57.
4 lines
58.
4 lines
59.

What is the difference between public and private access? Where do you use private? Where do you use public?

4 lines
60.
4 lines
61.
4 lines
62.

What is defined here?

4 lines
63.

This flowchart is made to ...

a)

Check whether a number is odd or even

b)

Decide if we like a number or not

c)

Calculate the remainder of a number + 2

d)

Help people with Maths

64.
a)

3

b)

6

c)

10

d)

18

e)

It will be different each time you run it

65.
a)

All done.

b)

Inside the If.

c)

Inside the if.

All done.

d)

Inside the else.

All done.

e)

Inside the if.

Inside the else.

All done.

66.
a)

3

b)

6

c)

10

d)

18

e)

It will be different each time you run it

67.
a)

y + z + " and " + x

b)

sentence

c)

BoysHello Girls

d)

Hello Boys and Girls

e)

Hello Girls and Boys

68.
a)

Inside first if

b)

Inside second if

c)

Inside first if

Inside second if

d)

Nothing will be printed

e)

It will be different each time

69.
a)

9

b)

21

c)

81

d)

nothing is printed

e)

this script would cause an error

70.

What is displayed as a result of executing the code segment?

a)

true false false

b)

true false true

c)

true true false

d)

true true true

71.

A process comprised of independent components working together to transform an input to an output is ...

a)

Algorithm

b)

Output

c)

Program

d)

System

72.

The process of considering something independently of its associations or attributes is ...

a)

Pseudocode

b)

Abstraction

c)

Innovation

d)

Unambiguous

73.

What is specific enough to not be interpreted in more than one way?

a)

Ambiguous

b)

Unambiguos

c)

Selection

d)

System

74.

What is repetition?

a)

Sequence

b)

Selection

c)

Iteration

75.

A diagram that is representation of an algorithm is ....

a)

Flowchart

b)

Pseudocode

c)

System

d)

Component

76.

What is a new method, idea, product, etc., or the creation?

a)

Innovation

b)

System

c)

Selection

d)

Iteration

77.

Which description best describes what this program does?

a)

This program sums up the integers from 8 to 15 (inclusive).

b)

This program sums up the integers from 2 to 8 (inclusive).

c)

This program multiplies the integers from 8 to 15 (inclusive).

d)

This program sums up the integers from 8 to 14 (inclusive).

78.

What does HTML stand for?

a)

Hyperlink and Text Markup Language

b)

Hyper Text Makeup Language

c)

Hyper Text Markup Language

d)

High-level Text Markup Language

79.

Which tag is used to define a hyperlink in HTML?

a)

<link>

b)

<url>

c)

<a>

d)

<hlink>

80.

What is the purpose of the HTML <head> element?

a)

To define the main content of the HTML document

b)

To contain metadata about the HTML document

c)

To define a header section in the HTML document

d)

To include external scripts and stylesheets