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 151: Which method is frequently used, especially in the early stages of design?

  • A All of the above
  • B The iterative design method
  • C None of the above
  • D The direct method
  • E The design selection method

Explanation: The correct answer to the question is: The iterative design method

Question 152: The greatest change as a result of CAD/CAM is taking place in which industry?

  • A Electronics
  • B Aerospace
  • C None of the above
  • D Medical
  • E Cartography

Explanation: The correct answer to the question is: Electronics

Question 153: The main function(s) of computer in CAD is/are

  • A To serve as an extension to the memory of the designer
  • B None of the above
  • C To enhance the analytical and logical power of the designer
  • D All of the above
  • E To relieve the designer from routine repetitious tasks.

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

Question 154: A common data base is one requisite for converting CAD and CAM to CIM. Another is that:

  • A technical assistance must be provided to the user.
  • B there should be a common 3-D part description system.
  • C the system must make provision for new techniques.
  • D the user must have access to both hardware and software
  • E None of the above

Explanation: The correct answer to the question is: there should be a common 3-D part description system.

Question 155: Light sensors:

  • A never use infrared light as light source
  • B None of the above
  • C cannot be used a s limit switches.
  • D work in direct sunlight
  • E come in a wide variety of mounting styles

Explanation: The correct answer to the question is: come in a wide variety of mounting styles

Question 156: A drum timer is a good example of:

  • A None of the above
  • B an input sensor
  • C an output actuator
  • D a position sensor
  • E a sequence controller

Explanation: The correct answer to the question is: a sequence controller

Question 157: Straight-line operations:

  • A can include diagonal cuts if they aren't curved
  • B must be parallel to one of the axes of the coordinate system
  • C None of the above
  • D All of the above
  • E must be limited to two per workpiece

Explanation: The correct answer to the question is: must be parallel to one of the axes of the coordinate system

Question 158: Localizing an object in an image and selectively analyzing the object in a series of redundant layers is referred to as the:

  • A pyramid
  • B None of the above
  • C Turing test
  • D Gaussian pyramid
  • E Maxwell pyramid

Explanation: The correct answer to the question is: Gaussian pyramid

Question 159: A common way to take x, y coordinates off a drawing is to use a

  • A digitiser
  • B Tablet
  • C None of the above
  • D light pen
  • E Direct view storage tube (DVST)

Explanation: The correct answer to the question is: digitiser

Question 160: Operator interaction directly with the CRT is accomplished via:

  • A None of the above
  • B a stylus
  • C a touch terminal
  • D a digitizing tablet
  • E vector scanning

Explanation: The correct answer to the question is: a touch terminal

Question 161: Which part of the system allows the user to interact with the compiler? (a) Memory

  • A Translator
  • B None of the above
  • C Communications processor
  • D None of the above
  • E Interpreter

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

Question 162: A discrete parts process is:

  • A (b) and (c)
  • B normally a repetitive series of operations
  • C None of the above
  • D often encountered in manufacturing
  • E the same as a continuous process except a different controller must be used

Explanation: The correct answer to the question is: the same as a continuous process except a different controller must be used

Question 163: Which document sums up the general provisions of purchase, terms and agreement, warranties, and maintenance?

  • A The financial report.
  • B The contract
  • C None of the above
  • D The project evaluation
  • E The purchasing report

Explanation: The correct answer to the question is: The contract

Question 164: The chosen language for the Japanese Fifth-Generation Compu-ter Project is:

  • A None of the above
  • B FORTRAN
  • C PROLOG
  • D COBOL
  • E LISP

Explanation: The correct answer to the question is: PROLOG

Question 165: Which technique enables the designer to mold and shape, rather than construct on object using a series of lines?

  • A Wire-frame modeling
  • B Solid modeling
  • C None of the above
  • D Surface modeling
  • E FEM (Finite Element Modeling)

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

Question 166: The parallel register:

  • A None of the above
  • B is erased after a word is read fromit
  • C uses R-S flip-flops
  • D can store a multiple bit binary number
  • E All of the above

Explanation: The correct answer to the question is: can store a multiple bit binary number

Question 167: The refresh-vector CRT uses which of the following techniques?

  • A None of the above
  • B Makes changes on the image by increasing the anode voltage.
  • C Creates images on the screen by scanning straight-line vectors between selected points.
  • D Uses an electron gun to continuously flood the surface of the tube.
  • E The beam constantly travels across the screen to turn on/off a series of pixels.

