About Programming MCQs
Programming is the cornerstone of computer science and IT. MCQs on this subject test your understanding of syntax, logic, data structures, and algorithms across various programming languages. Whether you are preparing for a university exam or a technical job interview, these questions will sharpen your problem-solving skills.
Topics Covered in This Category
- Language Fundamentals: C, C++, Java, Python, and PHP basics.
- Data Structures: Arrays, linked lists, stacks, queues, trees, and graphs.
- Algorithms: Sorting, searching, recursion, and time complexity.
- Object-Oriented Programming (OOP): Classes, objects, inheritance, polymorphism, and encapsulation.
Study Tips for Programming MCQs
Programming is best learned by doing. Do not just read the code; type it out and run it. Trace algorithms on paper to understand how variables change. When solving MCQs, pay attention to subtle syntax errors, loop conditions, and array indices, as these are common traps in exams.
Question 101: Which of the following devices would be classified as a robot by the Robot Institute of America?
- A None of the above
- B Pick-and-place manipulator
- C Automobile
- D Artificial hand
- E All of the above
Explanation: The correct answer to the question is: Pick-and-place manipulator
Question 102: In general, American buyers will purchase goods:
- A that offer the best quality for the least money.
- B that are made in America, even at higher costs.
- C without regard to country of manufacturer.
- D None of the above
- E (a) and (c)
Explanation: The correct answer to the question is: (a) and (c)
Question 103: The ideal solution is to have a system coordinator who will interface with the engineering and manufacturing managers, as well as the:
- A finance manager
- B None of the above
- C president
- D MIS manager
- E marketing manager
Explanation: The correct answer to the question is: MIS manager
Question 104: Most industrial control applications:
- A None of the above
- B can be solved using more than one method of control
- C must have the process specified correctly to be successful
- D All of the above
- E can be done more reliably using solid-state methods
Explanation: The correct answer to the question is: All of the above
Question 105: In raster-scan colour monitors, colour can be intensified by:
- A having each electron gun controlled by a composite signal
- B None of the above
- C having each electron gun controlled by separate signal
- D grouping the phosphor dots in a circular pattern
- E using an in-line gun arrangement with a solid metal mesh
Explanation: The correct answer to the question is: having each electron gun controlled by separate signal
Question 106: Compared to humans, machines:
- A make fewer errors
- B None of the above
- C can work in harsher environments
- D can make more complex decisions based on unexpected circumstances
- E (a) and (c)
Explanation: The correct answer to the question is: (a) and (c)
Question 107: A microprocessor:
- A None of the above
- B executes a program of instructions
- C is another name for a computer
- D (a) and (c)
- E is a CPU in integrated circuit form
Explanation: The correct answer to the question is: (a) and (c)
Question 108: Several objectives are required to achieve a successful data base management program. These are availability of data, quality of data, and
- A up-to-date data
- B None of the above
- C transmission of data
- D compatibility of data
- E desirability of data
Explanation: The correct answer to the question is: up-to-date data
Question 109: When one must sell a project to management, the most important document he or she can produce is a:
- A None of the above
- B summary of the problem
- C project evaluation
- D method for financing the project
- E procedure for purchase
Explanation: The correct answer to the question is: project evaluation
Question 110: FORTRAN is:
- A a mathematically oriented language
- B machine dependent
- C None of the above
- D a medium-level language
- E All of the above
Explanation: The correct answer to the question is: a mathematically oriented language
Question 111: When of the following produces the best quality graphics reproduction?
- A Dot metric printers
- B Laser printers
- C Plotters
- D Ink jet printers
- E None of the above
Explanation: The correct answer to the question is: Plotters
Question 112: What kind of capability is required if one plans to interface with a plotter or printer?
- A A graphics board
- B RGB monitor
- C None of the above
- D A co-processor
- E A graphics cable
Explanation: The correct answer to the question is: A graphics board
Question 113: Actuators are used to:
- A None of the above
- B activate a chemical
- C sense an object
- D All of the above
- E make a mechanical movement
Explanation: The correct answer to the question is: make a mechanical movement
Question 114: An aneroid barometer
- A measures pressure by sensing deflection of an evacuated chambers.
- B None of the above
- C is very unreliable
- D can be used to measure gas or liquid flow rates
- E can measure only atmospheric pressure
Explanation: The correct answer to the question is: measures pressure by sensing deflection of an evacuated chambers.
Question 115: Use of modern control technology in automation systems:
- A reduces costs
- B All of the above
- C improves reliability
- D None of the above
- E increases yield
Explanation: The correct answer to the question is: All of the above
Question 116: Computer-based controllers:
- A None of the above
- B are very flexible
- C are very difficult to change
- D (a) and (c) above
- E should be built in a modular fashion wherever possible
Explanation: The correct answer to the question is: (a) and (c) above
Question 117: The hardware device Jhat acts as both a switching and connecting unit is called a(n):
- A None of the above
- B RS-232C port
- C multiplexer
- D concentrator
- E communications processor
Explanation: The correct answer to the question is: multiplexer
Question 118: The workspace required for a robot:
- A None of the above
- B is less than that of a human performing the same task
- C is not dependent on the application.
- D depends upon the robot used
- E must be enclosed by a fence
Explanation: The correct answer to the question is: depends upon the robot used
Question 119: In the operation of a programmable controller:
- A mathematics cannot be performed
- B any latched data must be done using an external latching relay
- C All of the above
- D None of the above
- E all of the logic status is maintained in memory
Explanation: The correct answer to the question is: all of the logic status is maintained in memory
Question 120: Software is:
- A printer output
- B a set of instructions
- C tape input.
- D a programming language
- E None of the above
Explanation: The correct answer to the question is: a set of instructions
Question 121: A set of well-defined procedures based on mathematical and geometric formulas for solving a problem in a finite number of steps is called:
- A a geometric model
- B an algorithm
- C arithmetic logic
- D None of the above
- E a permutation
Explanation: The correct answer to the question is: an algorithm
Question 122: The coordinate system used to describe a workpiece:
- A is defined with respect to a point on the machine
- B changes from part to part
- C All of the above
- D is always two-dimensional
- E None of the above
Explanation: The correct answer to the question is: is defined with respect to a point on the machine
Question 123: Who are called steel collar workers?
- A Factory workers
- B Robots
- C None of the above
- D Office clerks
- E Steel factory workers
Explanation: The correct answer to the question is: Robots
Question 124: Which of the following may be classified as an automation system?
- A robotics
- B None of the above
- C All of the above
- D numerically controlled machine tools
- E automated warehouses
Explanation: The correct answer to the question is: All of the above
Question 125: A microprocessor is:
- A All of the above
- B relatively inexpensive
- C None of the above
- D controlled by a program
- E an integrated circuit
Explanation: The correct answer to the question is: All of the above
Question 126: A program language:
- A defines the form of the instruction
- B None of the above
- C is always machine dependent
- D is never machine dependent
- E All of the above
Explanation: The correct answer to the question is: defines the form of the instruction
Question 127: Trend analysis:
- A is used only in financial planning
- B None of the above
- C can improve control system response
- D requires a very expensive system to implement
- E is a brand new concept
Explanation: The correct answer to the question is: can improve control system response
Question 128: The raster CRT eliminates:
- A None of the above
- B flicker only
- C flicker and slow update
- D has no effect
- E slow update only
Explanation: The correct answer to the question is: flicker and slow update
Question 129: The concept of a general CAD system was that it should provide:
- A All of the above
- B A system for handling user actions.
- C A system for the operation of applications programming.
- D None of the above
- E A set of basic system functions and utilities.
Explanation: The correct answer to the question is: All of the above
Question 130: If the present value in a timer in the TI510 is 8, how many milliseconds is required from the time the timer is started until the output is enabled?
- A 149.88
- B 1275.41
- C None of the above
- D 133.36
- E 18
Explanation: The correct answer to the question is: 133.36
Question 131: Which of the following is a graphical input device?
- A mouse
- B light pen
- C keyboard
- D None of the above
- E Track ball
Explanation: The correct answer to the question is: light pen
Question 132: Productivity is defined as:
- A cost per day
- B output per man-hour of labour
- C None of the above
- D cost per unit
- E number of items manufactured per day
Explanation: The correct answer to the question is: output per man-hour of labour
Question 133: The lowest form of computer language is called:
- A FORTRAN
- B None of the above
- C COBOL
- D BASIC
- E machine language
Explanation: The correct answer to the question is: machine language
Question 134: The term used to represent the recycling of unused memory is:
- A memory dump
- B garbage collection
- C None of the above
- D direct memory access
- E diagnostic routine
Explanation: The correct answer to the question is: garbage collection
Question 135: The SKETCHPAD system
- A is expensive because it is sophisticated and make demands on the power and resources of the computer.
- B None of the above
- C is used for interactive Graphics
- D All of the above
- E consisted of an cathode-ray oscilloscope driven by a Lincoln Tx2 computer where by graphical information was displayed on the screen.
Explanation: The correct answer to the question is: All of the above
Question 136: In order to combat foreign competition, U.S. companies are:
- A ignoring the situation
- B automating
- C seeking import tariffs
- D None of the above
- E decreasing the salaries
Explanation: The correct answer to the question is: automating
Question 137: A dc servo motor:
- A can provide precise position control
- B None of the above
- C uses a tachometer for speed feedback
- D All of the above
- E uses a variable dc voltage for speed control
Explanation: The correct answer to the question is: All of the above
Question 138: For a type 0 system, the steady-state:
- A error for a step input is always zero
- B (a) and (c)
- C None of the above
- D input for acceleration input is always non-zero
- E error for a velocity input is always zero
Explanation: The correct answer to the question is: input for acceleration input is always non-zero
Question 139: Speech recognition:
- A is already widely used in industrial controls
- B All of the above
- C will be used in more applications as the technology matures.
- D will never be used in industrial controls
- E None of the above
Explanation: The correct answer to the question is: will be used in more applications as the technology matures.
Question 140: What is the difference between integral and derivative control?
- A derivative control does not eliminate offset error
- B derivative control responds to a change in the rate of change in the error signal
- C All of the above
- D None of the above
- E integral control has slower response to an error signal.
Explanation: The correct answer to the question is: All of the above
Question 141: Which of the following is a graphical output device?
- A None of the above
- B Line Printer
- C Laser Printer
- D Dot-matrix Printer
- E Plotter
Explanation: The correct answer to the question is: Plotter
Question 142: Resolution in a CRT refers to:
- A None of the above
- B the speed at which the monitor can accept data from the computer
- C the number of pixels in each square centimeter
- D the number of addressable elements on the tube
- E the number of phosphor dots that react when hit by the electron beam
Explanation: The correct answer to the question is: the number of addressable elements on the tube
Question 143: Which of the following devices could be part of a sensor?
- A brake
- B clutch.
- C None of the above
- D relay
- E thermometer
Explanation: The correct answer to the question is: thermometer
Question 144: A favourable reason for automation is to:
- A decrease throughput
- B increase number of operations
- C perform difficult operations
- D raises assembly cost
- E None of the above
Explanation: The correct answer to the question is: perform difficult operations
Question 145: Direct Numerical Control means:
- A using one computer to control several machines
- B complete elimination of a need for a human operator.
- C using several computers to control one large machine
- D None of the above
- E eliminating computers from the manufacturing process
Explanation: The correct answer to the question is: using one computer to control several machines
Question 146: One advantage of a PC in industrial control is that it:
- A is very difficult for the inexperienced programmer to understand
- B None of the above
- C has a reliable long life compared to relay logic
- D All of the above
- E is unreliable because there are no moving parts
Explanation: The correct answer to the question is: has a reliable long life compared to relay logic
Question 147: Which of the following is a machine language instruction?
- A 10001101
- B GOTO XOUT
- C None of the above
- D ADD 5
- E All of the above
Explanation: The correct answer to the question is: 10001101
Question 148: A flip-flop:
- A remembers what was previously stored in it
- B (a) and (c)
- C is a sequential logic device
- D is a combinational logic device
- E None of the above
Explanation: The correct answer to the question is: (a) and (c)
Question 149: The general CAD system was development by considering a wide range of possible uses of such a system.
- A Animation and graphic design
- B Mechanical engineering design
- C Structural engineering design and Electronic circuit design
- D All of the above
- E None of the above
Explanation: The correct answer to the question is: All of the above
Question 150: There are several procedures you can implement to provide maximum security. The most important of these is:
- A None of the above
- B Verify the reputation of the people installing your system
- C run regular simulated tests using TARP (testing of Applications Recovery Planes)
- D do not allow unbonded service people to work on your equipment
- E do not leave training manuals unsecured
Explanation: The correct answer to the question is: run regular simulated tests using TARP (testing of Applications Recovery Planes)