Module Eight Flashcards
What is a program?
A sequence of instructions for your computer to perform.
What is Pseudocode?
An informal writing style of various programming codes that serve as a guide or step-by-step description of an algorithm, written in plain text.
What is a “End Routine” statement?
When a program reaches the last step of the main routine, it closes instead of going through all the steps again.
In programming what does it mean to “call” something?
To execute a specific piece of code by referencing its name.
In programming what is a subroutine?
A named block of code that performs a specific task and can be called upon to execute that task.
What is a ‘conditional statement’?
A conditional statement only executes if specific conditions are true or false.
Give a single example of a ‘condition statement’.
IF
In programming what is a variable?
A piece of memory that stores a value that can be changed.
In programming what is a function?
A block of reusable code that performs a specific task, usually taking input values and producing a single output value. (We can assume that functions are provided as features of the programming language).
What three categories are programming languages divided into?
- Compiled, 2. Interpreted, 3. Query.
What is Machine Code?
Instructions converted to strings of 1’s and 0’s for the CPU to process.
Give four examples of Compiled Programming Laguages.
C++, C#, COBOL, PASCAL
- Translates source code into Machine code by a compiler.
- A compiled program runs very quickly.
- Is platform (CPU) specific.
- The source code must be recompiled in order to run on a new program.
Give three examples of interpreted/scripted languages.
JavaScript, Perl, and Python.
Three things about Interpreted Programming.
- Program runs slower than compiled code.
- Likely runs on any platform provided there’s an interpreter.
- Runs on an interpreter.
What does an interpreter do?
It converts code into machine code at runtime.
Five things about Assembly Language.
- Represents machine code in human-readable text.
- Typically specific to a particular hardware architecture. This is in contrast to compiled, interpreted, and query languages.
- Even though its written in human-readable text, it’s still very hard to follow.
- Usually written by a specialist for a very specific piece of hardware.
- Not a language I’d use to start a new development project.
Is a Markup Language a programming language?
No, instead it’s a means of making data in a document accessible to a program.
Give two examples of a Markup Language.
- XML
- HTML
What does HTML stand for?
Hypertext Markup Language.
HTML !DOCTYPE
A declaration that informs the web browser what type of document to expect. This tag does not use a close element.
What does writing <html> do?
This top-level parent element identifies the type of document. All other tags are nested within this one.
Two things about <body>
- Indicates the body of the document.
- This is what the web page viewer sees.
In HTLM what does <p> mean?
It indicates that the content is a paragraph-level block.