wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

TSA Coding Practice Test 2023

Total questions: 50

Worksheet time: 2hrs 40mins

Name
Class
Date
1.

The _____ phase of the software development life cycle is the process of finding bugs or defects in the software.

a)

Implementation

b)

Testing

c)

Deployment

d)

Maintaining

2.

What is a library?

a)

A source file already written containing ready-made functions

b)

A file allowing to display text on the screen

c)

A file containing my program

d)

None of the above

3.

What are the characteristics of software?

a)

Software is developed or engineered; it is not manufactured in the classical sense.

b)

Software doesn’t “wear out.”

c)

Software can be custom built or custom build.

d)

All of the mentioned above.

4.

Software is defined as ______.

a)

Data Structures

b)

Documents

c)

Instructions

d)

All of the above

5.

Which coding element is generally omitted at the end of line?

a)

Naming conventions

b)

Identifying

c)

Whitespace

d)

Operators

6.

What is the name of the main function of a C program?

a)

principal

b)

main

c)

any name

d)

begin

7.

Linux is an example of:

a)

An Operating System

b)

Open Source Software

c)

An Integrated Development Environment

d)

Both A&B

8.

_____ represents a million bytes of information.

a)

1 MB

b)

1 GB

c)

1 TB

d)

10 MB

9.

1 Terabyte (Tb) =

a)

1,024 Gb

b)

1,000 Gb

c)

1,200 Gb

d)

1,275 Gb

10.

When writing a code that executes fifteen times, which of the following structures should be used?

a)

While Loop

b)

If-Else

c)

For Loop

d)

If

11.

If you need to paste in a word processor, which command will you give?

a)

Ctrl + A

b)

Ctrl + C

c)

Ctrl + V

d)

Ctrl + Z

12.

Which of the following characters is used to make a line break on the screen?

a)

\t

b)

\a

c)

\r

d)

\n

13.

Ken has just constructed his first for loop within Java language. Which of the following is not a required part of a for loop?

a)

A. Initialization

b)

B. Condition

c)

C. Variable

d)

D. Increment

14.

A loop that never ends is referred to as a(n):

a)

A. Recursive Loop

b)

B. For Loop

c)

C. Infinite Loop

d)

D. While Loop

15.

The rules of writing 'if-then-else,' 'case-switch,' 'while-until,' and 'for' control flow statements are called ________.

a)

A. Comments

b)

B. Functions

c)

C. Line length and wrapping

d)

D. Control Structure

16.

Sal needs to execute a section of code ten times within a program. Compare the selection structures below and select which one meets the needs identified.

a)

A. If-Else

b)

B. For

c)

C. While

d)

D. If

17.

A(n) ______ allows for crucial communications between CPU, memory, and other peripherals.

a)

A. IDE

b)

B. Motherboard

c)

C. Assembler

d)

D. Microsoft Windows

18.

Which of the following characters returns the cursor to the left of the screen?

a)

A. \r

b)

B. \a

c)

C. \t

d)

D. \n

19.

A(n) ______ is a unit of digital information that commonly consists of 8 bits.

a)

A. List

b)

B. String

c)

C. Byte

d)

D. Memory

20.

In Scratch, what is the name given to a character?

a)

A. Sprite

b)

B. Script

c)

C. Character

d)

D. Scratcher

21.

Which of the following systems software does the job of merging the records from two files into one?

a)

A. Documentation system

b)

B. Utility program

c)

C. Networking software

d)

D. Security software

22.

What is the function of the 'forever' command block in Scratch?

a)

A. Runs the script inside once

b)

B. Runs the script inside twice

c)

C. Runs the script inside until stopped by the user

d)

D. Runs the script inside over and over

23.

What does CPU stand for?

a)

A. Computer Processing Unit

b)

B. Central Peripheral Unit

c)

C. Central Processing Unit

d)

D. Computer Processing User

24.

Which of the following is not a property of block code?

