CSCI Final Review Flashcards
(43 cards)
What are html tags?
Tags are the bracket parts ex : <p> </p>, <img></img>
What are attributes?
Parts that describe html tags. Things like width=400 or height=500, src=someimg.jpg
What is CSS?
Styles that make things look pretty. Ex.: style=”float:right”
How do you center an image to a webpage that is able to pass HTML 4.01 validation?
text-align:center attribute or style=”float:center”
If we have”n” bits, where n≥0 is an integer, what is the maximum number of different symbols we can encode?
2^n buts where n=0 to infinity
If we need to encode 37 different symbols using binary, what is the minimum number of bits needed?
2^6 bits=64 bits. (guess and check)
(100111)2=(___)10
79
(97)10=(____)2
1100001
What is the TOIBE index?
A list of the most popular programming languages
Most typical life cycle of a program?
- Describing the Problem (problem statement)
- Making a Plan (algorithm development-can be represented using pseudocode)
- Coding (Speaking the language of the computer)
- Debugging (getting rid of errors)
- Testing and documentation (finishing the project)
What is the difference between an algorithm and a program?
Algorithm: step by step descriptions of such paths which a problem solver needs to follow to achieve the outcome. A good algorithm will have the ability to solve the problem with high efficiency (minimum time and computing effort)
Program: a way to explain the algorithm to a computer in different programming languages that a computer can understand, so that the algorithm steps can be actually executed by the computer, hence to achieve the desired outcome and solve the problem.
What is a program?
A way to explain the algorithm to a computer in different programming languages that a computer can understand, so that the algorithm steps can be actually executed by the computer, hence to achieve the desired outcome and solve the problem.
What is an algorithm?
Step by step descriptions of such paths which a problem solver needs to follow to achieve the outcome. A good algorithm will have the ability to solve the problem with high efficiency (minimum time and computing effort)
What is pseudocode?
A loose framework of steps that help map out how a problem is to be solved and the steps that need to be taken; not syntactically correct.
What is compiling?
Translating from a higher level of programming language to a lower level one that is closer to binary
What is debugging?
Looking for, finding, and correcting errors.
What is a logical error?
A program runs but does not execute properly
What is a compilation error?
Improper usage of syntax that prevents the compiling process and doesn’t allow a program to run
What is an IDE?
Integrated Development Environment: software that is used to assist in the creation of other software
What is a popular free IDE that was discussed in class?
Eclipse: has an interpreter function and a compiler
What are the 5 layers of the protocol stack used for network communication?
- Application: url turned into a get HTTP request to get IP address
- Transport: TCP or UDP requests are broken into packets
- Network: each packed is given a source IP, a destination IP, and a data psrt
- Link Layer: each part gets a hardware address or MAC address which is found using the ARP (Address Resolution Protocol)
- Physical layer (bits on a wire)
What are the 3 typical layers of a computing system?
Application Layer
Operating System Layer
Hardware Layer
What is the CPU fetch-execute cycle?
Fetches instruction from RAM or Registers (initially fetched by Control Unit) then instructions are interpreted by Control Unit (decoded), and then transferred to the ALU for computation, then transferred to the accumulator, and thens end off to either the register to back to the RAM depending on what the instructions dictate. (This last step is determined by the control unit)
What are the main parts of the CPU?
Control Unit
ALU
Registers