Font size
WorksheetsJ277 End of Term 1
Total questions: 168
Worksheet time: 2hrs 30mins
The role of the ALU is ...
to carry out calculations
to carry out logic comparisons
to carry out calculations and instructions
to carry out calculations and logic comparisons
Which of the following is not done by abstraction?
Identifies essential details
Disregards non-essential information
Breaks the problem down into smaller tasks
Which of the following is not done by decomposition?
Allows multiple people to work on the problem together
Disregards non-essential information
Breaks the problem down into smaller tasks
When drawing a dog, which of the following characteristics is non-essential?
Dogs have 4 paws
Dogs have fur
Dogs have brown fur
When designing a building that must be accessible for wheelchairs, which of the following characteristics is non-essential?
Number of doors
Number of walls
Number of wall paintings
One advantage of abstraction is that it means no mistakes can be made
True
False
You could use abstraction to replace specific objects with simple shapes
True
False
This is a good example of decomposition
Sit down
Do homework
True
False
Decomposition allows each task to become _______
More manageable
Easier
Quicker
Decomposition allows the entire task to be completed as _____
A Team
A Whole
Quickly as possible
Abstraction and Decomposition are separate concepts, you would usually choose to do either one or the other
True
False
It is always necessary to decompose a task
True
False
Abstraction and Decomposition are examples of...
Computational Thinking
Algorithmic Thinking
Computer Science
Logical Reasoning
What is pattern recognition?
Breaking down a complex problem into smaller problems
Looking for similarities among and within problems
Building models from patterns
Why do we need to look for patterns in problems?
Patterns make it easier for us to solve complex problems
We don't need to look for patterns
Patterns make it more difficult complex problems
If you don't look for patterns in a problem, your solution might be _____
Wrong
Inefficient
Too slow
Identifying the steps involved in solving a problem
Abstraction
Decomposition
Pattern Recognition
Algorithmic Thinking
Looking for similarities and trends within a problem
Abstraction
Decomposition
Pattern recognition
Algorithmic Thinking
What is a flowchart?
A visual representation of an algorithm.
A diagram that shows abstraction.
A series of shapes.
A school database has lots of information on students, the data manager needs to use abstraction. What data should she leave out?
Age
Guardian's phone numbers
Classes
Eye colour
Which of these describes maintainability?
Making the program easier to use for the user
Making the code easier to read for the user
Making the code easier to read for the programmer
Making the program easier to use for the programmer
In order to explain what you mean to another programmer in words in the code you use...
Sub-Programs
Whitespace
Indentation
Comments
What word describes: giving variables names that reflect what their purpose is?
(a)
Which of these would you NOT use to add whitespace
spaces
indentation
extra variable names
empty lines
What maintainability term describes splitting code up into methods that perform some of the work?
(a)
Why is code indented?
To group together a function
The code does not use a { syntax and indentation is used instead
To make the code easier to read
All of the above
Which of these is not a method for authenticating a user?
Password
Password and Username
Finger print scanner
Encryption
When should comments be used within a program?
To help describe what code and structures are expected to do
To remind the developer if when lunch is
To include what tests must be carried out on the code
Every line, so that you know exactly what is happening
Which of the following are maintainability considerations - tick all that apply
authentication
comments
naming conventions
anticipating misuse
use of subprograms
Why do we want code to be maintainable?
To make code easy to edit by other programmers
To lessen the chance of mistakes when programming
To make it easier to make corrections to your own code
All of the above
Machine code is used in which generation of a programming language?
1st Generation
2nd Generation
3rd Generation
4th Generation
Which language translator is needed for the first generation?
Compiler
Interpreter
No Translator
Language Translator
Which of these is an example of a low-level language?
Delphi
Little Man Computer
Basic
C#
Which language translator(s) is/are used with the third generation?
Compiler
Interpreter
No Translator
Language Translator
Which generation would create the fastest code to execute?
1st Generation
2nd Generation
3rd Generation
4th Generation
Which generation would be easier to program for a programmer?
1st Generation
2nd Generation
3rd Generation
An advantage of programming in a high-level programming language is
One to One (One high level instruction is equivalent to one low level)
One to Two (For every high level instruction there are two low level instructions)
One to many (For every high level instruction there are many low level instructions)
Many to One (Many high level instructions translate into one low level instruction)
Executes instructions written in a programming language
Language Translator
Compiler
Interpreter
Source Code
Software program which optimizes code, ready for execution
Language Translator
Compiler
Interpreter
Source Code
Converts instructions in a programming language to a single executable file
Compiler
Interpreter
Source Code
Object Code
Which translator stops when it encounters an error?
Compiler
Interpreter
Which translator produces Object Code and an Error Report listing the errors found
Compiler
Interpreter
What is meant by source code
The final executable program
The code written by the programmer
The additional information about errors
Code relating to sources of information on the Internet
Machine Code is used in which generation of a programming language?
1st
2nd
3rd
4th
Which language translator is needed for the first generation?
Compiler
Interpret
No Translator
Language Translator
Which of these is an example of a low-level language?
Delphi
LMC
Basic
C#
Which of these converts a computer program from one language to another?
Compiler
Interpreter
No Translator
Language Translator
Which generation would create the fastest code to execute?
1st
2nd
3rd
4th
An advantage of programming in low-level programming is
Easier to understand
Takes up less code
Produce programs that require small file sizes
Easier to de-bug
An advantage of programming in a high-level programming language is
Easier to understand
Useful for device drivers
Programs require smaller file sizes
Programs execute faster than other generations
What sort of relationship are low-level languages said to have with high-level languages?
One to One (One high level instruction is equivalent to one low level)
One to Two (For every high level instruction - two low level instructions)
One to many (For every high level instruction-many low level instructions)
Many to One (Many high level instructions translate into one low level one)
Translation software needed at run-time
Language Translator
Compiler
Interpreter
Code is optimised
Language Translator
Compiler
Interpreter
Translates entire source code in one go
Language Translator
Compiler
Interpreter
Which translator stops when it encounters an error?
Language Translator
Compiler
Interpreter
Which translator converts from different languages?
Language Translator
Compiler
Interpreter
Which translator is used at the end of development?
Language Translator
Compiler
Interpreter
What is meant by source code?
The final executable program
The code written by the programmer
The additional information about errors
Code relating to sources of information on the Internet
Nearly all IDEs will have this to manipulate source code
Text Editor
Debugger
Compiler
Helps identify and fix errors in code
Text Editor
Debugger
Compiler
Translates source code from a high-level language to a lower level language
Text Editor
Debugger
Compiler
Which one would I be using if I had syntax highlighting?
Text Editor
Debugger
Compiler
What is a debugger?
The final executable program
The code written by the programmer
Assists in the detection and correction of errors
Translates code
RAM - What happens when the electricity Is turned off?
The data from the memory is saved onto virtual memory
The data from the memory is not saved
The data from the memory is saved onto the hard disk
The data from the memory is saved onto ROM
Where does virtual memory live?
RAM
Cache
Hard Disk
ROM
Where does the BIOS live?
RAM
Cache
Hard Disk
ROM
Where are the currently used data and instructions kept?
RAM
Cache
Hard Disk
ROM
A computer is continuously paging to the swap file. Discuss why this might be happening
There is not enough RAM
The virtual memory is too small
The cache is too slow
The hard disk is too slow
Which of the following is not a type of storage?
Optical
Magnetic
Solid State
Hard Drive
What type of storage is a DVD ROM?
Optical
Magnetic
Solid State
It is not a storage device
What type of storage is a USB memory stick?
Optical
Magnetic
Solid State
It is not a storage device
What type of storage is a SSD card?
Optical
Magnetic
Solid State
It is not a storage device
What type of storage is a HDD?
Optical
Magnetic
Solid State
It is not a storage device
Which of the following types of storage would likely access its data the fastest?
Optical
Magnetic
Solid State
They are all the same
Which of the following types of storage is the most durable?
Optical
Magnetic
Solid State
They are all the same
Which of the following types of storage is the most expensive per MB/GB?
Optical
Magnetic
Solid State
They are all the same
Why is a Hard Disk Drive (HDD) not very portable?
It has moving parts
It will break if you touch it
It is too large
It is too small
Why does a laptop need secondary storage?
To backup files to move to another computer
To storage programs that are currently running
To store data, files and software for future use
To store data that the processor needs
Which type of storage uses lasers to write the data?
Magnetic
Solid State
All types
Optical
The R/W speed of storage are listed below from fastest to slowest. What is the correct order?
Solid State, Optical, Magnetic
Optical, Magnetic, Solid State
Optical, Magnetic, Solid State
Solid State, Magnetic, Optical
The types of storage are listed below from least expensive per GB to the most. What is the correct order?
Solid State, Optical, Magnetic
Optical, Magnetic, Solid State
Magnetic, Optical, Solid State
Solid State, Magnetic, Optical
The types of storage are listed below from the most reliable to the least reliable. Pick the one that is the correct order.
Solid State, Optical, Magnetic
Optical, Magnetic, Solid State
Magnetic, Optical, Solid State
Solid State, Magnetic, Optical
How many bytes are there per character in a text file?
0.5
1
1.5
2
Which is the smallest of these data capacities?
2 KB
2049 bytes
0.5 MB
3GB
Which is the largest of these data capacities?
2048 MB
2 GB
2050 MB
100000 KB
Which formulae can be used to estimate the file size of an image?
number of pixels * number of bytes per pixel
number of pixels *
number of pixels wide number of pixels high number of bytes per pixel *
number of pixels wide number of bytes per pixel number of pixels *
Which formulae can be used to estimate the file size of a sound file?
bytes per sample channels height + number of minutes
samples per second number of seconds
samples per second bytes per sample duration
samples per second samples per second channels * duration
How many bytes are needed to store 32769 different colours?
1
2
3
4
What numeric base does binary operate on?
2
1
8
16
How many bits are there in a byte?
8
16
1
2
What is the maximum number of bits needed to represent 15 in denary?
6
4
What is the 8 bit binary representation of 17?
00010010
00001101
00010001
00100010
What is the binary representation of 32?
00110000
00100001
00100100
00100000
What is the denary representation of this 8 bit number? 01001111
59
79
69
49
What is the denary representation of this 8 bit number? 11010101
199
206
228
213
How Bytes are there in a Terabyte?
1024 Kilobytes
1024 Megabytes
1024 Gigabytes
1024 bytes
Why do we use the binary number system in Computing?
Because a CPU has two transistors
To represent the two different states of transistors
To allow the CPU to be in one of two states
Because it means true/false
What is the hex number 6B in binary?
01101011
01110111
10101110
01110100
How many bits are used in ASCII?
1
8
7
16
How many Bytes are used in Unicode?
8
16
2
1
The ASCII code is represented by using 16 bits.
True
False
Upper and lower case letters have a different ASCII code?
True
False
What is the maximum number of values that can be represented in 8-bits?
16
256
65,536
128
What is the maximum number of values that can be represented in 7-bits?
16
256
65,536
128
A character set is…
What language can be used in a computer system
The fonts that a computer has installed.
The possible characters that can be represented by a computer system.
The alphabet
ASCII can represent more characters than Unicode?
True
False
ASCII Stands for
American Standard Code for Information Interchange
American Scientific Code for Information Interchanging
Absolute Standard Codes for Instruction Interchange
American Standard Codes for Instruction Interchange
What do we call the smallest unit of data that can be represented in an image?
Pixel
Dot
Colour
Bit
What is meant by colour depth?
Number of pixels in the image
The number of colours available for each pixel
How pixelated the image is
How deep the colour
If you increase the colour depth the file size will decrease.
True
False
How many colours can be represented with a 4 bit colour depth?
2
4
16
256
In modern technology what unit of measurement would be used for screen resolution?
Pixels per inch (PPI)
Dots per inch (DPI)
Pixels per meter (PPM)
Grains per inch (GPI)
Which of the following is not stored as metadata about an image?
Height
Colour depth
Resolution
Number of people in the image
Which of the following is not an image file?
PNG
JPEG
Bitmap
MPEG
What three colours are used to produce a broad array of colours in a computers?
Green, Red, Orange
Red, Green, Blue
Yellow, Green, Red
Purple, Pink, Black
What is the name of the type of graphic that uses shapes of solid colour?
Raster
GIF
Vector
JPEG
What unit is sample rate measured in?
Bits per second (bps)
Hertz (Hz)
Megabits per second (Mbps)
Which of the following is not true if you increase the sample rate?
Better quality of recording
Needs greater storage space
larger file size
Decrease in quality
What is meant by bit depth?
The number of samples taken per second
The amplitude of each sample
The number of bits used per second of audio
The number of bits used to store each sound sample
What is measured when the wave is sampled?
Amplitude
Hertz
Bit rate
Frequency
What sample rate is used for CD quality sound?
44,100 Hz
88,200 Hz
22,100 Hz
72,100 Hz
What piece of hardware would you use to input sound into a computer?
Speaker
Analogue to digital converter
Microphone
Digital to analogue converter
If you increase the bit depth of an audio file, you increase the quality.
True
False
The amplitude of a sound wave is…
How high the wave is from the crest or trough
The frequency at which it is sampled
The frequency at which it is sampled
What is compression?
Converts one file to another
Reduces the size of data to save space
Minimizes the time taken for a file to be downloaded
Compresses something by pressing it very hard
What does Lossy Compression do to files?
Decreases the file size and keeps the same quality
Eliminates no information at all
Eliminates unnecessary information in a file to reduce file size
Increases the file size and keeps the same quality
What is Lossless Compression?
No information is lost but file size is increased
There is no loss in information at all after compression
Files which have the exact same data after compression
Compression that involves an algorithm
What type of compression does the ZIP format use?
Lossy
Lossless
What type of compression would you use to compress a video?
Lossy
Lossless
What type of compression would you use to compress a text file?
Lossy
Lossless
What type of compression may remove some of the data?
Lossy
Lossless
Which of the following are not usually in a compressed format?
JPEG
MPEG
Bitmap
MP3
Uncompressed audio and video files require less memory than compressed
True
False
JPEG stands for…
Joint Photo Exempted Grade
Joint Photographic Experts Group
Junior Photographic Export Group
Junior Photographic Experts Group
Machine code is used in which generation of a programming language?
1st Generation
2nd Generation
3rd Generation
4th Generation
Which language translator is needed for the first generation?
Compiler
Interpreter
No Translator
Language Translator
Which of these is an example of a low-level language?
Delphi
Little Man Computer
Basic
C#
Which language translator is used with the third generation?
Compiler
Interpreter
No Translator
Language Translator
Which generation would create the fastest code to execute?
1st Generation
2nd Generation
3rd Generation
4th Generation
Which generation would be easier to program for a programmer?
1st Generation
2nd Generation
3rd Generation
4th Generation
An advantage of programming in a high-level programming language is
One to One (One high level instruction is equivalent to one low level)
One to Two (For every high level instruction there are two low level instructions)
One to many (For every high level instruction there are many low level instructions)
Many to One (Many high level instructions translate into one low level instruction)
Executes instructions written in a programming language
Language Translator
Compiler
Interpreter
Source Code
Software program which optimizes code, ready for execution
Language Translator
Compiler
Interpreter
Source Code
Converts instructions in a programming language to a single executable file
Compiler
Interpreter
Source Code
Object Code
Which translator stops when it encounters an error?
Compiler
Interpreter
Which translator produces Object Code and an Error Report listing the errors found
Compiler
Interpreter
What is meant by source code
The final executable program
The code written by the programmer
The additional information about errors
Code relating to sources of information on the Internet
