(2024/2025) Already Graded A
What is the primary purpose of programming?
A) To create graphics
B) To solve problems using code
C) To design websites
D) To build hardware
✔✔ B) To solve problems using code
What does the term "debugging" refer to in programming?
A) Adding comments to the code
B) Writing new code
C) Finding and fixing errors in code
D) Rewriting the entire program
✔✔ C) Finding and fixing errors in code
Which of the following is a programming language commonly used for web development?
A) Python
1
,B) JavaScript
C) C++
D) Fortran
✔✔ B) JavaScript
What is an algorithm?
A) A type of software
B) A step-by-step set of instructions to solve a problem
C) A method to optimize a program
D) A programming language
✔✔ B) A step-by-step set of instructions to solve a problem
Which part of a program handles user interaction?
A) Database
B) User interface
C) Operating system
D) Compiler
✔✔ B) User interface
2
, What is the first step in writing a computer program?
A) Write the code
B) Design the algorithm
C) Test the code
D) Debug the code
✔✔ B) Design the algorithm
Which of the following is an example of a high-level programming language?
A) Assembly
B) C++
C) Binary
D) Machine code
✔✔ B) C++
What does the term "variable" refer to in programming?
A) A fixed value used in a program
B) A location in memory used to store data
3