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 51: The power source that drives the manipulator can be:

  • A None of the above
  • B electric
  • C pneumatic
  • D All of the above
  • E hydraulic

Explanation: The correct answer to the question is: All of the above

Question 52: A flexible manufacturing system may be:

  • A expensive to alter
  • B None of the above
  • C an automated assembly line
  • D very difficult to change when new products are introduced
  • E All of the above.

Explanation: The correct answer to the question is: an automated assembly line

Question 53: A venturi tube:

  • A measures the presence of a liquid
  • B None of the above
  • C is extremely difficult to use
  • D is made only of metal
  • E can be used to measure gas or liquid flow rates

Explanation: The correct answer to the question is: can be used to measure gas or liquid flow rates

Question 54: The linking of PCs with a communi-cations system is referred to as:

  • A workstations
  • B None of the above
  • C turnkey systems
  • D networking
  • E streaming

Explanation: The correct answer to the question is: networking

Question 55: An assembly language instruction:

  • A None of the above
  • B does not require knowledge of the computer design
  • C All of the above
  • D is written in ones and zeros
  • E corresponds to one computer operation

Explanation: The correct answer to the question is: corresponds to one computer operation

Question 56: Historically, central systems were used because:

  • A None of the above
  • B semiconductor memory was not available
  • C All of the above
  • D memory consumed a large amount of power
  • E memory was very expensive

Explanation: The correct answer to the question is: All of the above

Question 57: When a computer fetches an instruction, the binary code representing the instruction appears on the:

  • A memory data bus
  • B input data bus
  • C I/O address bus
  • D None of the above
  • E output data bus

Explanation: The correct answer to the question is: memory data bus

Question 58: Flat panel displays are based on what type of technology?

  • A Direct view storage tube
  • B RGB monitor
  • C Solid state
  • D Very large-scale integration (VLSI)
  • E None of the above

Explanation: The correct answer to the question is: Solid state

Question 59: The heart of automation technology is.

  • A computers
  • B control
  • C None of the above
  • D sensors
  • E robots

Explanation: The correct answer to the question is: computers

Question 60: Which of the following elements can be used with a TI510 FC?

  • A Flashing light
  • B Metronome
  • C Cymbal timer
  • D None of the above
  • E Drum timer

Explanation: The correct answer to the question is: Drum timer

Question 61: An encoder:

  • A can have only four keys
  • B converts an input to a binary number
  • C None of the above
  • D converts a binary number to a decimal number.
  • E is used to send telegraph signals

Explanation: The correct answer to the question is: converts an input to a binary number

Question 62: How is the integral mode implemented on a digital controller?

  • A None of the above
  • B the error is divided into discrete amounts
  • C the error signal is summed over a discrete time interval and accumulated by the controller
  • D All of the above
  • E the digital controller cannot handle integral mode

Explanation: The correct answer to the question is: the error signal is summed over a discrete time interval and accumulated by the controller

Question 63: Which of the following editor(s) is(are) incorporated into general CAD system?

  • A None of the above
  • B Point Editor
  • C Macro and symbol Editor
  • D Line Editor
  • E All of the above

Explanation: The correct answer to the question is: All of the above

Question 64: A solenoid:

  • A is spring operated
  • B is related to an aneroid
  • C is widely used in industrial automation
  • D can be used only in de circuits
  • E None of the above

Explanation: The correct answer to the question is: is widely used in industrial automation

Question 65: Using a microcomputer as a controller allows:

  • A simpler mechanical hardware
  • B All of the above
  • C None of the above
  • D faster cycle time
  • E more self diagnostics of the machine operation

Explanation: The correct answer to the question is: All of the above

Question 66: Programming languages currently available for robots:

  • A require training
  • B may be point-to-point languages
  • C All of the above
  • D None of the above
  • E may allow primitive motion

Explanation: The correct answer to the question is: All of the above

Question 67: Which of the following represents a conditional branching instruction?

  • A None of the above
  • B X = 5 + Y
  • C GOTO 50
  • D BGT LOOPS
  • E JMP MOTOR

Explanation: The correct answer to the question is: BGT LOOPS

