NEW
Font size
WorksheetsTSA Coding Practice Test 2023
Total questions: 50
Worksheet time: 2hrs 40mins
The _____ phase of the software development life cycle is the process of finding bugs or defects in the software.
Implementation
Testing
Deployment
Maintaining
What is a library?
A source file already written containing ready-made functions
A file allowing to display text on the screen
A file containing my program
None of the above
What are the characteristics of software?
Software is developed or engineered; it is not manufactured in the classical sense.
Software doesn’t “wear out.”
Software can be custom built or custom build.
All of the mentioned above.
Software is defined as ______.
Data Structures
Documents
Instructions
All of the above
Which coding element is generally omitted at the end of line?
Naming conventions
Identifying
Whitespace
Operators
What is the name of the main function of a C program?
principal
main
any name
begin
Linux is an example of:
An Operating System
Open Source Software
An Integrated Development Environment
Both A&B
_____ represents a million bytes of information.
1 MB
1 GB
1 TB
10 MB
1 Terabyte (Tb) =
1,024 Gb
1,000 Gb
1,200 Gb
1,275 Gb
When writing a code that executes fifteen times, which of the following structures should be used?
While Loop
If-Else
For Loop
If
If you need to paste in a word processor, which command will you give?
Ctrl + A
Ctrl + C
Ctrl + V
Ctrl + Z
Which of the following characters is used to make a line break on the screen?
\t
\a
\r
\n
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. Initialization
B. Condition
C. Variable
D. Increment
A loop that never ends is referred to as a(n):
A. Recursive Loop
B. For Loop
C. Infinite Loop
D. While Loop
The rules of writing 'if-then-else,' 'case-switch,' 'while-until,' and 'for' control flow statements are called ________.
A. Comments
B. Functions
C. Line length and wrapping
D. Control Structure
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. If-Else
B. For
C. While
D. If
A(n) ______ allows for crucial communications between CPU, memory, and other peripherals.
A. IDE
B. Motherboard
C. Assembler
D. Microsoft Windows
Which of the following characters returns the cursor to the left of the screen?
A. \r
B. \a
C. \t
D. \n
A(n) ______ is a unit of digital information that commonly consists of 8 bits.
A. List
B. String
C. Byte
D. Memory
In Scratch, what is the name given to a character?
A. Sprite
B. Script
C. Character
D. Scratcher
Which of the following systems software does the job of merging the records from two files into one?
A. Documentation system
B. Utility program
C. Networking software
D. Security software
What is the function of the 'forever' command block in Scratch?
A. Runs the script inside once
B. Runs the script inside twice
C. Runs the script inside until stopped by the user
D. Runs the script inside over and over
What does CPU stand for?
A. Computer Processing Unit
B. Central Peripheral Unit
C. Central Processing Unit
D. Computer Processing User
Which of the following is not a property of block code?
A. Linearity
B. Systematic
C. Cyclic
D. Non-linearity
______ is a low-level programming language for a computer or other programmable device.
Object-oriented
RAM
Data Structure
Assembler
A(n) _____ is a finite sequence of characters.
Octet
String
Byte
List
What is the only thing that computers understand?
Machine Code
High Level Languages
Low Level Languages
Algorithms
What is the term used for copying computer program without taking permission of its writer?
Software piracy
Software robbery
Software copyright
Illegal activity
A(n) _____ is a form of computer data storage that stores data and machine code currently being used.
RAM
Data Structure
Compiler
Hard Drive
A named sequence of statements is known as which of the following?
Definition
Method
Module
Function
What kind of files can be created with C programming?
Images (*.jpg, *.png, *.gif,..)
Executables (*.exe on Windows)
Sources (*.c)
Text files (*.txt)
Which of the following would NOT work as a variable name?
a
len
length
x
Which box changes the background on a Scratch screen?
Stage information
Scripts area
Backpack
Help
Variable names beginning with underscore “_” are not encouraged. So why not?
It is not normalized.
To avoid conflicts since assemblers and compilers can use variables containing underscore
To avoid conflicts since library routines can use variables containing underscore
To avoid conflicts with the operating system’s environment variables
What two things do all Scratch programs have?
Scripts and instruction blocks
At least two sprites
Sprites and scripts
At least four sprites
Unsolicited email is known as what?
Phishing
Spam
Malware
Eware
Where are the sprites and scripts stored in a Scratch screen?
Stage
Blocks palette
Knapsack
Backpack
What is the main aim of Software Engineering?
Reliable software
Cost effective software
Reliable and cost effective software
None of the above
Which of these functions can a Scratch sprite NOT be programmed to do?
Write a program
Speak
Move around on screen
Play music
Which of the following system software resides in main memory always?
Text editor
Assembler
Linker
Loader
When we declare a variable, which memory is used?
RAM
ROM
Hard Disk
Microprocessor
What would you use to change the location of a sprite on the stage in Scratch?
Costume tab
File menu
Coordinates
Stage information
Memory -
is a device that performs a sequence of operations specified by instructions in memory.
is the device where information is stored.
is a sequence of instructions.
is a computational unit to perform specific functions.
What data type can store 15.9635?
char
long
double
int
Which of the following type of software should be used if you need to create, edit, and print documents?
Word processing
Spreadsheet
Desktop publishing
UNIX
A program in execution is called a(n):
Process
Instruction
Procedure
Function
The program that translates your code from a high-level language to the binary language is called?
programmer
compiler
translator
linker
What do you call the part of the program that does not work?
Code
Bug
Loop
Repeat
When using Scratch, what is meant by the term costume?
A code block
A motion
A sound
A different way a sprite looks
What do you call the list of commands in Scratch?
Sprite
Script
Scratch
Help
