1. What is programming?
A) Writing instructions for a computer to perform tasks
B) Designing hardware components
C) Managing networks
D) Analyzing data
Answer: A) Writing instructions for a computer to perform tasks
2. Which of the following is NOT a programming language?
A) Python
B) Java
C) HTML
D) SQL
Answer: C) HTML
3. What does IDE stand for in the context of programming?
A) Integrated Development Environment
B) Interactive Design Environment
C) Internet Development Environment
D) Intelligent Design Engine
Answer: A) Integrated Development Environment
4. Which of the following is a high-level programming language?
A) Assembly language
B) Machine language
C) Python
D) Binary code
Answer: C) Python
5. What is the purpose of variables in programming?
A) To store and manipulate data
B) To execute instructions
C) To design user interfaces
D) To manage hardware resources
Answer: A) To store and manipulate data
6. What is the output of 5 + 3 * 2 in most programming languages?
A) 16
B) 11
C) 10
D) 13
Answer: D) 13
7. What is the role of a loop in programming?
A) To execute a block of code repeatedly
B) To define variables
C) To perform mathematical operations
D) To create user interfaces
Answer: A) To execute a block of code repeatedly
8. Which of the following is a control structure in programming?
A) Variable
B) Function
C) Loop
D) Data type
Answer: C) Loop
9. What is the purpose of comments in programming code?
A) To execute instructions
B) To ignore specific lines of code
C) To create variables
D) To design user interfaces
Answer: B) To ignore specific lines of code
10. What is the syntax for declaring a variable in Python?
A) var x = 5
B) x = 5
C) int x = 5
D) set x = 5
Answer: B) x = 5
11. What is the main function of an algorithm in programming?
A) To execute code
B) To debug errors
C) To define the logic of a program
D) To create user interfaces
Answer: C) To define the logic of a program
12. Which of the following data types is used to store whole numbers in programming?
A) Float
B) Double
C) Integer
D) String
Answer: C) Integer
13. What does the term “syntax error” refer to in programming?
A) Errors in program logic
B) Errors in variable naming
C) Errors in program structure
D) Errors in hardware components
Answer: C) Errors in program structure
14. Which programming paradigm emphasizes the use of objects and classes?
A) Procedural programming
B) Functional programming
C) Object-Oriented programming
D) Declarative programming
Answer: C) Object-Oriented programming
15. What is the purpose of conditional statements in programming?
A) To execute code repeatedly
B) To define variables
C) To make decisions based on conditions
D) To create user interfaces
Answer: C) To make decisions based on conditions
17. What is the role of a function in programming?
A) To create variables
B) To execute a block of code
C) To manage hardware resources
D) To design user interfaces
Answer: B) To execute a block of code
18. What is the purpose of input/output operations in programming?
A) To define variables
B) To perform calculations
C) To interact with users and external devices
D) To manage network traffic
Answer: C) To interact with users and external devices
19. Which symbol is used for assignment in most programming languages?
A) =
B) ==
C) +
D) –
Answer: A) =
20. What is the primary purpose of testing in software development?
A) To write code
B) To design algorithms
C) To identify and fix errors
D) To manage databases
Answer: C) To identify and fix errors
21. Which of the following is NOT a step in the software development life cycle (SDLC)?
A) Design
B) Testing
C) Deployment
D) Maintenance
Answer: D) Maintenance
22. What is the role of version control systems like Git in software development?
A) To manage hardware resources
B) To track changes in code and collaborate on projects
C) To design user interfaces
D) To execute code
Answer: B) To track changes in code and collaborate on projects
23. What is the purpose of debugging in programming?
A) To write code
B) To optimize algorithms
C) To identify and fix errors in code
D) To manage network resources
Answer: C) To identify and fix errors in code
24. Which of the following is a characteristic of structured programming?
A) It emphasizes the use of objects and classes
B) It uses only procedural programming techniques
C) It does not support functions
D) It does not allow loops
Answer: B) It uses only procedural programming techniques
26. What is the purpose of modular programming?
A) To write code sequentially
B) To divide a program into smaller, manageable units
C) To create complex user interfaces
D) To manage network traffic
Answer: B) To divide a program into smaller, manageable units
27. What is the purpose of pseudocode in programming?
A) To execute code directly
B) To create user interfaces
C) To plan and outline algorithms using human-readable language
D) To debug errors
Answer: C) To plan and outline algorithms using human-readable language
28. Which of the following is NOT a fundamental programming control structure?
A) Sequence
B) Iteration
C) Decision
D) Concatenation
Answer: D) Concatenation
29. What is the role of an interpreter in programming languages like Python?
A) To convert high-level language code into machine code
B) To execute code line by line
C) To manage databases
D) To optimize algorithms
Answer: B) To execute code line by line
30. What does the term “bug” refer to in programming?
A) A small insect that disrupts code
B) An error or flaw in a program that causes it to behave unexpectedly
C) A feature of programming languages
D) A hardware component
Answer: B) An error or flaw in a program that causes it to behave unexpectedly
31. What is the purpose of the “if…else” statement in programming?
A) To create variables
B) To execute code repeatedly
C) To make decisions based on conditions
D) To manage network resources
Answer: C) To make decisions based on conditions
32. Which of the following is a valid data type in programming?
A) String
B) Loop
C) Function
D) Comment
Answer: A) String
33. What does the acronym “OOP” stand for in programming?
A) Object-Oriented Programming
B) Object Optimization Protocol
C) Object Overriding Process
D) Optimal Object Processing
Answer: A) Object-Oriented Programming
34. What is the purpose of inheritance in object-oriented programming?
A) To create new classes
B) To reuse code and establish relationships between classes
C) To manage hardware resources
D) To design user interfaces
Answer: B) To reuse code and establish relationships between classes
35. What is the main advantage of using functions in programming?
A) To manage hardware resources
B) To reuse code and improve modularity
C) To create user interfaces
D) To execute code repeatedly
Answer: B) To reuse code and improve modularity
BioTechnology MCQs
- Microbial Techniques MCQs
- Molecular Biology Techniques MCQs
- General Lab Techniques MCQs
- Laboratory Techniques MCQs
- Biotechnology Regulations and Compliance MCQs
- Bioethics MCQs
- Ethics and Professional Practice MCQs
- Data Analysis MCQs
- Introduction to Programming MCQs
- Computer Science: MCQs
- Statistics MCQs
- Calculus MCQs
- Mathematics: MCQs
- Nanobiotechnology MCQs
- Pharmaceutical Biotechnology MCQs
- Environmental Biotechnology MCQs
- Bioprocess Engineering MCQs
- Industrial Biotechnology MCQs
- Animal Biotechnology MCQs
- Plant Biotechnology MCQs
- Immunology MCQs
- Genetic Engineering MCQs
- Bioinformatics MCQs
- Molecular Biology MCQs
- Introduction to Biotechnology MCQs
- Physics for Life Sciences MCQs
- Physics MCQs
- Organic Chemistry MCQs
- Chemistry MCQs
- Microbiology MCQs
- Genetics MCQs
- Cell Biology MCQs
- General Biology MCQs
- Knowledge management systems MCQs
- Communities of practice MCQs
- Organizational learning MCQs
- Knowledge Manageme MCQs
- Digital rights management MCQs
- User experience (UX) design MCQs
- Digital preservation MCQs
- Digital library design and architecture MCQs
- Digital Libraries MCQs
- Information policy MCQs
- Copyright and intellectual property issues MCQs
- Intellectual freedom MCQs
- Library legislation and policy MCQs
- Library Advocacy and Policy MCQs
- Educational technologies MCQs
- Literacy development MCQs
- Programming for youth
- Children’s literature MCQs
- Children’s and Young Adult Services MCQs
- Research data management MCQs
- Institutional repositories MCQs
- Scholarly communication MCQs
- Information literacy programs
- Public relations and community engagement MCQs
- Community needs assessment MCQs
- Public Libraries MCQs
- Medical libraries MCQs
- Corporate libraries MCQs
- Special Libraries and Information Centers MCQs
- Archival preservation MCQs
- Digital curation MCQs
- Records management MCQs
- Archival theory and practice MCQs
- Archival Studies MCQs
- Marketing and advocacy MCQs
- Financial management and budgeting MCQs
- Human resource management MCQs
- Strategic planning MCQs
- Management and Leadership in Libraries MCQs