Question 68: The two types of relays in a PC are:

  • A an output relay and a control relay
  • B a control relay and a retentive relay
  • C All of the above
  • D None of the above
  • E a retentive relay and a non-retentive relay

Explanation: The correct answer to the question is: an output relay and a control relay

Question 69: A stepping motor;

  • A has a commutator
  • B None of the above
  • C is a good choice where continuous rotation is needed
  • D has a speed proportional to voltage input
  • E can index positional movement.

Explanation: The correct answer to the question is: can index positional movement.

Question 70: Automation normally means:

  • A None of the above
  • B a net loss of jobs.
  • C All of the above
  • D no change in jobs.
  • E a net increase in jobs.

Explanation: The correct answer to the question is: a net increase in jobs.

Question 71: The physical arrangement of equipment in a network is called:

  • A None of the above
  • B topology
  • C queuing
  • D logic
  • E pairing

Explanation: The correct answer to the question is: topology

Question 72: When was the first successful industrial robot installed in the General Motors Plant in USA?

  • A 1963
  • B None of the above
  • C 1960
  • D 1967
  • E 1961

Explanation: The correct answer to the question is: 1961

Question 73: Many things can be done to minimize downtime loss. Identify two of them.

  • A both b and c
  • B stock critical spare parts
  • C provide an extra workstation
  • D None of the above
  • E establish a user forum program

Explanation: The correct answer to the question is: both b and c

Question 74: The electronic component that has been the key to recent developments in automation is the:

  • A integrated circuit
  • B None of the above
  • C improved vacuum tube
  • D diode
  • E transistor

Explanation: The correct answer to the question is: integrated circuit

Question 75: Two of the major processing languages are PROLOG and:

  • A LISP
  • B COBOL
  • C None of the above
  • D Pascal
  • E BASIC

Explanation: The correct answer to the question is: LISP

Question 76: Which type of digitizer measures a wave traveling at the speed of sound?

  • A Sonic
  • B Digitizing sr amer
  • C Caparitive
  • D Electrostatic
  • E None of the above

Explanation: The correct answer to the question is: Sonic

Question 77: The three different types of pen plotter technology are flatbed, drum, and:

  • A None of the above
  • B electrostatic
  • C thermal
  • D pinch roller
  • E impact

Explanation: The correct answer to the question is: pinch roller

Question 78: An operating system:

  • A can help reduce software development time
  • B is useless in most control applications
  • C None of the above
  • D provides ability for other programmers to understand the software structure
  • E All of the above

Explanation: The correct answer to the question is: can help reduce software development time

Question 79: Stepping motors:

  • A can run at varying speeds
  • B can be built to index different amounts by changing the pole configuration
  • C can run both clockwise and counterclockwise
  • D All of the above
  • E do not require commutators

Explanation: The correct answer to the question is: All of the above

Question 80: Who made the statement "if a robot can do a job, a person should not be doing it"?

  • A Prof. F. A. Fisher of Britain
  • B John Smith, USA
  • C Prof. Meredith Turing, London University
  • D None ,of the above
  • E Ron Albo of Shugart Associates, California

Explanation: The correct answer to the question is: Ron Albo of Shugart Associates, California

Question 81: The axis of movement of a robot may include:

  • A Wrist rotation
  • B X-Y coordinate motion
  • C None of the above
  • D All of the above
  • E elbow rotation

Explanation: The correct answer to the question is: All of the above

Question 82: Which of the following is often used as an alternative to the light pen or in association with storage tube displays?

  • A None of the above
  • B Mouse
  • C Digitiser
  • D Tablet
  • E Track ball

Explanation: The correct answer to the question is: Tablet

Question 83: The first industrial robot for commercial uses was installed in a Japanese plant at Toyota Automatic Loom Company, the parent company of the Toyota Automobile Group. When did this robot go into operation?

  • A Apr-70
  • B None of the above
  • C Jun-65
  • D Dec-67
  • E Nov-66

Explanation: The correct answer to the question is: Dec-67

Question 84: Which of the following symbol modes are used to input of graphics to General CAD system?

  • A Arc and Circle mode
  • B All of the above
  • C None of the above
  • D Live and Rectangle mode
  • E Dimension and Alphanumeric mode

