← Back to Subject
PPS (C Language) • MCQ • Introduction to Programming
Most Important 30 Objective Question - Introduction to Programming
Q1. A computer algorithm is:

A) A programming language
B) A step-by-step procedure to solve a problem
C) A hardware device
D) An operating system

Answer: B

Explanation:
An algorithm is a finite set of step-by-step instructions used to solve a logical or numerical problem.

Q2. Flowchart is used for:

A) Writing final code
B) Representing algorithm graphically
C) Compiling programs
D) Removing errors

Answer: B

Explanation:
A flowchart is a graphical representation of an algorithm using standard symbols.

Q3. Which symbol is used for Start/Stop in flowchart?

A) Rectangle
B) Diamond
C) Oval
D) Parallelogram

Answer: C

Explanation:
Oval symbol (Terminator) is used for Start and Stop in flowcharts.

Q4. Which symbol is used for decision making in flowchart?

A) Diamond
B) Rectangle
C) Circle
D) Oval

Answer: A

Explanation:
Diamond shape is used to represent decision-making conditions like if-else.

Q5. CPU stands for:

A) Central Program Unit
B) Central Processing Unit
C) Computer Processing Unit
D) Control Processing Unit

Answer: B

Explanation:
CPU means Central Processing Unit, known as the brain of the computer.

Q6. Which memory is temporary?

A) ROM
B) Hard Disk
C) RAM
D) CD-ROM

Answer: C

Explanation:
RAM is volatile memory, meaning data is lost when power is turned off.

Q7. Which of the following is an output device?

A) Keyboard
B) Mouse
C) Printer
D) Scanner

Answer: C

Explanation:
Printer is an output device because it produces output on paper.

Q8. Compiler is used for:

A) Running games
B) Translating source code into machine code
C) Designing websites
D) Managing files

Answer: B

Explanation:
Compiler converts high-level language programs into machine language.

Q9. Source code is:

A) Executable file
B) Binary code
C) Program written by programmer
D) Operating system file

Answer: C

Explanation:
Source code is the original code written by the programmer in high-level language.

Q10. Executable file is:

A) Human-readable program
B) Machine-readable program
C) Input device
D) Flowchart

Answer: B

Explanation:
Executable code is the machine code that the computer can run directly.

Q11. Which language is closest to machine language?

A) C
B) Assembly language
C) Python
D) Java

Answer: B

Explanation:
Assembly language is very close to machine language and uses mnemonics.

Q12. Which one is NOT a programming language?

A) C
B) Java
C) Flowchart
D) Python

Answer: C

Explanation:
Flowchart is only a graphical representation of logic, not a language.

Q13. Pseudocode is:

A) Real program code
B) Code written in binary
C) Informal description of program steps
D) Compiler output

Answer: C

Explanation:
Pseudocode helps in understanding logic before actual coding.

Q14. Which of the following is secondary memory?

A) RAM
B) Cache
C) Hard Disk
D) Register

Answer: C

Explanation:
Hard Disk is secondary storage used for permanent data storage.

Q15. Which device stores data permanently?

A) RAM
B) ROM
C) Cache
D) Register

Answer: B

Explanation:
ROM stores permanent instructions and is non-volatile.

Q16. Which of these is an input device?

A) Monitor
B) Speaker
C) Keyboard
D) Printer

Answer: C

Explanation:
Keyboard is used to enter data into the computer.

Q17. Which error occurs due to wrong grammar in code?

A) Logical Error
B) Syntax Error
C) Runtime Error
D) Arithmetic Error

Answer: B

Explanation:
Syntax errors happen when programming language rules are violated.

Q18. Which error gives wrong output but no compilation error?

A) Syntax Error
B) Logical Error
C) Linker Error
D) Compiler Error

Answer: B

Explanation:
Logical errors occur when program logic is wrong but syntax is correct.

Q19. Which of the following is volatile memory?

A) Hard Disk
B) RAM
C) DVD
D) Pen Drive

Answer: B

Explanation:
Volatile memory loses data after power is turned off.

Q20. The brain of the computer is:

A) RAM
B) Monitor
C) CPU
D) Mouse

Answer: C

Explanation:
CPU performs all calculations and controls operations.

Q21. Which of the following is system software?

A) MS Word
B) Operating System
C) Photoshop
D) Browser

Answer: B

Explanation:
Operating System is system software that manages hardware and software.

Q22. Variable is:

A) Fixed value
B) Name of memory location
C) Output device
D) Function

Answer: B

Explanation:
A variable stores data and refers to a memory location.

Q23. Data type decides:

A) Variable color
B) Type of data stored
C) Program speed
D) Keyboard layout

Answer: B

Explanation:
Data type defines whether data is integer, float, character, etc.

Q24. Which of these is a valid C data type?

A) integer
B) int
C) number
D) realnumber

Answer: B

Explanation:
In C, int is the correct keyword for integer data type.

Q25. Which language is called middle-level language?

A) Python
B) C
C) HTML
D) JavaScript

Answer: B

Explanation:
C is called middle-level because it supports both low-level and high-level features.

Q26. Which software translates assembly language?

A) Compiler
B) Assembler
C) Interpreter
D) Loader

Answer: B

Explanation:
Assembler converts assembly language into machine code.

Q27. ROM stands for:

A) Read Only Memory
B) Run Only Memory
C) Random Output Memory
D) Read Output Memory

Answer: A

Explanation:
ROM is permanent memory used to store important instructions.

Q28. Which file contains source code in C?

A) .exe
B) .c
C) .obj
D) .com

Answer: B

Explanation:
C source code files are saved with .c extension.

Q29. Which file is produced after compilation?

A) .c
B) .txt
C) Object/Executable file
D) .html

Answer: C

Explanation:
Compiler generates object code or executable file after compilation.

Q30. A program becomes useful after:

A) Editing
B) Compilation
C) Typing
D) Printing

Answer: B

Explanation:
Compilation converts source code into executable form so the computer can run it.
Google AdSense Ad Placement Here 📢