Back to marketplace

SLR 7

No description yet. This curated deck is ready for daily study.

Total cards: 12•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (12)

#1
Front (Question)

Describe two differences between assembly language and high-level language

Back (Answer)

-Ass uses mnemonics -HLL uses English-like words -Ass uses an assembler to convert to machine code -HLL uses a translator to convert to machine code -Ass is a one-to-one conversion to machine code -HLL may produce multiple lines of machine code per line of code -Ass requires more knowledge of the processor/allows direct control of the processor -HLL provides more abstraction/requires less knowledge of the processor

#2
Front (Question)

Describe the advantages of using encapsulation

Back (Answer)

• Reduces the chance of errors • Ensures objects can only be changes in the way intended • Protecting data - can’t be changed accidentally

#3
Front (Question)

Define the term pipelining

Back (Answer)

• One instruction can be fetched while another is being decoded … • … and another is being executed • The output of one process is the input of the next • Concurrent processing of multiple instructions

#4
Front (Question)

Explain one benefit to a charity of using a processor that allows pipelining

Back (Answer)

• More instructions can be carried out in a set amount of time • Increasing the efficiency of the computer

#5
Front (Question)

Give two reasons why in some circumstances programmers will choose to write code in assembly language

Back (Answer)

• Quicker/more efficient to translate • Makes more efficient use of the CPU • The programmer wants direct control over hardware/memory • Code might be written for a specific architecture • Compilers/interpreters may not be available

#6
Front (Question)

Give 4 modes of memory addressing

Back (Answer)

• Direct • Immediate • Indirect • Indexed

#7
Front (Question)

State the meaning of an object

Back (Answer)

Object - instantiated from class

#8
Front (Question)

State the meaning of a method

Back (Answer)

Method - action object performs

#9
Front (Question)

State the meaning of attribute

Back (Answer)

Attribute - value held by object

#10
Front (Question)

An algorithm uses a while loop. State a different type of loop that could be used instead of the while loop

Back (Answer)

Do… until/repeat… until

#11
Front (Question)

Some print jobs can have different priorities. The higher the priority the sooner the job needs to be printed. Describe how a simple program could be changed to deal with different priorities.

Back (Answer)

• Use a different structure e.g. a linked list • …items can be added at different points in the linked list depending on priority • …by changing the pointers to items needing priority • have different queues for different priorities

#12
Front (Question)

Describe two benefits of using an object-oriented paradigm rather than a procedural paradigm.

Back (Answer)

• Code can easily be reused… • …classes can be used in other programs • …inheritance can be to extend upon existing classes • …as a class can be based on an existing class • Easier to maintain…. • ….as classes can be modified or extended • …debugging can be easier as encapsulation limits how attributes are changed. • Code can be more secure… • … as access to attributes can be restricted to being via methods. • Better for coding as part of a team… • …as classes can be distributed between team members.