Paper 1 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the difference between a variable and a constant?

A

Variable - The value of the data item can change during the program’s execution

Constant - The value of the data item cannot change during the program’s execution

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

What are the characteristics of procedural programming paradigms?

A

A program that consists of step by step instructions

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

What are the characteristics of object orientated programming paradigms?

A

A program that consists of objects within classes and each object has its own data

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

What is a programming paradigm?

A

It refers to different styles of programming

Eg OOP, Procedural

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

Why is it good practice to have local variables?

A
  • Decreases the complexity of the code

- Reduces the chance of accidently changing the variable value later in the code

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

What are the advantages of the structured approach?

A

-Easier to debug
-Easier to maintain
-Allows teams to work simultaneously
-Saves time
Reduces bugs

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

What is the structured approach to program design and construction?

A

The process of taking a big problem and breaking it down into smaller problems

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

Why is object oriented paradigms used?

A

Used to structure a software program into simple, reusable pieces of code blueprints (usually called classes), which are used to create individual instances of objects

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

What is a class?

A

A class defines methods and attribute fields that capture the common behaviours and characteristics of objects

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

What is an object?

A

Objects based on a class are created using a constructor, implicit or explicit, and a reference to the object assigned to a reference variable of the class type

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

What is mod and the C# equivalent?

A

Mod is the remainder from division

%

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