CSCI Final Review Flashcards
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