TSA Coding Practice

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

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

1 / 127

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

128 Terms

1

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

New cards
2

How many megabytes are in a gigabyte?

1000

New cards
3

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

10

New cards
4

An interpreter or compiler converts data into which numerical value?

Binary

New cards
5

Which decimal is equivalent to the binary value 1100100?

100

New cards
6

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

Binary Code

New cards
7

What can a hexadecimal be utilized for?

HTML color codes

New cards
8

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

64

New cards
9

Which operator returns the remainder value in a calculation?

Modulus

New cards
10

Operators of equal precedence are evaluated in which order?

Left to Right

New cards
11

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

It tells the computer which mathematical operation to perform first.

New cards
12

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

It adds 1 to the value of itself.

New cards
13

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

It subtracts 1 from the value of itself.

New cards
14

What data type is used for fractional numbers?

Float

New cards
15

Which data representation system utilizes both letters and numbers?

Hexadecimal

New cards
16

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

2

New cards
17

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

{ }

New cards
18

What comes first in the if / else statement?

if

New cards
19

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

Switch

New cards
20

What does the == symbol in programming mean?

equal

New cards
21

What does the = symbol in programming mean?

assignment

New cards
22

What does the && symbol in programming mean?

and

New cards
23

What does the || symbol in programming mean?

or

New cards
24

What does the ! symbol in programming mean?

not

New cards
25

What does the > symbol in programming mean?

greater than

New cards
26

What does the < symbol in programming mean?

less than

New cards
27

What does the >= symbol in programming mean?

greater than or equal

New cards
28

What does the <= symbol in programming mean?

less than or equal

New cards
29

What does the === symbol in programming mean?

equal value and equal type

New cards
30

What does the != symbol in programming mean?

not equal

New cards
31

What does the !== symbol in programming mean?

not equal value and not equal type

New cards
32

What is another name for indenting?

Nesting

New cards
33

What are nesting statements?

They are statements inside another statement.

New cards
34

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

elif

New cards
35

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

A Boolean expression.

New cards
36

"A program contains the following statements:

New cards
37

x= grade

New cards
38

If x >90:

New cards
39

print ("You are an A student!")

New cards
40

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

Nothing will print.

New cards
41

Computer Program

Any software that runs on top of the operating system.

New cards
42

Programming Language

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

New cards
43

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.

New cards
44

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.

New cards
45

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.

New cards
46

Source Code

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

New cards
47

Object Code

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

New cards
48

Statements

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

New cards
49

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.

New cards
50

Pseudocode

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

New cards
51

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.

New cards
52

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.

New cards
53

Debug

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

New cards
54

Syntax Error

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

New cards
55

Run-time Error

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

New cards
56

Interpret

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

New cards
57

Compile

To convert the code into instructions before the program runs.

New cards
58

Assembler

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

New cards
59

Execute

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

New cards
60

ASCII Code

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

New cards
61

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.

New cards
62

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.

New cards
63

Looking at the Big Picture

To look at the problem in its entirety.

New cards
64

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.

New cards
65

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.

New cards
66

Sequence

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

New cards
67

Conditional

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

New cards
68

Iterative

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

New cards
69

Subroutine

A separate block of code containing a set of instructions.

New cards
70

Variable

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

New cards
71

String

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

New cards
72

Boolean

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

New cards
73

Integer

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

New cards
74

Decimal

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

New cards
75

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.

New cards
76

Global Variable

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

New cards
77

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.

New cards
78

Array

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

New cards
79

OOP

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

New cards
80

GUI

An icon based interface that the user can interact with.

New cards
81

IDE

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

New cards
82

Event Handler

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

New cards
83

Linear Program Flow Control

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

New cards
84

Branch Program Flow Control

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

New cards
85

While Loop

The code is repeated until the condition becomes false.

New cards
86

For Loop

Loops that repeat a select number of times.

New cards
87

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.

New cards
88

Prototype

A test model of a program.

New cards
89

Input

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

New cards
90

Output

The product created by transforming the inputs

New cards
91

Syntax

The sentence structure in a programming language.

New cards
92

If Statement

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

New cards
93

Case

An if statement with multiple outputs.

New cards
94

Software Development Cycle

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

New cards
95

Structured Programming

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

New cards
96

RAM

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

New cards
97

ROM

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

New cards
98

CPU

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

New cards
99

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.

New cards
100

Operating System (OS)

Software used to control the computer and its peripheral equipment.

New cards

Explore top notes

note Note
studied byStudied by 19 people
... ago
4.5(2)
note Note
studied byStudied by 24 people
... ago
5.0(2)
note Note
studied byStudied by 6491 people
... ago
4.8(23)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 43 people
... ago
5.0(1)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 2 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (46)
studied byStudied by 62 people
... ago
5.0(1)
flashcards Flashcard (36)
studied byStudied by 63 people
... ago
5.0(2)
flashcards Flashcard (66)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (54)
studied byStudied by 72 people
... ago
5.0(2)
flashcards Flashcard (116)
studied byStudied by 193 people
... ago
5.0(3)
flashcards Flashcard (47)
studied byStudied by 15 people
... ago
5.0(2)
flashcards Flashcard (22)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (66)
studied byStudied by 4 people
... ago
5.0(1)
robot