ICAS Digital Systems and Programming 5 — Questions and Answers
Question 1: Which of the following is true about an array in programming?
- It can only store one value
- It stores multiple values of the same type under one name (Correct answer)
- It is a type of loop
- It defines a new function
Correct answer: It stores multiple values of the same type under one name
An array is a data structure that holds multiple values, typically of the same type, accessible by an index.
Question 2: What is the purpose of a flowchart in problem solving?
- To write actual code
- To visually represent the steps of an algorithm or process (Correct answer)
- To store data in a database
- To design the appearance of a website
Correct answer: To visually represent the steps of an algorithm or process
A flowchart uses symbols and arrows to visually map out the steps and decisions in an algorithm or process.
Question 3: What does 'phishing' refer to in cybersecurity?
- A method of backing up data
- A technique to speed up internet connections
- A fraudulent attempt to steal sensitive information by pretending to be a trusted source (Correct answer)
- A type of encryption
Correct answer: A fraudulent attempt to steal sensitive information by pretending to be a trusted source
Phishing is a cyberattack where criminals disguise themselves as trustworthy entities to trick people into revealing passwords or financial information.
Question 4: In binary arithmetic, what is 101 + 011?
- 110
- 1000 (Correct answer)
- 111
- 1001
Correct answer: 1000
101 (5) + 011 (3) = 1000 (8) in binary, since 5 + 3 = 8.
Question 5: What is the function of a router in a network?
- To display images on a screen
- To store large amounts of data
- To direct data packets between different networks (Correct answer)
- To input text into a computer
Correct answer: To direct data packets between different networks
A router directs network traffic by forwarding data packets between computer networks, such as your home network and the Internet.
Question 6: Which programming concept allows a function to call itself?
- Iteration
- Inheritance
- Recursion (Correct answer)
- Abstraction
Correct answer: Recursion
Recursion is the technique where a function calls itself as part of its own definition to solve a problem.
Question 7: What does 'encryption' do to data?
- Deletes data permanently
- Converts data into a coded format that can only be read with the correct key (Correct answer)
- Compresses data to save space
- Copies data to a backup location
Correct answer: Converts data into a coded format that can only be read with the correct key
Encryption transforms data into an unreadable coded format, protecting it from unauthorized access until it is decrypted with the correct key.
Which of the following is true about an array in programming?