Exam Questions I lost marks on Flashcards

1
Q

describe the purpose and HTML and CSS [4]

A

HTML defines the structure of the webpage
HTML defines the content of the webpage

CSS defines the style/ appearence
using selectors like classes and IDs
can be implemented into the HTML externally of from within

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

Explain one advantage of client side processing to either the customer or the company [2]

A

reduces load on the server
so company have to spend less on processing power

No need to send data to server and wait for a response
website will act quicker for the user

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

describe how this circuit can be modified to add two 4 bit binary numbers (diagram of half adder)[4]

A

this circuit adds two bits together
output 1 is the sum and output 2 is the carry bit

two half adders can be combined
with an OR gate
to form a full adder

4 full adders can be combined
carry bit is joined to the next one

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

compare the efficiency of a binary tree to a linked list when searching through data [2]

A

binary tree is more efficient
dont need to check every value

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

name two factors that affect a webpages page rank [2]

A

incoming links links to the webpages from other pages
page rank of those other pages

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

how is the accumulator used when using the command BRP [2]

A

value in the accumulator is compared to 0
if the number is greater than 0 branch to the jump point if not then then the program is continued

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

describe what is meant by a uility [2]

A

any two from
utility performs a specific task
used to maintain the computer system
any valid example

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

Describe one advantage of storing CSS in a separate file [3]

A

keeps content and formatting separate
saves time
ensures consistency
can affect the whole page

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

insert diagram of a many to many ERD suggest why this structure isnt suitable [1]

A

many to many relationships not allowed in 3NF

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

define class [2]

A

a template that defines methods and attributes used to make an object

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

a program uses a library explain why a linker would have to be used after compilation [3]

A

user running the program wont necessarily have the library installed on the device
so the library must be included in the final executable
linker combines the files

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

Describe why two’s complement may be preferable to sign and magnitude [2] (previous question adding two numbers)

A

hard to do calculations with sign and magnitude
but easy in twos compliment

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

video game company making their own OS
Describe two functions an operating system might be expected to carry out on the console. [4]

A

manage the peripherals/control hardware like controllers and graphics card
provide a user interface for the user to load games
act as a platform for the software to run
control access have their own accounts and scores and stuff

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

when checking if files are duplicates
Explain two characteristics you would look for in a hashing algorithm for this purpose [4]

A

hash can be calculated quickly and alot of files need to be hashed to be quicker than a bitwise calculation

There is a low chance of collisions reduce the risk of different files being flagged at the same

the hash result needs to be maller than the input to speed up comparisons and save memory

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

name two similarities between Trees and graphs [2]

A

both use nodes to represent data
both use edges to represent connections of data
both are dynamic data structures

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

name two differences between trees and graphs [2]

A

graphs can have cycles while trees cant have cycles
graphs can be bidirectional while tree can only be traversed down
graphs can be weighted

17
Q

describe how you would remove a node from a tree [3]

A

traverse the tree to find the node being removed
add node to empty node list
change the parent nodes pointer to point to the nodes child (prioritise left if possible)
change the child node’s pointers to the other children or null values

18
Q

describe adding a new node to a tree [3]

A

create new node
traverse the tree to find its parent node
add pointer from parent node to child node
set new nodes pointers to null

19
Q

compare two differences between recursion and iteration [4]

A

Recursion uses more memory
iteration uses less

recursion declares new variables at each function call
iteration reuses the same variables

recursion can run out of memory space
iteration cant run out of memory space

recursion can express a solution more elegantly (fewer lines of code)
iteration uses more lines of code

recursion will be self-referential
while iteration wont be

20
Q

explain why a variable might be passed in by reference instead of byvalue [2]

A

by reference will change the actual contents of the variable
while by value creates a copy and edits that (original is left intact)
byvalue is local to the function
byreference uses less memory

21
Q

describe one difference differences between get and set methods [2]

A

get methods allow attributes to be accessed and returns a value
set methods allow variabels to changed

i know that two but the exam question was describe one and thee were the marks

22
Q

How does optical storage work

A

Uses pits and lands
to represent 1s and 0s
a laser is used to read it

23
Q

define the term Abstraction [4]

image above of a map

A

idea of separating ideas from reality
only using relevant detail
representation of reality
symbols to show real-life features
buildings and trees left out

24
Q
A