TSA Coding Study Guide

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/123

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

124 Terms

1
New cards

What is the correct order of the following data sizes from smallest to largest? Megabytes, Terabytes, Bytes, Petabytes, Bits, Exabytes, Gigabytes

Bits, Bytes, Megabytes, Terabytes, Petabytes, Exabytes

2
New cards

How many megabytes are in a gigabyte?

1000

3
New cards

How many bits would you need if you wanted to have the ability to count up to 1000?

10

4
New cards

An interpreter or compiler converts data into which numerical value?

Binary

5
New cards

Which decimal is equivalent to the binary value 1100100?

100

6
New cards

What is the core number system that most computers use to calculate & process logic?

Binary Code

7
New cards

What can a hexadecimal be utilized for?

HTML color codes

8
New cards

How many unique IP addresses could be made using a 6 bit fixed-length adress sysem?

64

9
New cards

Which operator returns the remainder value in a calculation?

Modulus

10
New cards

Operators of equal precedence are evaluated in which order?

Left to Right

11
New cards

What is the purpose of order of operation in software programming?

It tells the computer which mathematical operation to perform first.

12
New cards

How does the ++ symbol in programming change a variable?

It adds 1 to the value of itself.

13
New cards

How does the -- symbol in programming change a varibale?

It subtracts 1 from the value of itself.

14
New cards

What data type is used for fractional numbers?

Float

15
New cards

Which data representation system utilizes both letters and numbers?

Hexadecimal

16
New cards

When utilizing an if/else statement in your code, how many possible choices can be available to the user?

2

17
New cards

When writing an if/else statement, what should be utilized to contain the sequence of statements?

{ }

18
New cards

What comes first in the if / else statement?

if

19
New cards

What is the best statement to use if checking to evaluate a single variable value across many conditions?

Switch

20
New cards

What does the == symbol in programming mean?

equal

21
New cards

What does the = symbol in programming mean?

assignment

22
New cards

What does the && symbol in programming mean?

and

23
New cards

What does the || symbol in programming mean?

or

24
New cards

What does the ! symbol in programming mean?

not

25
New cards

What does the > symbol in programming mean?

greater than

26
New cards

What does the < symbol in programming mean?

less than

27
New cards

What does the >= symbol in programming mean?

greater than or equal

28
New cards

What does the <= symbol in programming mean?

less than or equal

29
New cards

What does the === symbol in programming mean?

equal value and equal type

30
New cards

What does the != symbol in programming mean?

not equal

31
New cards

What does the !== symbol in programming mean?

not equal value and not equal type

32
New cards

What is another name for indenting?

Nesting

33
New cards

What are nesting statements?

They are statements inside another statement.

34
New cards

Which statement allows more than one condition in an if statement?

elif

35
New cards

What does a computer program use as a means to evaluate a condition as True or False?

A Boolean expression.

36
New cards

"A program contains the following statements:

x= grade

If x >90:

print ("You are an A student!")

What action will the program take when x=89?"

Nothing will print.

37
New cards

Computer Program

Any software that runs on top of the operating system.

38
New cards

Programming Language

A system of conventions and symbols used to create instructions for computers, which read through and follow the instructions in the code.

39
New cards

Machine Code

A binary system that is made of a series of 1s and 0s. It is considered the lowest level of programming and is the set of instructions with which the computer's CPU works directly.

40
New cards

Low-level Language

A programming language whose code is more similar to what the computer works with and is less human-readable; it is very specific and directly manipulates hardware. They are more efficient but harder to use.

41
New cards

High-level Language

A programming language whose code has multiple layers of abstraction (i.e. the code has to be translated into a form that the computer can understand) and is thus more human-readable.

42
New cards

Source Code

The code that is written by the programmer and is in a form that can be understood and edited by humans.

43
New cards

Object Code

Source code that has been transformed by the computer into a low-level form that the CPU can understand and work with.

44
New cards

Statements

Individual, specific instructions used in programming to accomplish specific tasks.

45
New cards

Algorithm

A predefined procedure that aims to solve a problem or complete a task. It takes into account specific circumstances and has varying courses of action for each.

46
New cards

Pseudocode

Human-written code that describes what a program is supposed to do, or, more specifically, what the programmer wants the code to do.

47
New cards

Flowchart

A diagram used to describe algorithms and the structure of programs and programming languages. It consists of boxes that represent specific objects or steps and arrows and lines to represent the relationship between them.

48
New cards

Documentation

Text written in normal language that describes software; it consists of comments found directly in the code as well as separate documents that describe the overall program.

49
New cards

Debug

A process that aims to locate the exact source of bugs (i.e. errors or flaws) in the code.

50
New cards

Syntax Error

A mistake with the conventions and symbols of the programming language that leads to an error in the program.

51
New cards

Run-time Error

