Computing Paper 1 Flashcards

1
Q

What Is An Algorithm?

A

An algorithm is a set of instructions for the computer to follow

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

What Is Abstraction?

A

Abstraction is the process of filtering out – ignoring - the characteristics of patterns that we don’t need in order to concentrate on those that we do.

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

What Is The Purpose Of A Simple Algorithm?

A

To Make It Easier For The Programmer To Program The Program

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

Can More Than One Algorithm Solve A Problem?

A

Yes

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

What Are The Five Main Data Types?

A

Boolean, Float, String, Integer, Character

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

How Are Subroutines Used In Programs?

A

They Are Used So If The Programmer Wants To Use The Same Function More Than Once They Don’t Have to Code it Again And Again.

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

What is a Data Structure?

A

When You Store Data In Such A Way That It Can Be Accessed Easily And Efficiently

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

How Are Lists (Arrays) Used In Programs?

A

They Are Used To Concentrate Data Of The Same Type.

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

What Is The Definition Of Validation

A

It Is When The Computer Checks to see if the data is viable or not.

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

What are the features of a low-level programming language?

A

A low-level programming language is a programming language that provides little or no abstraction from a computer’s instruction set architecture—commands or functions in the language map closely to processor instructions

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

What are the features of a high-level programming language?

A

High-level languages deal with variables, arrays, objects, complex arithmetic or boolean expressions, subroutines and functions, loops, threads, locks, and other abstract computer science concepts

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

Why must code written in a high level language be translated into machine code?

A

As high level languages are written in such a way that it is easier to use, it must be translated into machine code so that the CPU can understand it.

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

What are the three common types of translator?

A

Interpreter, Compiler, Assembler

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

What does a compiler do?

A

It translates the entire program and reports any problems it encounters.

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

What does an interpreter do?

A

Translates the program line by line, and reports the error when it encounters one

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

What does an assembler do?

A

It translates machine code into high-level code.

17
Q

What is the point of validation?

A

To make sure that the user’s input is the data type that you want in your program

18
Q

Why should extreme and invalid data be used to test a program?

A

So that you can see how it reacts to that data.

19
Q

Why must code written in high level language be translated into machine code?

A

Because a processor cannot read the code.

20
Q

What is the main difference between unicode and ASCII?

A

Unicode can represent characters from all around the world whereas ASCII can only represent the latin alphabet.