ICAS Digital Systems and Programming 4 — Questions and Answers
Question 1: What is the hexadecimal representation of the decimal number 255?
- EF
- FF (Correct answer)
- FE
- F0
Correct answer: FF
255 in decimal equals FF in hexadecimal because 15×16 + 15 = 255.
Question 2: What does 'iteration' mean in the context of programming?
- Declaring a variable
- Repeating a block of code multiple times (Correct answer)
- Calling a function once
- Converting data types
Correct answer: Repeating a block of code multiple times
Iteration refers to repeating a set of instructions, typically using a loop construct.
Question 3: Which of the following best describes the Internet?
- A single computer that stores all websites
- A global network of interconnected computers (Correct answer)
- Software used to browse websites
- A wireless signal from a router
Correct answer: A global network of interconnected computers
The Internet is a massive global network that interconnects millions of computers and devices worldwide.
Question 4: In a spreadsheet, what does a formula beginning with '=' do?
- Formats the cell color
- Performs a calculation or operation (Correct answer)
- Saves the spreadsheet
- Sorts the column
Correct answer: Performs a calculation or operation
In spreadsheet software, a formula beginning with '=' instructs the program to calculate or process data in that cell.
Question 5: What is the main role of an operating system?
- To browse the internet
- To manage hardware resources and provide services for programs (Correct answer)
- To create documents
- To connect to a network
Correct answer: To manage hardware resources and provide services for programs
An operating system manages the computer's hardware and provides a platform for applications to run.
Question 6: Which of the following is an example of a conditional statement?
- x = 5
- for i in range(10)
- if score > 50: print('Pass') (Correct answer)
- def myFunction():
Correct answer: if score > 50: print('Pass')
The statement 'if score > 50: print('Pass')' is a conditional that executes code only when the condition is true.
Question 7: What does 'open source' mean when referring to software?
- Software that costs money to use
- Software whose source code is freely available to view, modify, and distribute (Correct answer)
- Software that only works online
- Software developed by large companies
Correct answer: Software whose source code is freely available to view, modify, and distribute
Open source software has its source code made publicly available so anyone can view, modify, and distribute it.
What is the hexadecimal representation of the decimal number 255?