Explanation: The correct answer to the question is: Creates images on the screen by scanning straight-line vectors between selected points.

Question 168: Which method uses the design analysis as a method for effecting the design?

  • A The design selection method
  • B The iterative design method
  • C The direct method
  • D All of the above
  • E None of the above

Explanation: The correct answer to the question is: The direct method

Question 169: Digital signals:

  • A are assigned values of 1 or 0 depending on the voltage level
  • B have a frequency measured in units of hertz
  • C have a sinusoidal shape.
  • D None of the above
  • E can have three possible levels

Explanation: The correct answer to the question is: are assigned values of 1 or 0 depending on the voltage level

Question 170: The name given to the test that determines whether a machine can think is the:

  • A None of the above
  • B Gaussian test
  • C McCarthy test
  • D Boolean test
  • E Turing test

Explanation: The correct answer to the question is: Turing test

Question 171: A display of a volume model that shows all of its edges is called a:

  • A 3-D model
  • B solid model
  • C surface model
  • D None of the above
  • E wire-frame

Explanation: The correct answer to the question is: wire-frame

Question 172: The insect type robot Attila is a more competent version of the robot Genghis an weights 1.7 kg. What is the number of microprocessors carried by its body?

  • A 10
  • B 15
  • C None of the above
  • D 18
  • E 33

Explanation: The correct answer to the question is: 10

Question 173: One of the following is not considered a method of input control in a CAD system.

  • A None of the above
  • B Joystick
  • C Plotter
  • D Programmable function box
  • E Touch terminal

Explanation: The correct answer to the question is: Plotter

Question 174: Plotter accuracy is measured in terms of repeatability and:

  • A resolution
  • B vertical dimension
  • C intelligence
  • D None of the above
  • E buffer size

Explanation: The correct answer to the question is: resolution

Question 175: If the transient response of a system is overdamped:

  • A the value of the output exceeds the value of the input at times during the transient period.
  • B All of the above
  • C the value of the output never exceeds the value of the input during the transient period.
  • D None of the above
  • E the value of the output never stabilizes.

Explanation: The correct answer to the question is: the value of the output never exceeds the value of the input during the transient period.

Question 176: The program execution time:

  • A cannot be changed once the program is written
  • B must be slower than the fastest mechanical operation that is to be controlled
  • C will vary depending on the language used
  • D None of the above
  • E All of the above

Explanation: The correct answer to the question is: will vary depending on the language used

Question 177: A programmable controller:

  • A allows faster machine checkout
  • B is easier to troubleshoot than standard relay logic
  • C both (a) and (b)
  • D None of the above
  • E All of the above

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

Question 178: What was the name of the Japanese worker who was killed by an industrial robot at the Akashi plant of Kawasaki Heavy Industries in Japan?

  • A M. Shubhagya
  • B None of the above
  • C Kenji Urada
  • D K. Miceni
  • E Harun Shimada

Explanation: The correct answer to the question is: Kenji Urada

Question 179: A thermistor:

  • A measures temperature
  • B is a pressure sensing device
  • C All of the above
  • D has a voltage output
  • E None of the above

Explanation: The correct answer to the question is: measures temperature

Question 180: A typical NC system has which of the following components?

  • A Machine tool
  • B Controller
  • C Tape input
  • D None of the above
  • E All of the above

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

Question 181: Timing using a TM990 micro-computer:

  • A None of the above.
  • B both (b) and (c)
  • C require an external timer added by the user
  • D can be handled in software
  • E is available on the standard CPU board

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

Question 182: If the period of a sine wave is 0.001 second, the frequency of the sine wave is:

  • A 1,000 Hz
  • B None of the above
  • C 10,000 Hz
  • D 10 Hz
  • E 0.001 Hz

Explanation: The correct answer to the question is: 1,000 Hz

Question 183: VLSI (very large scale integrated circuits) logic:

  • A All of the above
  • B will result in lower cost, higher capability electronic equipment
  • C will not be available in this decade
  • D None of the above
  • E means more costly electronic products in the future

Explanation: The correct answer to the question is: will result in lower cost, higher capability electronic equipment

