






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Interpreted language - Answers - interpreter reads each line of code, converts it to machine language (1s, 0s) and then executes it Syntax - Answers - rules for writing lines of code Callbacks - Answers - a piece of code that is executed when an event happens; adds interactivity to the page Variable - Answers - a named value Functions - Answers - allow us to do the same thing two times or do something in a general way that can work on any values we provide Loops - Answers - allows us to do a set of steps several times Counting variable (in a loop) - Answers - counts how many times we've done the loop Codeblock - Answers - program that runs javascript right in the browser; special in that it allows you type your own code and then run it For loops - Answers - when we know how many times we want a loop to run While loops - Answers - when we want the loop to run until something special happens Infinite loop - Answers - often used for servers that need to listen for incoming connections: while (true) listen { } Function - Answers - set of code we want to use many times but with different values HTML DOM (Document Object Model) - Answers - a way to represent the parts of a document; acts as a map to any given element; relationships among the elements are shown; used to find things in an HTML document ID attribute - Answers - allows us to work directly with an HTML tag and its contents from javascript Number function - Answers - converts what is in text box to a number to be used in javascript String - Answers - a group of characters
Substring - Answers - a part of a longer string Array - Answers - an ordered collection in which each item has an index associated with it, which lets us set or get the item at that index CSV - Answers - Comma separated value (string) Javascript libraries - Answers - useful place several functions together into a single file; collection of functions that may be added to a webpage using a with what is in [1[, this continues until we run out of unsorted items; o(n)^2 ...slower than insertion sort Bubble sort - Answers - compare-and-swap algorithm; start at front of array and compare adjacent values, if the values are in reverse order (6,2) swap them so they are correct (2,6), in each pass through the array, the largest value bubbles to the top so we look at one fewer values each time; o(n^2)... Worst of the lot Merge sort - Answers - divide and conquer method; array is repeatedly split into smaller arrays, small arrays are then sorted and merged, as the merge happens, the small already sorted arrays are combine in the proper order; decent performer O(nlog2n) Linear searches - Answers - start at the top of the list and look at each item in turn to see if it is the sought after item; thus on it's performance is O(n) but on average is O(n/2) Hashed searhes - Answers - data is input to a has function, which returns an index value, index value can be used as an index into an array; performance is excellent (has function gives us the index into the array, so there's only one step) it's o(1) (constant time) and independent of n Hash - Answers - a way to generate a unique number for a data item Collision - Answers - when two data items generate the same hash value Binary searching - Answers - start at the top of the tree and move left or right depending on whether the data we are looking for is larger or smaller than the item we are currently looking; trees are built from a source set of data; O(log2n) so performance is very fast Balanced tree - Answers - has equal number of items on each side Drop shipping - Answers - manufacturers allow you to send them costumer information and they will pack and ship items for you for a fee Consulting - Answers - selling services; take a fee for doing something for someone Pay-per-click - Answers - set a price each time someone on your site clicks on an add, typically rates are higher than PPI as an active click is basically a generated sales lead Pay-per-impression - Answers - strictly a set price for given number of appearances of the ad on your page; usually the price is set in units of 1,000 impressions CPM (impressions per thousand) SEO Search Engine Optimization - Answers - page analyzed for keywords and relevance before sending ads
Types of open-source software to set up your own online store - Answers - zencart, magento, pretashop Makers - Answers - formerly called hobbyists, someone who is interested in making things, often with a technological bent (robotics, 3D printing, micro computing) STEM - Answers - Science Technology Engineering and Math Robotics - Answers - requires programming skills and mechanical know-how Dean Kamen and Woodie Flowers - Answers - developed FIRST robotics in early 90's as a way to foster interest in robotics FIRST - Answers - For Inspiration and Recognition in Science and Technology; international competition based organization that runs events for high-school aged teams similar to a sports league; founded on to main principles 1. Gracious professionalism 2. Coopetition Kim 1 - Answers - computer sold in the mid 70's, memory of 1024 bytes and programmed by entering hexidecimal codes into the keyboard Arduino - Answers - open-source hardware computer in very small form factor; programmed in action-oriented language Raspberry pi - Answers - more sophisticated than Arduino, runs a version of Linux OS and comes out of the box with more ports and more functionality (USB ports and video ports); can do everything you could with a regular computer Operating system - Answers - program that controls the other programs; hides all the details of the actual hardware from running programs and provides access to hardware Abstraction - Answers - hides details of the actual hardware from running programs and provides access to hardware CPU - Answers - hardware component that executes the programs Multitasking - Answers - run hundreds of programs at what appears to be the same time using one CPU Multiprocessing - Answers - contain more than CPU or CPU cores and multitask on each of these cpus/cores Scheduler - Answers - chooses which programs runnext Process - Answers - a program or a part of program
makes porting the OS to different hardware simple as only this need to be rewritten and the rest of the OS code remains the same Virtualization - Answers - can abstract entire operating system and turn into a user program; appears to this thing and the programs running inside them to be real OS on real hardware Parallels and vmware - Answers - popular virtualization products Hypervisor - Answers - takes care of giving all the vms (virtual machines) fair access to limited physical resources MS Windows - Answers - evolved from MS-DOS (Microsoft Disk Operating System), Appel OS/X - Answers - evolved from nextstep (developed in mid 80's under Steve Jobs, based on a Unix variant called Berkesly Standard Distribution (BSD); unix itself has roots in the Bell Labs in the 70's; graphical interfaces sits on top of the OS but is still closely connected, a version of this runs on phones and tablets called ios Linux - Answers - loosely based on OS MINIX (used to teaching operating systems in the 80's); completely open-source free operating system released in 1991 and maintained by volunteers, is Unix-like but is distinct from it, powers vast majority of of the world's web servers, graphical interface is very loosely coupled (several choices GNOME and KDE), many users don't use the GUI at all but instead run system from the command line Google Chrome OS - Answers - based on Linux and the open-source of Chromium OS; designed to be think web-client with most storage and processing taking place in the cloud; closely tied to google applications such as Docs and Dive; bc it's so think it can run on very inexpensive hardware Incognito/private browsing - Answers - DOES NOT: hide sites visited from the network provider, encrypt your sessions, hide your identity from the sites you visited DOES: does not save sites you visit in your browser history or store cookies from that site Ed Snowden - Answers - former CIA employee and Booze Allen contractor, working on NSA contract and copied thousands of highly classified documents from NSA systems in 2013 and delivered documents to journalists and film maker; he currently lives in Moscow Geen Greenwald, Ewen macskill, Laura Poitras - Answers - journalists and filmmaker Ed snowden delivered information to Patriot Act - Answers - signed into law 25 working days after 9/11, 363 pages long, provides broad surveillance powers to multiple government agencies; every president since has renewed the act
Foreign Intelligence Surveillance - Answers - authorized under the FIS Act or FISA, hears requests from FBI, NSA, etc for warrants to authorize surveillance Stingrays - Answers - fake cellphone towers used by law enforcement; records everything about a call then relays the traffic back to public cell network; use does not require a warrant HTTPS - Answers - encrypts communication between browser and website Password managers - Answers - generate long, random passwords for each site and will fill them in automatically, use a passphrase to open the app Two factor authentication - Answers - log in using password, then second (often type a code sent to phone) is required TOR - Answers - The Onion Router - used to anonymize network traffic TAILS - Answers - linux distribution that runs off a USB key to provide encryption and anonymity by default Duckduckgo - Answers - a search engine that does not store data about searches What's APP - Answers - encrypts messages, stores metadata, contacts not subject to encryption and are scanned and stored Allo - Answers - encrypted, but google holds the key and google by default scans and reads all messages Imessage - Answers - end to end encryption, metadata stored, but apple swears it refuses government access to it Signal - Answers - open source, basis of what's app, encrypted, no metadata stored Deterministic - Answers - given an input we can always predict the output Compiled languages - Answers - do all the work ahead of time; translate the human readable code into machine language, store it, the execute it at some later time Examples of compiled languages - Answers - C++. FORTRAN, COBOL, P/L Interpreted languages - Answers - translate the human readable code into machine language one line/statement at a time while the program is running Examples of interpreted languages - Answers - PYTHON, BASIC
Solid-state-drives SSD - Answers - has no moving parts - all electronic, has huge advantage for speed because no need to swing an acuator arm around and hunt for data on a spinning disk