Explanation: The correct answer to the question is: All of the above

Question 85: The rate at which scanning is repeated is called the:

  • A None of the above
  • B refresh rate
  • C bandwidth
  • D stroke rate
  • E resolution

Explanation: The correct answer to the question is: refresh rate

Question 86: A way to transfer programs to a central system is:

  • A to copy the program into PROMs and install the PROMs in the system
  • B None of the above
  • C to develop the program on the actual system only
  • D All of the above
  • E by setting bit switches on the central CPU

Explanation: The correct answer to the question is: to copy the program into PROMs and install the PROMs in the system

Question 87: The "end-effector" of a robot:

  • A is the robot "hand"
  • B None of the above
  • C may have a gripping action
  • D All of the above
  • E can be an actual tool

Explanation: The correct answer to the question is: All of the above

Question 88: The difference between a high-technology and a medium-technology robot is the:

  • A complexity of the task it can perform.
  • B accuracy of the robot
  • C None of the above
  • D speed of movement
  • E range of motion of the robot

Explanation: The correct answer to the question is: complexity of the task it can perform.

Question 89: What Is a process variable?

  • A All of the above
  • B A process parameter that changes value
  • C A manipulated variable
  • D A controlled variable
  • E None of the above

Explanation: The correct answer to the question is: All of the above

Question 90: A continuous process is:

  • A used only for simple tasks
  • B self-contained in that raw materials enter the process and an identifiable products exits the process.
  • C used only with analog controllers.
  • D one that never shuts down
  • E None of the above

Explanation: The correct answer to the question is: self-contained in that raw materials enter the process and an identifiable products exits the process.

Question 91: An operational amplifier:

  • A can be used to sum two or more signals
  • B All of the above
  • C can be used to subtract two or more signals
  • D uses the principle of feedback
  • E None of the above

Explanation: The correct answer to the question is: All of the above

Question 92: The computer graphics system called SKETCHPAD was demonstrated at

  • A University of Aston, Birmingham, 1960
  • B Cranfield Institute of Technology, London, 1962
  • C None of the above
  • D Massachusetts Institute of Technology in 1963
  • E Imperial college of Science and Technology, London, 1973

Explanation: The correct answer to the question is: Massachusetts Institute of Technology in 1963

Question 93: The new industrial revolution has been caused by:

  • A None of the above
  • B the Vietnam War
  • C demand for higher wages
  • D advances in electronics
  • E social unrest

Explanation: The correct answer to the question is: advances in electronics

Question 94: In the instruction, 500 SUBA # 50 the command field is:

  • A 500
  • B # 50000
  • C None of the above
  • D SUBA
  • E (b) and (c)

Explanation: The correct answer to the question is: SUBA

Question 95: The APT (automatically progra-mmed tools) language is used with:

  • A drafting systems
  • B large automation systems
  • C None of the above
  • D numerical controlled machines.
  • E programmable controllers

Explanation: The correct answer to the question is: numerical controlled machines.

Question 96: A proportional plus integral contro-ller can:

  • A can compensate for lag
  • B has no transient response
  • C None of the above
  • D both (b) and (c)
  • E can increase the system type

Explanation: The correct answer to the question is: both (b) and (c)

Question 97: For a type 1 system, the steady-state:

  • A None of the above
  • B (a) and (c)
  • C error for a step input is always zero
  • 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: (a) and (c)

Question 98: Which of the methods below can be used to tell a robot what it is to do?

  • A None of the above
  • B (a) and (c)
  • C Walk-through
  • D Software program
  • E Set mechanical stops

Explanation: The correct answer to the question is: (a) and (c)

Question 99: Semiconductor devices:

  • A None of the above
  • B All of the above
  • C have a very short infant mortality period
  • D are less reliable than electro
  • E usually have a very short MTBF (mean time between failure)

Explanation: The correct answer to the question is: have a very short infant mortality period

Question 100: What prevents a robotic instrument from running into other objects?

  • A None of the above
  • B negative image
  • C sensory devices
  • D functional manipulators
  • E memory

Explanation: The correct answer to the question is: sensory devices