What is a program? Flashcards
How do programming languages vary ?
- Syntax - structure or grammar of the language
- Semantics - what it will do when we run it
- Speed - how fast it will run
- Memory- How efficient is the code
what is a program ?
a collection of instructions that perform a specific task (or set of tasks) when executed
What is a client-side program ?
Everything in a web application that is displayed or takes place on the client (end user device).
What are examples of client side programming languages
Javascript, HTML, CSS
What is a server side program?
A program that runs on a server rather than on the client side
What is an example of a server side program?
C++, Python, Java
What is a data structure?
Ways of storing collated data, i.e. lists, linkedlists, graphs, red black trees
What is a flow control?
ways of controlling the flow of a program and how the code runs, i.e. conditionals like IF, THEN, ELSE statements or Loops
What is a Variable?
symbolic names for values
What is a function?
blocks of organised and reusable code that can be used to repeat a single and related action
What is an object orientated programming language?
A programming language organised around objects rather than actions
What data type is a whole number?
int
What data type is a decimal number?
float
what command would you use to confirm what data type a value is ?
type()
what arithmetic operator is used for integer division?
//
How would you find one number to the power of another
** Exponentiation
How would you find the modulus?
% divides and returns the remainder
what is a true or false value
boolean
What are the comparison operators?
==
!=
<=
>=
<
>
In one line how would you work out if 4004 is even
4004 % 2
How to comment lines or one line of code?
for single
”"”for multiple
What is a function
What are the parameters a function takes