What is a program? Flashcards

1
Q

How do programming languages vary ?

A
  1. Syntax - structure or grammar of the language
  2. Semantics - what it will do when we run it
  3. Speed - how fast it will run
  4. Memory- How efficient is the code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a program ?

A

a collection of instructions that perform a specific task (or set of tasks) when executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a client-side program ?

A

Everything in a web application that is displayed or takes place on the client (end user device).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are examples of client side programming languages

A

Javascript, HTML, CSS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a server side program?

A

A program that runs on a server rather than on the client side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an example of a server side program?

A

C++, Python, Java

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a data structure?

A

Ways of storing collated data, i.e. lists, linkedlists, graphs, red black trees

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a flow control?

A

ways of controlling the flow of a program and how the code runs, i.e. conditionals like IF, THEN, ELSE statements or Loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a Variable?

A

symbolic names for values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a function?

A

blocks of organised and reusable code that can be used to repeat a single and related action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an object orientated programming language?

A

A programming language organised around objects rather than actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What data type is a whole number?

A

int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What data type is a decimal number?

A

float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what command would you use to confirm what data type a value is ?

A

type()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what arithmetic operator is used for integer division?

A

//

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How would you find one number to the power of another

A

** Exponentiation

17
Q

How would you find the modulus?

A

% divides and returns the remainder

18
Q

what is a true or false value

A

boolean

19
Q

What are the comparison operators?

A

==
!=
<=
>=
<
>

20
Q

In one line how would you work out if 4004 is even

A

4004 % 2

21
Q

How to comment lines or one line of code?

A

for single

”"”for multiple

22
Q

What is a function

A
23
Q

What are the parameters a function takes

A