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 1: What key hardware item ties a CAD/ CAM system together?
- A None of the above
- B Mouse
- C Plotter
- D Digitizer
- E Graphics workstation
Explanation: The correct answer to the question is: Graphics workstation
Question 2: The steady-state error is:
- A a function of the transient response
- B zero for all inputs to type 1 systems
- C None of the above
- D decreased by increasing gain.
- E independent of the type of input
Explanation: The correct answer to the question is: decreased by increasing gain.
Question 3: A pick-and-place manipulator is:
- A the most flexible of all robots
- B an intelligent robot
- C primarily used for large parts handling
- D capable of point-to-point operation
- E None of the above
Explanation: The correct answer to the question is: capable of point-to-point operation
Question 4: Numerical control:
- A All of the above
- B None of the above
- C is a method for producing an exact number of parts per hour
- D is a method for controlling the operation of a machine by means of a set of instructions
- E applies only to milling machines
Explanation: The correct answer to the question is: is a method for controlling the operation of a machine by means of a set of instructions
Question 5: The use of specialized workstations:
- A reduces the host computer workload
- B reduces the host computer workload and allows more users
- C None of the above
- D provides limited growth potentials for 3-D
- E has a high cost-performance tradeoff
Explanation: The correct answer to the question is: reduces the host computer workload and allows more users
Question 6: The three key elements for a graphics workstation include the host processor, display controller, and:
- A mouse
- B keyboard
- C None of the above
- D digitizer
- E CRT
Explanation: The correct answer to the question is: CRT
Question 7: What two disciplines are usually tied by a common data base?
- A Testing and analysis
- B None of the above
- C Documentation and geometric modeling
- D Drafting and documentation
- E Computer-aided design and computer-aided manufacturing
Explanation: The correct answer to the question is: Computer-aided design and computer-aided manufacturing
Question 8: The robot:
- A None of the above
- B All of the above
- C will be more useful when robot vision is improved significantly
- D is very primitive at the present
- E represents the most powerful new industrial automation tool currently on the horizon
Explanation: The correct answer to the question is: All of the above
Question 9: Flood guns bombard the phosphor surface of the tube in which one of the following types of CRT technology?
- A Raster scan CRT
- B Direct view storage tube
- C Stroke CRT
- D Refresh-vector CRT
- E None of the above
Explanation: The correct answer to the question is: Direct view storage tube
Question 10: The speed at which the monitor accepts data is called:
- A interlacing
- B bandwidth
- C scanning
- D response time
- E None of the above
Explanation: The correct answer to the question is: bandwidth
Question 11: Flexible manufacturing allows for:
- A automated design
- B None of the above
- C factory management
- D tool design and tool production
- E quick and inexpensive product changes
Explanation: The correct answer to the question is: quick and inexpensive product changes
Question 12: If the transient response is under damped:
- A steady-state will be reached faster than if the system is overdamped
- B None of the above
- C the value of the output will exceed the value of the input at times during the transient period
- D both a and b
- E the present overshoot is zero
Explanation: The correct answer to the question is: both a and b
Question 13: Which item best describes a CAM technology?
- A Documentation
- B Numerical control
- C None of the above
- D Geometric modeling
- E Drafting
Explanation: The correct answer to the question is: Numerical control
Question 14: One of the major benefits of using CAD in tool design is that:
- A tool motions can be checked to see if there is interference between the tool and the object
- B there is better coordination in the materials-handling area
- C it simplifies the trial-and-error method
- D product design represents approximately one-half the engineering costs
- E None of the above
Explanation: The correct answer to the question is: tool motions can be checked to see if there is interference between the tool and the object
Question 15: The rectangular boundary around a specific area on the display is called
- A a view point
- B a window
- C a view plane
- D a conic section
- E None of the above
Explanation: The correct answer to the question is: a window
Question 16: Today, programmable controllers:
- A can be cost effective even when replacing just a few relays
- B are relatively low cost compared with the original digital equipment available for industrial control
- C All of the above
- D are more powerful then the first controllers on the market
- E None of the above
Explanation: The correct answer to the question is: All of the above
Question 17: Which of the plotters listed below eliminates media size limitations?
- A Drum
- B Pinch roller
- C Electrostatic
- D None of the above
- E Flatbed
Explanation: The correct answer to the question is: Drum
Question 18: What is the process lag?
- A None of the above
- B The time it takes for the sensor to respond to a changed.
- C The time it takes for the mass of the process to respond to an input change.
- D The lag in the error signal when the setpoint is changed.
- E All of the above
Explanation: The correct answer to the question is: The time it takes for the mass of the process to respond to an input change.
Question 19: The user communicates directly with the computer through its peripheral devices is known as
- A On-line processing
- B Batch mode processing
- C Remote-terminal processing
- D None of the above
- E Intelligent terminal Processing
Explanation: The correct answer to the question is: On-line processing
Question 20: Which of these controller types is the most accurate?
- A Three mode
- B Proportional plus derivative
- C Proportional plus integral
- D None of the above
- E Proportional
Explanation: The correct answer to the question is: Three mode
Question 21: Over the last ten years, productivity has risen most rapidly in:
- A France
- B None of the above
- C Italy
- D Japan
- E United States
Explanation: The correct answer to the question is: Japan
Question 22: Which part of the system performs the "housekeeping" chores?
- A None of the above
- B translator
- C interpreter
- D operating system
- E compiler
Explanation: The correct answer to the question is: operating system
Question 23: Most current PC CAD systems are used for producing:
- A 2-D drawings
- B None of the above
- C finite element analysis
- D circuit simulation
- E solids modeling
Explanation: The correct answer to the question is: 2-D drawings
Question 24: The addition of _____ can reduce processing time.
- A None of the above
- B A converter
- C An EPROM
- D A buffer
- E A co-processor
Explanation: The correct answer to the question is: A co-processor
Question 25: Programmable controllers:
- A cannot perform functions other than relay logic
- B are programmed using relay ladder logic
- C (a) and (c) above
- D None of the above
- E are widely used in many different industries
Explanation: The correct answer to the question is: (a) and (c) above
Question 26: What should be first considered in choosing a plotter?
- A The application for which it will be used
- B None of the above
- C The cost
- D The hardware you currently own
- E The type of data you will input
Explanation: The correct answer to the question is: The application for which it will be used
Question 27: How is the integral mode implemented using analog methods?
- A None of the above
- B Op amp and resistors
- C Op amp and an RC network to place the error voltage across the capacitor
- D All of the above
- E Op amp and a capacitor
Explanation: The correct answer to the question is: Op amp and a capacitor
Question 28: The processing, which normally consists of a small computer with one or more peripheral devices, connected via a high-speed line to the large control computer is known as
- A None of the above
- B Remote-terminal processing
- C Batch mode processing
- D On-line processing
- E Intelligent terminal Processing
Explanation: The correct answer to the question is: Intelligent terminal Processing
Question 29: Vision sensors:
- A will more closely match the capabilities of the human eye
- B None of the above
- C can not improve much in the next decade
- D All of the above
- E will remain very costly
Explanation: The correct answer to the question is: will more closely match the capabilities of the human eye
Question 30: Pressure sensors:
- A All of the above
- B use capacitive variations to sense pressure
- C None of the above
- D use the piezoresistive effect in strain gauge sensors
- E use an aneroid chamber with a variable resistance output
Explanation: The correct answer to the question is: All of the above
Question 31: A LISP environment consists of a language, a programming environ-ment, and:
- A random-access storage
- B None of the above
- C a processor
- D a set of functions
- E a large address
Explanation: The correct answer to the question is: a set of functions
Question 32: The difference between CAD and CAM is that CAD software is directed at product design while CAM software is:
- A concerned with management programs
- B designed for communications
- C None of the above
- D concerned with production and control of tool design
- E specifically for PC-board design
Explanation: The correct answer to the question is: concerned with production and control of tool design
Question 33: Which of the following is required for a plotter to perform specific commands?
- A Software
- B None of the above
- C Firmware
- D Hardware
- E Driver
Explanation: The correct answer to the question is: Driver
Question 34: The main activity(ies) of Designer in CAD is/are:
- A Control of the design process in information distribution.
- B All of the above
- C Application of creativity, ingenuity, and experience.
- D Organisation of design information
- E None of the above
Explanation: The correct answer to the question is: All of the above
Question 35: Microcomputer-based control sys-tems
- A All of the above
- B will have more standard industrial application software available in the future.
- C will tend to increase in cost.
- D None of the above
- E will just keep their present capability
Explanation: The correct answer to the question is: will have more standard industrial application software available in the future.
Question 36: The basic difference between broadband and baseband is:
- A transmission
- B capacity
- C availability
- D reliability
- E None of the above
Explanation: The correct answer to the question is: capacity
Question 37: Having compatibility and commonality in and between vendors' equipment is called:
- A None of the above
- B standardization
- C registration
- D networking
- E integration
Explanation: The correct answer to the question is: standardization
Question 38: The Ziegler-Nichols method:
- A can be used to determine gain factors of a PI loop
- B is a method of control
- C None of the above
- D is a graphical solution method
- E a and b above
Explanation: The correct answer to the question is: a and b above
Question 39: The two major categories of software are: application software and
- A UNIX software
- B CAD software
- C None of the above
- D system software
- E high-level languages
Explanation: The correct answer to the question is: system software
Question 40: High-level languages:
- A cannot be used with automatic systems.
- B are "procedure-oriented"
- C are very difficult to use
- D require knowledge of the computer design
- E None of the above
Explanation: The correct answer to the question is: are "procedure-oriented"
Question 41: A Hall effect switch is usually used to:
- A None of the above
- B sense a vacuum
- C measure voltage
- D sense the presence of a magnetic object.
- E measure temperature
Explanation: The correct answer to the question is: sense the presence of a magnetic object.
Question 42: Robots consist of three basic components; power supply, control (memory) console, and:
- A None of the above
- B microcomputer
- C software
- D mechanical unit (arm)
- E coaxial cable
Explanation: The correct answer to the question is: mechanical unit (arm)
Question 43: The device that assembles groups of characters into complete messages prior to their entering the CPU is called:
- A a communications processor
- B None of the above
- C an editor
- D an interpreter
- E a compiler
Explanation: The correct answer to the question is: a communications processor
Question 44: What two methods are available to build electronic continuous control?
- A All of the above
- B Analog and mechanical
- C Analog and digital
- D Pneumatic and analog
- E None of the above
Explanation: The correct answer to the question is: Analog and digital
Question 45: A servo controlled robot:
- A None of the above
- B stop only at fixed points on each axis
- C must be hydraulically driven
- D can accelerate
- E must be electrically driven
Explanation: The correct answer to the question is: can accelerate
Question 46: Which of the following is considered a high-level language?
- A None of the above
- B All of the above
- C FORTRAN
- D Machine language
- E Assembly language
Explanation: The correct answer to the question is: FORTRAN
Question 47: A technique for displaying applications where complex 3-D geometric are required for the exteror shall of a product is called:
- A surface modeling
- B None of the above
- C solid modeling
- D 2-D modeling
- E 3-D modeling
Explanation: The correct answer to the question is: surface modeling
Question 48: Sensors:
- A None of the above
- B are not important in automation
- C will be much smarter and more sophisticated in the future
- D are easily developed
- E probably will not improve over the next decade
Explanation: The correct answer to the question is: will be much smarter and more sophisticated in the future
Question 49: The output of a thermocouple is:
- A None of the above
- B a resistance
- C a voltage
- D a capacitance
- E a current
Explanation: The correct answer to the question is: a voltage
Question 50: CAE and CAM are linked through:
- A a common data base and communications system
- B NC tape programming and automated design
- C assembly automation and tool production.
- D parts production and testing
- E None of the above
Explanation: The correct answer to the question is: a common data base and communications system