a)

A. Linearity

b)

B. Systematic

c)

C. Cyclic

d)

D. Non-linearity

25.

______ is a low-level programming language for a computer or other programmable device.

a)

Object-oriented

b)

RAM

c)

Data Structure

d)

Assembler

26.

A(n) _____ is a finite sequence of characters.

a)

Octet

b)

String

c)

Byte

d)

List

27.

What is the only thing that computers understand?

a)

Machine Code

b)

High Level Languages

c)

Low Level Languages

d)

Algorithms

28.

What is the term used for copying computer program without taking permission of its writer?

a)

Software piracy

b)

Software robbery

c)

Software copyright

d)

Illegal activity

29.

A(n) _____ is a form of computer data storage that stores data and machine code currently being used.

a)

RAM

b)

Data Structure

c)

Compiler

d)

Hard Drive

30.

A named sequence of statements is known as which of the following?

a)

Definition

b)

Method

c)

Module

d)

Function

31.

What kind of files can be created with C programming?

a)

Images (*.jpg, *.png, *.gif,..)

b)

Executables (*.exe on Windows)

c)

Sources (*.c)

d)

Text files (*.txt)

32.

Which of the following would NOT work as a variable name?

a)

a

b)

len

c)

length

d)

x

33.

Which box changes the background on a Scratch screen?

a)

Stage information

b)

Scripts area

c)

Backpack

d)

Help

34.

Variable names beginning with underscore “_” are not encouraged. So why not?

a)

It is not normalized.

b)

To avoid conflicts since assemblers and compilers can use variables containing underscore

c)

To avoid conflicts since library routines can use variables containing underscore

d)

To avoid conflicts with the operating system’s environment variables

35.

What two things do all Scratch programs have?

a)

Scripts and instruction blocks

b)

At least two sprites

c)

Sprites and scripts

d)

At least four sprites

36.

Unsolicited email is known as what?

a)

Phishing

b)

Spam

c)

Malware

d)

Eware

37.

Where are the sprites and scripts stored in a Scratch screen?

a)

Stage

b)

Blocks palette

c)

Knapsack

d)

Backpack

38.

What is the main aim of Software Engineering?

a)

Reliable software

b)

Cost effective software

c)

Reliable and cost effective software

d)

None of the above

39.

Which of these functions can a Scratch sprite NOT be programmed to do?

a)

Write a program

b)

Speak

c)

Move around on screen

d)

Play music

40.

Which of the following system software resides in main memory always?

a)

Text editor

b)

Assembler

c)

Linker

d)

Loader

41.

When we declare a variable, which memory is used?

a)

RAM

b)

ROM

c)

Hard Disk

d)

Microprocessor

42.

What would you use to change the location of a sprite on the stage in Scratch?

a)

Costume tab

b)

File menu

c)

Coordinates

d)

Stage information

43.

Memory -

a)

is a device that performs a sequence of operations specified by instructions in memory.

b)

is the device where information is stored.

c)

is a sequence of instructions.

d)

is a computational unit to perform specific functions.

44.

What data type can store 15.9635?

a)

char

b)

long

c)

double

d)

int

45.

Which of the following type of software should be used if you need to create, edit, and print documents?

a)

Word processing

b)

Spreadsheet

c)

Desktop publishing

d)

UNIX

46.

A program in execution is called a(n):

a)

Process

b)

Instruction

c)

Procedure

d)

Function

47.

The program that translates your code from a high-level language to the binary language is called?

a)

programmer

b)

compiler

c)

translator

d)

linker

48.

What do you call the part of the program that does not work?

a)

Code

b)

Bug

c)

Loop

d)

Repeat

49.

When using Scratch, what is meant by the term costume?

a)

A code block

b)

A motion

c)

A sound

d)

A different way a sprite looks

50.

What do you call the list of commands in Scratch?

a)

Sprite

b)

Script

c)

Scratch

d)

Help