Fundamentals of Programming Concepts and Techniques

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

1/90

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.

91 Terms

1
New cards

Coding

giving commands to a computer

2
New cards

Precondition

what must be true before a function is called

3
New cards

Postcondition

what should be true after a function is called

4
New cards

Decomposition

breaking code down into smaller parts that are easy to understand

5
New cards

Top Down Design

breaking down a problem into smaller problems

6
New cards

Comment

text used to help another reader understand the code in a program

7
New cards

Abstraction

to reduce complexity Ex: Creating a function

8
New cards

API (Application Programming Interface)

a set of tool for building software (program)

9
New cards

Bug

a mistake in a program

10
New cards

Conditional

a statement that returns a true or false answer

11
New cards

Syntax

the rules of a programming language

12
New cards

Debugging

searching for syntax errors

13
New cards

Algorithm

a step by step set of instructions to solve a problem

14
New cards

Iteration

a specified number of repetitions

15
New cards

Program Quality

the quality of a program is based on its level of efficiency and clarity

16
New cards

Pseudocode

writing out our algorithm in English-like code to help us figure out how to write the program

17
New cards

Parameter

an input into a function

18
New cards

Control Structures

a block of code that determines the flow of execution based on, certain conditions Ex: if statement, if-else statement, for loop, and while loop

19
New cards

Programming Language

instructions given to a computer Ex: Python, Java, JavaScript, BASIC, Ruby, Perl, C, C++

20
New cards

Compiler

a special program that converts a computer program into binary machine code

21
New cards

Program

a set of executable algorithms written using a programming language

22
New cards

Variable

something that stores information in a program so that it can be used later

23
New cards

String

a variable type that consists of text, abbreviated str

24
New cards

Integer

a variable type that consists of a positive or negative whole number, abbreviated int

25
New cards

Float

a variable type that consists of a decimal, abbreviated float

26
New cards

Variable Type

a variable value that is a string (text), integer, or float (decimal)

27
New cards

Assignment Statement

a line of code that assigned a value to a variable

28
New cards

Concatenation

the operation of combining two or more strings or sequences into a single string or sequence

29
New cards

Input function

a function that prints a prompt and retrieves text from the user

30
New cards

Function composition

nesting of functions that are evaluated from inside out Ex: number = int(input("Number: "))

31
New cards

Mathematical Operators

operators that apply operations on numeric values Ex: + Add, - Subtraction, x Multiplication, / Divide, ** Exponentiation, % Modulus (Remainder), - Negation

32
New cards

Canvas

the visual output area of a program. The coordinate system is applied to it with (0,0) being the top left point. Positive x-values move to the right of the canvas and positive y-values move down the canvas.

33
New cards

Mouse Event

when a user clicks or moves a mouse

34
New cards

Callback Function

a function that gets called by your program in response to some event

35
New cards

Boolean

a variable type where something can be True or False

36
New cards

Logical Operators

allow one to connect and modify Boolean expressions

37
New cards

Comparison Operators

allow values to be compared

38
New cards

One equal sign

Mathematical Operator that is used to assign a value to a variable. Ex: my_number = 5

39
New cards

Two equal signs

Mathematical Operator that is used to compare values or variables. Ex: if my_number == guess_number

40
New cards

if statement

a programming construct that allows a program to behave differently, depending on circumstances

41
New cards

Key Event

when the user does something with the keyboard, like pushing down a key or releasing a key

42
New cards

for loop

a programming construct that allow you to execute code a predetermined number of times

43
New cards

while loop

a programming construct that allows you to repeatedly check a condition and execute code

44
New cards

Function

code that allows a program to be broken into smaller parts and makes it easier to understand

45
New cards

Return Value

the value that a function returns to the caller when the function is executed

46
New cards

Namespace

the collection of variable names that exist at a certain point in your code

47
New cards

Scope

the place where a variable exists within a program

48
New cards

Exceptions

Runtime errors in a program. By default, they stop the program.

49
New cards

try and except

a programming construct that can be used to gracefully handle exceptions so that a program can continue in spite of them

50
New cards

Data Structures

programming tools used for organizing and accessing different types of data efficiently

51
New cards

