This is typically a first-year Computer Science course focused on algorithms, logic, flowcharts, pseudocode, and introductory programming (often in Python, Java, or C).
✅ 20 Objective Questions – CSC 103
1. What is the first step in problem-solving using a computer?
A. Writing code
B. Testing the program
C. Understanding and defining the problem
D. Drawing the flowchart
Answer: C
2. A __________ is a finite sequence of well-defined instructions.
A. Diagram
B. Algorithm
C. Syntax
D. Parameter
Answer: B
3. Which of the following is NOT a characteristic of a good algorithm?
A. Finiteness
B. Ambiguity
C. Input
D. Output
Answer: B
4. Pseudocode is used to:
A. Write actual code
B. Test programs
C. Design algorithms in plain language
D. Run the program
Answer: C
5. Which of the following is a valid variable name in most programming languages?
A. 2total
B. total_2
C. total-2
D. class
Answer: B
6. What symbol is typically used for decision-making in a flowchart?
A. Rectangle
B. Oval
C. Diamond
D. Parallelogram
Answer: C
7. What is the output of: print(3 * 2 + 1) in Python?
A. 9
B. 7
C. 6
D. 5
Answer: B
8. Which of the following is a loop structure in most programming languages?
A. if
B. else
C. while
D. switch
Answer: C
9. The term “syntax error” means:
A. The logic of the program is wrong
B. The program runs but gives wrong output
C. The code breaks the grammar rules of the language
D. The system crashed
Answer: C
10. Which data type is used to store true or false values?
A. Integer
B. String
C. Float
D. Boolean
Answer: D
11. What is the purpose of indentation in Python?
A. For decoration
B. To improve readability only
C. To define blocks of code
D. It is optional
Answer: C
12. Which of the following is NOT a valid data type?
A. Integer
B. Character
C. Real
D. Logic
Answer: D
13. In programming, what does if...else represent?
A. A loop
B. A function
C. A decision structure
D. An operator
Answer: C
14. A variable in programming is used to:
A. Define loops
B. Store data
C. Create graphics
D. Control flow
Answer: B
15. Which of these is a high-level programming language?
A. Assembly
B. Machine code
C. Python
D. Binary
Answer: C
16. In Python, which operator is used for division?
A. +
B. *
C. /
D. %
Answer: C
17. A flowchart is:
A. A program
B. A step-by-step solution written in code
C. A diagram representing the logic of a program
D. An output of a compiler
Answer: C
18. What does the input() function in Python do?
A. Displays output
B. Terminates the program
C. Reads user input
D. Runs the code
Answer: C
19. Which of the following is used to repeat a block of code a specific number of times?
A. if
B. while
C. for
D. case
Answer: C
20. The error that occurs during program execution is called:
A. Syntax error
B. Logical error
C. Run-time error
D. Typing error
Answer: C
