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
More MCQS on Management Sciences
- Green supply chain management MCQs
- Sustainable Operations and Supply Chains MCQs in Supply Chain
- Decision support systems MCQs in Supply Chain
- Predictive analytics in supply chains MCQs in Supply Chain
- Data analysis and visualization MCQs in Supply Chain
- Supply Chain Analytics MCQs in Supply Chain
- Demand management MCQs in Supply Chain
- Sales and operations planning (S&OP) MCQs in Supply Chain
- Forecasting techniques MCQs in Supply Chain
- Demand Forecasting and Planning MCQs in Supply Chain
- Contract management MCQs in Supply Chain
- Strategic sourcing MCQs in Supply Chain
- Supplier selection and evaluation MCQs in Supply Chain
- Procurement and Sourcing MCQs in Supply Chain
- Just-in-time (JIT) inventory MCQs in Supply Chain
- Economic order quantity (EOQ )MCQs in Supply Chain
- Inventory control systems MCQs in Supply Chain
- Inventory Management MCQs in Supply Chain
- Total quality management (TQM) MCQs in Supply Chain
- Quality Management MCQs in Supply Chain
- Material requirements planning (MRP) MCQs in Supply Chain
- Capacity planning MCQs in Supply Chain
- Production scheduling MCQs in Supply Chain
- Production Planning and Control MCQs
- Distribution networks MCQs in Supply Chain
- Warehousing and inventory management MCQs in Supply Chain
- Transportation management MCQs in Supply Chain
- Logistics Management MCQs in Supply Chain
- Global supply chain management MCQs in Supply Chain
- Supply chain strategy and design MCQs in Supply Chain
- Basics of supply chain management MCQ in Supply Chains
- Supply Chain Management MCQs
- Introduction to Operations Management MCQs in Supply Chain
- Fundamentals of operations management MCQs
- Operations & Supply Chain Management MCQs
- Business Intelligence MCQs
- distributed computing frameworks MCQs
- Handling large datasets MCQs
- Big Data Analytics MCQs
- neural networks, ensemble methods MCQs
- Introduction to algorithms like clustering MCQs
- Machine Learning MCQs
- time series forecasting MCQs
- decision trees MCQs
- Modeling techniques such as linear and logistic regression MCQs
- Predictive Analytics MCQs
- Power BI MCQs
- using tools like Tableau MCQs
- Techniques for presenting data visually MCQs
- Data Visualization MCQs
- Data manipulation, MCQs
- SQL queries, MCQs
- Database fundamentals, MCQs
- Data Management and SQL, MCQs
- regression analysis, Mcqs
- inferential statistics, Mcqs
- descriptive statistics, Mcqs
- Probability theory, Mcqs
- Statistics for Business Analytics
- regression analysis, Mcqs
- inferential statistics
- descriptive statistics, Mcqs
- Probability theory, Mcqs
- Statistics for Business Analytics
- Management Sciences MCQs