Exam
**Question 1. Which programming paradigm emphasizes objects that combine data and behavior?**
A) Procedural programming
B) Functional programming
C) Object‑Oriented programming
D) Logic programming
Answer: C
Explanation: OOP groups data (attributes) and methods (behaviors) into objects, promoting
encapsulation and reuse.
**Question 2. In a procedural language, which of the following is the primary unit of code
organization?**
A) Class
B) Function (or procedure)
C) Module
D) Interface
Answer: B
Explanation: Procedural languages organize code around functions or procedures that execute
sequential steps.
**Question 3. Which hardware platform is most appropriate for running a high‑throughput database
server?**
A) Smartphone
B) Tablet
C) Desktop PC
, NOCTI Computer Programming Ultimate
Exam
D) Rack‑mount server
Answer: D
Explanation: Rack‑mount servers provide the CPU, memory, storage, and network capabilities needed
for intensive database workloads.
**Question 4. The Java Virtual Machine (JVM) is an example of which type of runtime environment?**
A) Native OS kernel
B) Managed execution environment
C) Browser plug‑in
D) Embedded firmware
Answer: B
Explanation: The JVM abstracts the underlying OS and hardware, managing memory and providing
bytecode execution.
**Question 5. Which UI principle prioritizes reducing the number of steps a user must take to complete
a task?**
A) Consistency
B) Learnability
C) Efficiency of use
D) Aesthetic integrity
Answer: C
Explanation: Efficiency of use focuses on minimizing effort and time for frequent users.
**Question 6. In the data hierarchy, the smallest addressable unit of storage is the:**
, NOCTI Computer Programming Ultimate
Exam
A) Byte
B) Bit
C) Field
D) Record
Answer: B
Explanation: A bit is the basic binary unit; a byte consists of multiple bits.
**Question 7. The “DRY” principle in coding stands for:**
A) Do Not Repeat Yourself
B) Debug Rapidly, Yield
C) Define Reusable Yields
D) Data Reuse Yearly
Answer: A
Explanation: DRY encourages eliminating duplicate code to improve maintainability.
**Question 8. Which act primarily addresses unauthorized access to computers in the United States?**
A) CAN‑SPAM Act
B) Computer Fraud and Abuse Act (CFAA)
C) Digital Millennium Copyright Act (DMCA)
D) Sarbanes‑Oxley Act
Answer: B
Explanation: The CFAA criminalizes unauthorized computer access and related activities.
, NOCTI Computer Programming Ultimate
Exam
**Question 9. Under the Copyright Act of 1976, which of the following is protected?**
A) Ideas alone
B) Functional algorithms
C) Original expression of ideas in a tangible medium
D. Public domain facts
Answer: C
Explanation: Copyright protects the expression, not the underlying ideas or facts.
**Question 10. Which type of malware disguises itself as a legitimate program?**
A) Worm
B) Trojan horse
C) Virus
D) Spyware
Answer: B
Explanation: Trojans appear benign but contain hidden malicious functionality.
**Question 11. Ergonomic keyboards help prevent which occupational injury?**
A) Carpal Tunnel Syndrome
B) Tendonitis of the shoulder
C) Lower back strain
D) Eye fatigue
Answer: A
Explanation: Ergonomic keyboards reduce wrist strain, a major factor in carpal tunnel syndrome.