Question 184: A semi-continuous operation means:

  • A None of the above
  • B a computer is a required part of the machine
  • C each operation in a sequence is continuous, but subsequent operations in the sequence may be different.
  • D the operation is continuous each shift, but stops between shifts
  • E coffee breaks are allowed for the operator

Explanation: The correct answer to the question is: each operation in a sequence is continuous, but subsequent operations in the sequence may be different.

Question 185: Time proportioning control:

  • A None of the above
  • B can be used on a PM550 programmable process controller
  • C is less efficient than normal PID control
  • D cannot use a TM990 micro
  • E a and b above.

Explanation: The correct answer to the question is: can be used on a PM550 programmable process controller

Question 186: A process controller:

  • A None of the above
  • B can solve a PID process control equation easily
  • C All of the above
  • D is useful in a continuous process control application
  • E can interface to digital and analog I/O

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

Question 187: Which of the following is not critical in PC CAD software?

  • A Drawing/editing
  • B Crosshatching
  • C Layering
  • D Damping
  • E None of the above

Explanation: The correct answer to the question is: Damping

Question 188: An up/down counter used in a TI510PC has three inputs. Which of the following is not one of them?

  • A Count out
  • B None of the above
  • C Count down
  • D Count up
  • E Reset.

Explanation: The correct answer to the question is: Count out

Question 189: The "walk-through" method of programming a robot involves:

  • A None of the above
  • B All of the above.
  • C moving the robot from one location to another
  • D walking through your suggested procedure with your supervisor prior to programming
  • E physically moving the robot through all the motions it is to repeat

Explanation: The correct answer to the question is: physically moving the robot through all the motions it is to repeat

Question 190: Group technology brings together and organizes:

  • A automation and tool production
  • B documentation and analysis
  • C parts and simulation analysis
  • D None of the above
  • E common parts, problems, and tasks

Explanation: The correct answer to the question is: common parts, problems, and tasks

Question 191: Robots can increase productivity because:

  • A they do not take a vacation
  • B production quality is uniform
  • C All of the above
  • D None of the above
  • E they do not get tired

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

Question 192: In the PROLOG language system, facts are manipulated by:

  • A algorithms
  • B rules
  • C None of the above
  • D simulations
  • E memory

Explanation: The correct answer to the question is: rules

Question 193: The general type of process found in industry is:

  • A All of the above
  • B batch
  • C None of the above
  • D discrete parts
  • E continuous

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

Question 194: Three different aspects of colour are used to define specific colours. They are hue, saturation, and:

  • A None of the above
  • B shading
  • C gray scale
  • D metamer
  • E value

Explanation: The correct answer to the question is: value

Question 195: For a type 2 system, the steady-state:

  • A error for a step input is always zero
  • B error for a velocity input is always zero
  • C All of the above
  • D None of the above
  • E input for acceleration input is always non-zero

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

Question 196: In pen plotters, "resolution" refers to the shortest possible line, but in electrostatic plotters it refers to:

  • A None of the above
  • B dual-axis tracking
  • C the speed per inch
  • D how accurately the plotter returns to a specific point
  • E the number of dots per inch

Explanation: The correct answer to the question is: the number of dots per inch

Question 197: Most continuous control actuators:

  • A are of the time proportioning type
  • B are used with standard continuous control loop
  • C use a 4 to 20 mA current loop input
  • D None of the above
  • E (b) and (c) above

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

Question 198: CAD/CAM is the inter-relationship between:

  • A manufacturing and marketing
  • B None of the above
  • C marketing and design
  • D engineering and manufacturing
  • E engineering and marketing

Explanation: The correct answer to the question is: engineering and manufacturing

Question 199: Relay ladder logic is used in a PC because:

  • A it is the best industrial control language ever developed.
  • B most industrial control personnel are familiar with relay ladder logic diagrams and this is the easiest for them to use
  • C it is impossible to write a control program for a machine in any other logic
  • D None of the above
  • E All of the above

Explanation: The correct answer to the question is: most industrial control personnel are familiar with relay ladder logic diagrams and this is the easiest for them to use

Question 200: The program counter:

  • A counts the number of instructions that have been executed
  • B is where arithmetic is done in a computer.
  • C decides which program to run
  • D None of the above
  • E contains the address of the next instruction to be executed

Explanation: The correct answer to the question is: contains the address of the next instruction to be executed