Which of the following is a valid way to comment a single-line in Python?
/* This is a comment */# This is a comment<!-- This is a comment -->// This is a comment
What is the primary purpose of a sorting algorithm?
- Searching for elements
- Generating random numbers
- Rearranging data into a specific order
- Creating new data
Why might an illustrator use abstraction to draw an animated cartoon character?
- To speed-up the drawing process
- To preserve as much detail as possible
- To maximise the image resolution
- To overcome copyright restrictions
What happens to data stored in cache memory when the computer is powered off?
- It is permanently saved
- It is transferred to RAM
- It is lost
- It is moved to secondary storage
Which type of malware spreads by attaching itself to other programs?
Watching someone type their password is an example of…
- Surfing
- Shouldering
- Salting
- Symmetry
Which of the following is not an advantage of decomposition?
- Specialists can work on different parts of a problem simultaneously
- Updates to components can be made without having to re-write everything
- Completed components can be used in other projects
- Instructions can be followed by anyone
What is a common advantage of high-level programming languages in terms of human-readability?
- Code written in high-level languages is usually more difficult to understand
- High-level languages often require additional comments for clarity
- Code written in high-level languages is generally more readable and easier to understand
- Human-readability is not a consideration in programming languages
Which of the following statements about embedded systems is true?
- They are cheap to manufacture
- They have a large amount of primary storage
- They have a large amount of secondary storage
- They have a fast internal processor
What is the main purpose of performing a presence check?
- Checking if the input is within a specified range
- Verifying the format of the input
- Ensuring the input is not empty
- Encrypting the input data