Tuples

a heterogenous, immutable (unchangeable) data type that stores an ordered sequence of things Ex: my_tuple = (1, "a", 5)

52
New cards

Lists

a heterogenous, mutable (changeable) data type that stores an ordered sequence of things Ex: my_list = [1, 4, 7, 10]

53
New cards

Concatenate

to link together

54
New cards

Index

the position of an element in a tuple or list. The first element has an index of 0. Ex: my_list[0] is 1, my_list[1] is 4, my_list[2] is 7, and my_list[3] is 10.

55
New cards

Simulation

a program that simulates some real-world situation

56
New cards

Data Abstraction

The process of simplifying complicated data into manageable chunks

57
New cards

Encoding

the process of converting data from one format to another

58
New cards

Decimal Number System

a base 10 number system that has 10 digits, 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9

59
New cards

Binary Number System

a base 2 number system that has only two digits, 0 and 1

60
New cards

Hexadecimal Number System

a base 16 number system with 10 digits and 6 letters, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

61
New cards

Bit

a binary digit, a 0 or 1

62
New cards

Bits and Values

1 bit -> 2^1= 2 possible values; 3 bits -> 2^3= 8 possible values; n bits -> 2^n possible values

63
New cards

Pixels

the building blocks of digital images that is the smallest element of a digital image

64
New cards

RGB Color Encoding

each pixel is encoded with a certain amount of the colors red, green, and blue, using numeric data in tuple. Each color receives a value in the range 0-255, which means that each color can be represented by 24 bits, 8 bits for each of the three color channel values

65
New cards

The Internet

a global system of computer networks that allows people to communicate, work together, share information, and so much more

66
New cards

Network

a group of two or more computer systems linked together

67
New cards

Bandwidth

the maximum possible bitrate of a connection

68
New cards

Bitrate

how many bits per second a connection upload or download

69
New cards

Latency

the time it takes for data to travel to and from another computer

70
New cards

IP Address

a unique address assigned to a device that uses the internet Ex: 93.184.216.34

71
New cards

Uniform Resource Locator (URL)

the location of a resource on the internet, which consists of a domain and path

72
New cards

Domain Name System (DNS)

a system that translates easy-to-type names into IP addresses

73
New cards

Routing

the process of sending data between two computers using a particular route through a sequence of routers

74
New cards

Redundancy

multiple paths that exist between two points, which create a fault tolerant system

75
New cards

Packets

the units of data that are sent over the internet

76
New cards

Hyper Text Transfer Protocol (HTTP)

a protocol that standardizes the language for talking to web servers to send and receive web resources

77
New cards

Distributed Denial of Service Attack

making a web server crash by spamming it with many requests (DDoS)

78
New cards

DNS Spoofing

feeding a computer the wrong IP address to a false website

79
New cards

Phishing

an email from a somewhat familiar address requesting for you to click on a link

80
New cards

Good Security Protocols

Use strong password and don't repeat password between websites; Install security updates; Think twice before clicking a link or installing a program

81
New cards

Types of Copyright Licenses

All rights reserved; Some rights reserved; Public domain

82
New cards

data

information (number, words, measurements, observations, ect) that is in a computer readable form

83
New cards

metadata

data about data (ex book’s meta data title, author, publisher, copyright data, table of contents.)

84
New cards

data visualization

using charts, graphs or images to visualize complex data

85
New cards

ways to collect data

surveys, sensors, transactions data from credit cards, websites storing information about you, crowdsourcing

86
New cards

survey vs crowdsourcing

survey administrators can control the direction of the feedback whereas crowdsourcing is more open ended

87
New cards

data sanitation

throwing out data that is not well formatted

88
New cards

cookie

small blocks of data created by a web server while a user is browsing a website, which allows the website to track, personalize, save information about each user

89
New cards

misleading visualization

truncated y axis: not starting from 0, omitting data: leading out data points to make points a fake trend, breaking conventions to trick the viewer

90
New cards

navigator

one of the role for pair programing that consists of reviewing the code and thinking of strategic alternatives

91
New cards

asynchronous input

the user is prompted for an input on the console and not form a pop up window EX:async function userChoice(){}