Exam mistakes Flashcards

1
Q

Why is Harvard Architecture preferred over Von Neumann

A

Instructions and data are accessed simultaneously

Instructions and data stored in parallel, so reduces ‘bottleneck’ problem

Avoids possibility of data being executed as code (which is one method that can be exploited by hackers)

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

When normalising a floating point number, when should the exponent be positive?

A

When you’re moving the decimal point to the left (so the exponent increases to accomodate for it)

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

When normalising a floating point number, when should the exponent be negative?

A

When you’re moving the decimal point to the right (so the exponent decreases to accomodate for it)

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

What effect does increasing the mantissa have?

A
  • Decreases exponent, so reduces range but increases precision
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What effect does increasing the exponent have?

A
  • Decreases mantissa, so increases range but decreases precision
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How many bits in a byte?

A

8

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

What are the steps required in converting from floating point to decimal?

A

Find value of exponent
Shift mantissa by bits of exponent
If mantissa is negative, convert to a positive value

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

How to find absolute error?

A

(intended value) - (actual represented value)

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

How to find relative error?

A

absolute error/intended value x 100

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

How do you create a table in SQL

A

CREATE TABLE tablename (

)

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

How do you add a column to a table?

A

ALTER TABLE tablename
ADD columnname Datatype

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

How do you delete a column in a table?

A

ALTER TABLE tablename
DROP COLUMN columnname

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

How do you change the datatype of a column?

A

ALTER TABLE tablename
MODIFY COLUMN columnname newdatatype

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

How do you insert values into a table?

A

INSERT INTO tablename(column1, column2…)
VALUES(value1, value2, …)

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

How do you update a record

A

UPDATE tablename
SET column1 = value1, column2 = value2 etc
WHERE columnX = Value

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

How do you delete a record

A

DELETE FROM tablename
where columnX = value

17
Q

What are the conditions for Vernam Cipher?

A

The key must be (at least) as long as the data to be encrypted/plaintext;
The key must not be reused // key must only be used once;
The key must be (truly) random;
The key must be kept securely / not revealed / only known by user(s);

18
Q

What are the principles of operation of an optical disk?

A
  • A high powered laser is used to burn “pits” into the disc. Areas which have not been pitted are called lands. Pits are represented with 0s and the transition between a pit and a land is represented with a 1.

A low powered laser is used to shine light onto the disk. It measures the intensity of the light that has been reflected back. Areas which light has not been reflected well are pits, and areas which light has been reflected well are lands.

other forms of discs such as CD RW may use a high powered laser to burn a spot, and then polarise the spot with a magnet before cooling or using a phase change alloy.

19
Q

How can a server’s performance be increased?

Talk about:
Hardware improvements
Network design
Database design and software

A

Hardware improvements
- More processor cores (more instructions can be executed simulataneously)

  • Use SSD over HDD (Faster read write speed)
  • Increase address bus width and data bus width, word lines

Network improvements:
- Use wired network over wireless network
- Use star topology
- Use NICs with high data transfer rate

Database design and software
- Normalise database to 3NF
- Software should use efficient searching algorithms
- Software should be compiled

20
Q

Why is technology making it difficult for legislators to prosecute cyber criminals?

A

Criminals can hide their location/use VPN, hide MAC address, and can maintain anonymity

Tech evolves quickly so more new types of crime becoming possible

Global nature of Internet means crimes may be committed in one country from outside its direct jurisdiction

21
Q

How does increasing data bus width improve processor performance?

A

Increases the amount of data that can be transferred at one time

22
Q

In this SQL query querying two tables, what are the mistakes? :

SELECT VetForename, VetSurname
FROM Surgery, Vet
WHERE Town = Torquay

What other database question mistakes could be there

A
  1. ‘Torquay’ is a string and so should be in quotations
  2. There is no join clause linking the two tables that are being searched

Datatypes being referred to before the identifier, no data types for some entities, etc