All Categories MCQs
Topic Notes: All Categories
General Description
Plato
- Biography: Ancient Greek philosopher (427–347 BCE), student of Socrates and teacher of Aristotle, founder of the Academy in Athens.
- Important Ideas:
- Theory of Forms
- Philosopher-King
- Ideal State
2231
A "logical error" in a program is an error that:
Answer:
Allows the program to run but produces an incorrect or unexpected result.
A logical error is a flaw in the program's algorithm or design. The syntax is correct, so the program runs, but it does not behave as the programmer intended. These are often the most difficult bugs to find.
2232
Which of the following is a key advantage of an interpreted language over a compiled language?
Answer:
Easier to debug and more platform-independent.
Because interpreters execute code line-by-line, errors can be identified immediately. Also, the same source code can often run on any platform that has the appropriate interpreter, offering greater portability.
2233
"Vendor lock-in" is a potential risk associated with which type of software?
Answer:
Proprietary Software
Vendor lock-in occurs when a customer becomes dependent on a particular vendor for products and services and cannot easily switch to another vendor without substantial costs or inconvenience. This is a common risk with closed, proprietary systems.
2234
A special translator used to convert assembly language into machine code is called a(n):
Answer:
Assembler
An assembler is a specific type of translator that takes assembly language code, which uses mnemonic symbols for machine instructions, and converts it into the equivalent binary machine code.
2235
The term "source code" refers to:
Answer:
The human-readable instructions written by a programmer in a programming language.
Source code is the fundamental set of instructions that defines how a program works. Access to this code is the key difference between open-source and proprietary software.
2236
What software controls a computer's resources and manages various tasks like starting the system, running programs, and handling input and output?
Answer:
Operating system
An operating system is the fundamental software that manages all the hardware and software resources of a computer. It handles core tasks like booting the computer, managing memory, controlling peripheral devices, and providing a user interface.
2237
Which of the following is a task performed by system software?
Answer:
Managing memory allocation
Managing the computer's memory (RAM) is a core responsibility of the operating system (system software) to ensure all running programs have the resources they need.
2238
What term describes the internal details of an object hidden from outside access?
Answer:
Encapsulation
Encapsulation hides an object’s internal data and functions, exposing only necessary features.
2239
Which device translates and executes one statement at a time?
Answer:
Interpreter
An interpreter reads code line-by-line, translating it into executable instructions immediately.
2240
What is a "linker"?
Answer:
A utility program that takes one or more object files and combines them into a single executable file.
In the compilation process, a linker is the final step. It combines the program's object code with any required library code to create the final, runnable executable program.