An error that occurs when the program is running, after the code has already been compiled, or checked.

52
New cards

Interpret

To convert the code into instructions as the program is running.

53
New cards

Compile

To convert the code into instructions before the program runs.

54
New cards

Assembler

A program that converts basic, low-level instructions into machine code.

55
New cards

Execute

To run a program or a set of instructions given to a computer.

56
New cards

ASCII Code

System in which each English character is assigned a numerical code ranging from 0 to 127.

57
New cards

Solve by Analogy

Consists of comparing the problem to something that is both similar and familiar to you. It requires you to draw knowledge from something that you know well and apply it to the task at hand.

58
New cards

Means-End Analysis

A strategy where the solution to the problem is treated as an overall goal and is broken down into more specific tasks or parts.

59
New cards

Looking at the Big Picture

To look at the problem in its entirety.

60
New cards

Lateral Thinking

A strategy where you use creativity to solve a problem in a unique, indirect way. Requires creativity and does not always involve what is immediately apparent with the problem; solutions and insights devised using this strategy are not immediately clear and require some deeper thinking to figure out.

61
New cards

Inductive Reasoning

Involves testing the validity of an idea by making observations of circumstances in which the idea is relevant. It's useful for solving problems because it can be used to acquire the knowledge needed to do so.

62
New cards

Sequence

A set of commands is executed one after the other in the order in which they were provided.

63
New cards

Conditional

Evaluates the validity of one or more conditions and then executes one or more commands, whose nature depends now which condition is valid.

64
New cards

Iterative

Repeatedly executes a set of one or more commands until one or more given conditions has been satisfied.

65
New cards

Subroutine

A separate block of code containing a set of instructions.

66
New cards

Variable

A value in code that is able to be stored and changed.

67
New cards

String

A sequence of characters often used to display text (e.g. "Hello World!").

68
New cards

Boolean

One of two values: TRUE or FALSE. It is often used to control an object's visibility in object-oriented programming (OOP).

69
New cards

Integer

A WHOLE number (not a fraction or decimal!) that can be positive or negative.

70
New cards

Decimal

A data type that has a "." in it (e.g. 2.27).

71
New cards

Date/time Variable

Variables that are used to store the date and time. It is often used as a way of time-stamping when something was done or achieved.

72
New cards

Global Variable

A variable defined outside all functions and is accessible to all functions in its scope.

73
New cards

Local Variable

A variable that is declared within a function and cannot be accessed by statements that are outside of the function. In addition, a local variable cannot be accessed by code that appears inside the function at a point before the variable has been created.

74
New cards

Array

A data structure with one, or more, elements of the same type.

75
New cards

OOP

Object Oriented Programming - a style of programming that represents a program as a system of objects and enables code-reuse.

76
New cards

GUI

An icon based interface that the user can interact with.

77
New cards

IDE

Integrated Development Environment. For example, Pycharm for Python or Visual studio for Visual Basic.

78
New cards

Event Handler

A function that is called when a certain event occurs. Examples of these include button.onclick and window.onload.

79
New cards

Linear Program Flow Control

A flow diagram of a program that only has one direct path.

80
New cards

Branch Program Flow Control

A flow diagram that has multiple paths that the user can take.

81
New cards

While Loop

The code is repeated until the condition becomes false.

82
New cards

For Loop

Loops that repeat a select number of times.

83
New cards

Reserved Word

A special word that cannot be used as a user-defined named. These words are already part of the programming language's syntax.

84
New cards

Prototype

A test model of a program.

85
New cards

Input

Whatever is typed, submitted, or transmitted to a computer.

86
New cards

Output

The product created by transforming the inputs

87
New cards

Syntax

The sentence structure in a programming language.

88
New cards

If Statement

The common programming structure that implements "conditional statements". It will only complete if the condition is met.

89
New cards

Case

An if statement with multiple outputs.

90
New cards

Software Development Cycle

Requirements Analysis, Design, Coding, Unit Testing, Integration Testing, Formal/Acceptance Testing, Maintenance

91
New cards

Structured Programming

Software that was designed to be easy to understand and modify.

92
New cards

RAM

A form of memory that temporarily stores data and programs currently in use.

93
New cards

ROM

A type of non-volatile memory used in computers and other electronic devices.

94
New cards

CPU

The "brain" of the computer that carries out all of the tasks and operations of a computer.

95
New cards

Software

A set of instructions that tells the hardware what to do. It is what guides the hardware and tells it how to accomplish each task.

96
New cards

Operating System (OS)

Software used to control the computer and its peripheral equipment.

97
New cards

Hardware

Physical elements of a computing system (ex: printer, circuit boards, wires, keyboard, etc.)

98
New cards

Interpreter/Compiler

Translates source code into machine code one line at a time.

99
New cards

Binary Number System

Base2

100
New cards

Decimal Number System

Base10