paper 1 Flashcards

1
Q

how do you convert from binary to decimal?

A

You have to use a table that goes 1,2,4,8,16,32,64,128 to put the binary digits into and add them to get the decimal

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

convert 10100101 to decimal

A

its 165

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

how do you convert from decimal to binary?

A

You have to use a table that goes 1,2,4,8,16,32,64,128 to minus the biggest digit in the table as you go and represent this in 1’s and 0’s

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

convert 113 to binary

A

1110001

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

how do you convert from hexadecimal to binary, and then to decimal value?

A

you first seperate the two digits and then convert them separately into binary, you then put that binary together and convert all of it into decimal

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

convert AF to binary then to decimal

A

the binary is 10101111 an the decimal is 175

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

how do you add in binary?

A

you convert both binary digits to decimal, then you add them and convert back again, or you can add them and carry 1 over if there’s more than one in a column

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

add 1011 and 0111

A

its 10010

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

order these, Nibble, Terabyte, Byte, Gigabyte, Megabytes, Kilobyte,Bit

A

bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte

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

what is an algorithm?

A

A set or rules or instructions that a computer/program has to follow

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

what is a variable?

A

An assigned data that can be named and changed

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

what is selection?

A

A question asked by the computer to be decided based on the input, that will output and answer as true or false

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

what is nested selection?

A

if 1>0:

if 1>0:

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

what is abstraction?

A

It involves filtering out – essentially, ignoring - the characteristics 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
15
Q

what is validation?

A

Validation is an automatic computer check to ensure that the data entered is sensible and reasonable. It does not check the accuracy of data.

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

Describe a simple validation routine that could be used in a program?

A

to check that a password is 6 characters you can use an if or while statement to output a boolean statement

17
Q

Explain why code written in high level language must be translated into machine code

A

so that it can be executed by the cpu

18
Q

what translator would i use to convert assembly code into machine code

A

assembler

19
Q

what would i use to convert a high level language (like C,C++) into machine code

A

Compiler

20
Q

Explain the type of translator compiler

A

Compilers are used to convert high level languages (like C, C++ ) into machine code .

21
Q

Explain the type of translator assembler

A

Assembler are used to convert assembly language code into machine code.

22
Q

Explain the type of translator interpreter

A

An interpreter is a computer program which executes a statement directly (at runtime).

23
Q

what is assembly language

A

An assembly language is a low-level programming language for microprocessors and other programmable devices. It is not just a single language, but rather a group of languages. An assembly language implements a symbolic representation of the machine code needed to program a given CPU architecture.

24
Q

what is a character set

A

a list of characters that are assigned to numbers

25
Q

what is unicode

A

a character set which contains every character from every language

26
Q

how far is unicode the same as ascii

A

they are the same up to the number 127

27
Q

what is RLE (run length encoding) frequency/data pairs.

A

a way to simplify binary (machine code), 110001000 would become 21 30 11 30, as it first says how many of that number there is and then what the number is

28
Q

what would 1011111011000 be in RLE (run length encoding) frequency/data pairs.

A

11 10 51 10 21 30

29
Q

what would 51 60 11 20 be when expanded back into binary

A

11111000000100

30
Q

Explain the Von Neumann architecture

A

His computer architecture design consists of a Control Unit, Arithmetic and Logic Unit (ALU), Memory Unit, Registers and Inputs/Outputs. Von Neumann architecture is based on the stored-program computer concept, where instruction data and program data are stored in the same memory.

31
Q

what is an embedded system

A

An embedded system is a computer system with a dedicated function within a larger mechanical or electrical system, often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts.