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 351: Natural language processing is divided into the two subfields of:
- A algorithmic and heuristic
- B symbolic and numeric
- C understanding and generation
- D None of the above
- E time and motion
Explanation: No explanation is given for this question
Question 352: Like semantic networks, frames can be queried using spreading activation.
- A True
- B False
Explanation: No explanation is given for this question
Question 353: What is an auto-associative network?
- A a neural network that contains feedback
- B a neural network that has only one loop
- C a single layer feed-forward neural network with pre-processing
- D a neural network that contains no loops
Explanation: No explanation is given for this question
Question 354: What is the main task of a problem-solving agent?
- A Solve the given problem and reach to goal
- B None of the mentioned
- C To find out which sequence of action will get it to the goal state
- D All of the mentioned
Explanation: No explanation is given for this question
Question 355: uniform-cost search expands the node n with the __________
- A Heuristic cost
- B Highest path cost
- C Average path cost
- D Lowest path cost
Explanation: No explanation is given for this question
Question 356: One method of programming a computer to exhibit human intelligence is called modeling or:
- A psychic amelioration
- B simulation
- C cognitization
- D duplication
- E None of the above
Explanation: No explanation is given for this question
Question 357: How many types of recognition are there in artificial intelligence?
- A 4
- B 1
- C 2
- D 3
Explanation: No explanation is given for this question
Question 358: Stochastic hill climbing chooses at random from among the uphill moves; the probability of selection can vary with the steepness of the uphil1 move.
- A True
- B False
Explanation: No explanation is given for this question
Question 359: LISP was created by:
- A None of the above
- B John McCarthy
- C Alan Turing
- D Marvin Minsky
- E Allen Newell and Herbert Simon
Explanation: No explanation is given for this question
Question 360: In default logic, which of the following inference rules of the form is allowed?
- A (A : B) / C
- B A / (B : C)
- C A / B
- D A / B : C
Explanation: No explanation is given for this question
Question 361: In LISP, the function returns t if <object> is a CONS cell and nil otherwise __________
- A (cous = <object>)
- B (consp <object>)
- C (cons <object>)
- D (eq <object>)
Explanation: No explanation is given for this question
Question 362: What kind of environment is strategic in artificial intelligence?
- A Partial
- B Rational
- C Stochastic
- D Deterministic
Explanation: No explanation is given for this question
Question 363: What is a perception check?
- A a method teachers use to reward good listeners in the classroom
- B a response that allows you to state your interpretation and ask your partner whether or not that interpretation is correct
- C a cognitive bias that makes us listen only to information we already agree with
- D any factor that gets in the way of good listening and decreases our ability to interpret correctly
Explanation: No explanation is given for this question
Question 364: Which is not Familiar Connectives in First Order Logic?
- A not
- B or
- C and
- D iff
Explanation: No explanation is given for this question
Question 365: What is meant by predicate indexing?
- A Acts like index for facts
- B None of the mentioned
- C All of the mentioned
- D All the one kind of facts in one bucket and another kind in other bucket
Explanation: No explanation is given for this question
Question 366: Rational agent is the one who always does the right thing.
- A True
- B False
Explanation: No explanation is given for this question
Question 367: PXDES is medical expert system, for diagnosis of lung disease.
- A True
- B False
Explanation: No explanation is given for this question
Question 368: Which of the following have people traditionally done better than computers?
- A resolving ambiguity
- B finding similarities
- C (a) and (c) above.
- D recognizing relative importance
- E All of the above
Explanation: No explanation is given for this question
Question 369: Which problem can frequently occur in backward chaining algorithm?
- A Incompleteness
- B Complexity
- C Both Repeated states & Incompleteness
- D Repeated states
Explanation: No explanation is given for this question
Question 370: An Artificial Neural Network Is based on?
- A Applied Artificial Intelligence approach
- B Cognitive Artificial Intelligence approach
- C Weak Artificial Intelligence approach
- D Strong Artificial Intelligence approach
Explanation: No explanation is given for this question
Question 371: A computer vision technique that relies on image templates is:
- A robot vision
- B edge detection
- C binocular vision
- D model-based vision
- E None of the above
Explanation: No explanation is given for this question
Question 372: Which search uses the problem specific knowledge beyond the definition of the problem?
- A Breadth-first search
- B Depth-first search
- C Uninformed search
- D Informed search
Explanation: No explanation is given for this question
Question 373: What are you predicating by the logic: ?x:
- A Everyone is loyal
- B Everyone is not loyal to someone
- C Everyone is loyal to someone
- D Everyone is loyal to all
Explanation: No explanation is given for this question
Question 374: Which of the following IS NOT one of the advantages associated with a robotics implementation program?
- A Low costs for hardware and software
- B Reduced company cost for worker fringe benefits
- C Quality of manufactured goods can be improved
- D Robots work continuously around the clock
Explanation: No explanation is given for this question
Question 375: How many types of 3-D image processing techniques are there in image perception?
- A 3
- B 4
- C 5
- D 6
Explanation: No explanation is given for this question
Question 376: What is the form of Fuzzy logic?
- A Binary set logic
- B Two-valued logic
- C Crisp set logic
- D Many-valued logic
Explanation: No explanation is given for this question
Question 377: Which functions are used as preferences over state history?
- A Explicit
- B Award
- C Reward
- D Implicit
Explanation: No explanation is given for this question
Question 378: How many types are available in uninformed search method?
- A 4
- B 6
- C 3
- D 5
Explanation: No explanation is given for this question
Question 379: A knowledge-based agent can combine general knowledge with current percepts to infer hidden aspects of the current state prior to selecting actions.
- A False
- B True
Explanation: No explanation is given for this question
Question 380: Partial-order planning exhibits the Principle of Least Commitment, which contributes to the efficiency of this planning system as a whole.
- A False
- B True
Explanation: No explanation is given for this question
Question 381: An omniscient agent knows the actual outcome of its actions and can act accordingly; but omniscience is impossible in reality. Rational Agent always does the right thing; but Rationality is possible in reality.
- A False
- B True
Explanation: No explanation is given for this question
Question 382: Semantic Network is also known as Frame networks.
- A True
- B False
Explanation: No explanation is given for this question
Question 383: Which are recognized by vision?
- A Objects
- B Activities
- C Motion
- D Both Objects & Activities
Explanation: No explanation is given for this question
Question 384: What is the action of task environment in artificial intelligence?
- A Observation
- B Problem
- C Agent
- D Solution
Explanation: No explanation is given for this question
Question 385: How many ways are available to solve the state-space search?
- A 1
- B 3
- C 2
- D 4
Explanation: No explanation is given for this question
Question 386: Which among the following could the Existential instantiation of ?x Crown(x) ^ OnHead(x, Johnny)?
- A Crown(John) ^ OnHead(John, Jonny)
- B None of the mentioned
- C Crown(x) ^ OnHead(x, Jonny)
- D Crown(y) ^ OnHead(y, y, x)
Explanation: No explanation is given for this question
Question 387: Which is a lifted version of modus ponens?
- A Clauses
- B Inference
- C None of the mentioned
- D Generalized modus ponens
Explanation: No explanation is given for this question
Question 388: In many problems the path to goal is irrelevant, this class of problems can be solved using ____________
- A Local Search Techniques
- B Informed & Uninformed Search Techniques
- C Informed Search Techniques
- D Uninformed Search Techniques
Explanation: No explanation is given for this question
Question 389: MLMenu, a natural language interface for the TI Explorer, is similar to:
- A NaturalLink
- B the Personal Consultant
- C Ethernet
- D None of the above
- E PROLOG
Explanation: No explanation is given for this question
Question 390: Chance Nodes are represented by __________
- A Triangles
- B Circles
- C Disks
- D Squares
Explanation: No explanation is given for this question
Question 391: What are the main cons of hill-climbing search?
- A Does not find optimum solution & Fail to find a solution
- B Fail to find a solution
- C Terminates at global optimum & Does not find optimum solution
- D Terminates at local optimum & Does not find optimum solution
Explanation: No explanation is given for this question
Question 392: MCC is investigating the improvement of the relationship between people and computers through a technology called:
- A human factors
- B computer-aided design
- C None of the above
- D parallel processing
- E All of the above
Explanation: No explanation is given for this question
Question 393: What is the evaluation function in A* approach?
- A Average of Path cost from start node to current node and Heuristic cost
- B Path cost from start node to current node
- C Path cost from start node to current node + Heuristic cost
- D Heuristic function
Explanation: No explanation is given for this question
Question 394: The BACKTRACKING-SEARCH algorithm in Figure 5.3 has a very simple policy for what to do when a branch of the search fails: back up to the preceding variable and try a different value for it. This is called chronological-backtracking. It is also possible to go all the way to set of variable that caused failure.
- A False
- B True
Explanation: No explanation is given for this question
Question 395: A production rule consists of ____________
- A A set of Rule
- B Set of Rule & sequence of steps
- C Arbitrary representation to problem
- D A sequence of steps
Explanation: No explanation is given for this question
Question 396: GERMWATCHER is used to control infections caused by bacteria.
- A False
- B True
Explanation: No explanation is given for this question
Question 397: Which condition is used to cease the growth of forward chaining?
- A Atomic sentences
- B Complex sentences
- C All of the mentioned
- D No further inference
Explanation: No explanation is given for this question
Question 398: Which cannot be represented by a set of attributes?
- A Three-dimensional configuration of a protein molecule
- B Program
- C None of the mentioned
- D Agents
Explanation: No explanation is given for this question
Question 399: How is Fuzzy Logic different from conventional control methods?
- A FOR Approach
- B WHILE Approach
- C IF and THEN Approach
- D DO Approach
Explanation: No explanation is given for this question
Question 400: Automated vehicle is an example of ______
- A Active learning
- B Supervised learning
- C Unsupervised learning
- D Reinforcement learning
Explanation: No explanation is given for this question