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 251: In LISP, the function X (x). (2x+l) would be rendered as __________
- A (* lambda(x) (+2
- B (lambda (x) (+(*2 x)l))
- C (+ lambda (x) 1 (*2x))
- D (lambda (x) (+1 (* 2x)
Explanation: No explanation is given for this question
Question 252: Which will solve the conjuncts of the rule so that the total cost is minimized?
- A All of the mentioned
- B Data complexity
- C Constraint variable
- D Conjunct ordering
Explanation: No explanation is given for this question
Question 253: Which of the following statement is true?
- A All formal languages are like natural language
- B Not all formal languages are context-free
- C All formal languages are Context free
- D Natural languages are context-oriented free
Explanation: No explanation is given for this question
Question 254: A network with named nodes and labeled arcs that can be used to represent certain natural language grammars to facilitate parsing.
- A Star Network
- B Complete Network
- C Transition Network
- D None of the above
- E Tree Network
Explanation: No explanation is given for this question
Question 255: What is Machine learning?
- A The autonomous acquisition of knowledge through the use of manual programs
- B The selective acquisition of knowledge through the use of computer programs
- C The selective acquisition of knowledge through the use of manual programs
- D The autonomous acquisition of knowledge through the use of computer programs
Explanation: No explanation is given for this question
Question 256: In LISP, the function (minusp (-20 4 8 8 1) returns
- A F
- B -20
- C NIL
- D None of the above
- E T
Explanation: No explanation is given for this question
Question 257: Knowledge and reasoning also play a crucial role in dealing with __________________ environment.
- A Only Completely and Partially Observable
- B Neither Completely nor Partially Observable
- C Partially Observable
- D Completely Observable
Explanation: No explanation is given for this question
Question 258: Parsing determines Parse Trees (Grammatical Analysis) for a given sentence.
- A True
- B False
Explanation: No explanation is given for this question
Question 259: Which of these schools was not among the early leaders in AI research?
- A Dartmouth University
- B Harvard University
- C Massachusetts Institute of Technology
- D None of the above
- E Stanford University
Explanation: No explanation is given for this question
Question 260: A complete, local search algorithm always finds goal if one exists, an optimal algorithm always finds a global minimum/maximum.
- A False
- B True
Explanation: No explanation is given for this question
Question 261: What is the basic element of a language?
- A Literal
- B All of the mentioned
- C Random variable
- D Variable
Explanation: No explanation is given for this question
Question 262: What is the name of Artificial Intelligence which allows machines to handle vague information with a deftness that mimics human intuition?
- A Fuzzy logic
- B Human intelligence
- C Boolean logic
- D Functional logic
Explanation: No explanation is given for this question
Question 263: An AI system developed by Terry A. Winograd to permit an interactive dialogue about a domain he called blocks-world.
- A SHRDLU
- B SIMD
- C None of the above
- D BACON
- E STUDENT
Explanation: No explanation is given for this question
Question 264: What is meant by consistent in state-space search?
- A Not any change in the literals
- B Change in the desired literals
- C None of the mentioned
- D No change in goal state
Explanation: No explanation is given for this question
Question 265: The room temperature is hot. Here the hot (use of linguistic variable is used) can be represented by _______
- A Crisp Set
- B None of the mentioned
- C Fuzzy & Crisp Set
- D Fuzzy Set
Explanation: No explanation is given for this question
Question 266: Visual clues that are helpful in computer vision include:
- A height and weight
- B None of the above
- C depth and texture
- D a and b above
- E colour and motion
Explanation: No explanation is given for this question
Question 267: Which were built in such a way that humans had to supply the inputs and interpret the outputs?
- A Actuators
- B AI system
- C Sensor
- D Agents
Explanation: No explanation is given for this question
Question 268: Which company offers the LISP machine considered to be "the most powerful symbolic processor available"?
- A None of the above
- B Texas Instruments
- C Symbolics
- D Xerox
- E LMI
Explanation: No explanation is given for this question
Question 269: Which agent deals with happy and unhappy states?
- A Utility based agent
- B Learning agent
- C Model based agent
- D Simple reflex agent
Explanation: No explanation is given for this question
Question 270: The more general task of coreference resolution also includes identifying so-called "bridging relationships" involving referring expressions.
- A True
- B False
Explanation: No explanation is given for this question
Question 271: How many proposition symbols are there in artificial intelligence?
- A 4
- B 3
- C 2
- D 1
Explanation: No explanation is given for this question
Question 272: Who is considered to be the "father" of artificial intelligence?
- A John McCarthy
- B Fisher Ada
- C None of the above
- D Allen Newell
- E Alan Turning
Explanation: No explanation is given for this question
Question 273: How many ALU(s) is/are control by one control unit is SIMD (single instruction stream, multiple data stream) architecture?
- A Impossible to say
- B One ALU
- C None of the above
- D Only two ALU
- E one or more ALUs
Explanation: No explanation is given for this question
Question 274: _____ prevents you from seeing an individual as an individual rather than as a member of a group.
- A Schematas
- B Attributions
- C Cultural mores
- D Stereotypes
Explanation: No explanation is given for this question
Question 275: Which suggests the existence of an efficient recursive algorithm for online smoothing?
- A Constant space
- B None of the mentioned
- C Matrix
- D Constant time
Explanation: No explanation is given for this question
Question 276: What is the intentional exchange of information brought about by production and perception?
- A Speech
- B None of the mentioned
- C Communication
- D Hearing
Explanation: No explanation is given for this question
Question 277: Decision trees are appropriate for the problems where ___________
- A Attributes are both numeric and nominal
- B All of the mentioned
- C Data may have errors
- D Target function takes on a discrete number of values.
Explanation: No explanation is given for this question
Question 278: When a top-level function is entered, the LISP processor do(es)
- A It evaluates the function and the function's operands
- B None of the above
- C It prints the results returned by the function.
- D It reads the function entered
- E All of the above
Explanation: No explanation is given for this question
Question 279: Natural language processing can be divided into the two subfields of:
- A generation and understanding
- B recognition and synthesis
- C None of the above
- D context and expectations
- E semantics of pragmatics
Explanation: No explanation is given for this question
Question 280: The primary method that people use to sense their environment is:
- A reading
- B seeing
- C None of the above
- D speaking
- E writing
Explanation: No explanation is given for this question
Question 281: Which are needed to compute the logical inference algorithm?
- A All of the mentioned
- B Satisfiability
- C Logical equivalence
- D Validity
Explanation: No explanation is given for this question
Question 282: The traditional way to exit and LISP system is to enter
- A quit
- B ok
- C bye
- D None of the above
- E exit
Explanation: No explanation is given for this question
Question 283: What is needed to make probabilistic systems feasible in the world?
- A Feasibility
- B None of the mentioned
- C Reliability
- D Crucial robustness
Explanation: No explanation is given for this question
Question 284: Which is used to provide the feedback to the learning element?
- A Critic
- B None of the mentioned
- C Actuators
- D Sensor
Explanation: No explanation is given for this question
Question 285: Face Recognition system is based on which type of approach?
- A Cognitive AI approach
- B Weak AI approach
- C Applied AI approach
- D Strong AI approach
Explanation: No explanation is given for this question
Question 286: Which kind of agent architecture should an agent an use?
- A Relaxed
- B Relational
- C Logic
- D All of the mentioned
Explanation: No explanation is given for this question
Question 287: The explanation facility of an expert system may be used to:
- A All of the above
- B expedite the debugging process
- C construct a diagnostic model
- D both (b) and (c)
- E explain the system's reasoning process
Explanation: No explanation is given for this question
Question 288: Which of the following are the applications of Expert systems?
- A Disease Diagnosis
- B All of the mentioned
- C Planning and Scheduling
- D Decision making
Explanation: No explanation is given for this question
Question 289: NLP is concerned with the interactions between computers and human (natural) languages.
- A True
- B False
Explanation: No explanation is given for this question
Question 290: The search strategy the uses a problem specific knowledge is known as ___________
- A All of the mentioned
- B Heuristic Search
- C Informed Search
- D Best First Search
Explanation: No explanation is given for this question
Question 291: What is the frame?
- A None of the mentioned
- B Data Type
- C Data Structure
- D A way of representing knowledge
Explanation: No explanation is given for this question
Question 292: An AI technique that allows computers to understand associations and relationships between objects and events is called:
- A cognitive science
- B pattern matching
- C None of the above
- D heuristic processing
- E relative symbolism
Explanation: No explanation is given for this question
Question 293: Which search is implemented with an empty first-in-first-out queue?
- A None of the mentioned
- B Bidirectional search
- C Breadth-first search
- D Depth-first search
Explanation: No explanation is given for this question
Question 294: Input segments of AI programming contain(s)?
- A none of the mentioned
- B touch
- C sound
- D smell
Explanation: No explanation is given for this question
Question 295: Which will be the instance of the class datalog knowledge bases?
- A No function symbols
- B None of the mentioned
- C Variables
- D First-order definite clauses
Explanation: No explanation is given for this question
Question 296: KEE is a product of __________
- A Texas Instruments
- B IntelliCorpn
- C Teknowledge
- D Tech knowledge
Explanation: No explanation is given for this question
Question 297: How many things are present in conventional communication signs?
- A 4
- B 5
- C 3
- D 6
Explanation: No explanation is given for this question
Question 298: Computers normally solve problem by breaking them down into a series of yes-or-no decisions represented by 1s and 0s. What is the name of the logic that allows computers to assign numerical values that fail somewhere between 0 and 1?
- A Human logic
- B Boolean logic
- C Operational logic
- D Fuzzy logic
- E None of the above
Explanation: No explanation is given for this question
Question 299: In AI programming, a list may contain:
- A None of the above
- B fields
- C pointers
- D cells
- E All of the above
Explanation: No explanation is given for this question
Question 300: Forward chaining systems are _____________ where as backward chaining systems are ___________
- A Data-driven, goal-driven
- B Goal-driven, data-driven
- C Goal-driven, goal-driven
- D Data-driven, data-driven
Explanation: No explanation is given for this question