On This Page

This set of Problem Solving and Python Programming Multiple Choice Questions & Answers (MCQs) focuses on Problem Solving And Python Programming Set 19

Q1 | ))
  • 120
  • nothing is printed
  • error, method factorial doesn’t exist in math module
  • error, the statement should be: print(factorial(5))
Q2 | What is the order of namespaces in which Python looks for an identifier?
  • python first searches the global namespace, then the local namespace and finally the built- in namespace
  • python first searches the local namespace, then the global namespace and finally the built-in namespace
  • python first searches the built-in namespace, then the global namespace and finally the local namespace
  • python first searches the built-in namespace, then the local namespace and finally the global namespace
Q3 | The word                         comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al Khowarizmi.
  • flowchart
  • flow
  • algorithm
  • syntax
Q4 | In computer science, algorithm refers to a special method usable by a computer for the solution to a problem.
  • true
  • false
Q5 | This characteristic often draws the line between what is feasible and what is impossible.
  • performance
  • system evaluation
  • modularity
  • reliability
Q6 | The time that depends on the input: an already sorted sequence that is easier to sort.
  • process
  • evaluation
  • running
  • input
Q7 | When an algorithm is written in the form of a programming language, it becomes a
  • flowchart
  • program
  • pseudo code
  • syntax
Q8 | Any algorithm is a program.
  • true
  • false
Q9 | A system wherein items are added from one and removed from the other end.
  • stack
  • queue
  • linked list
  • array
Q10 | Another name for 1-D arrays.
  • linear arrays
  • lists
  • horizontal array
  • vertical array
Q11 | A data structure that follows the FIFO principle.
  • queue
  • ll
  • stack
  • union
Q12 | The symbol denotes                
  • i/o
  • flow
  • terminal
  • decision
Q13 | In computer science, algorithm refers to a pictorial representation of a flowchart.
  • true
  • false
Q14 | The process of drawing a flowchart for an algorithm is called                      
  • performance
  • evaluation
  • algorithmic representation
  • flowcharting
Q15 | Actual instructions in flowcharting are represented in                      
  • circles
  • boxes
  • arrows
  • lines
Q16 | The following box denotes?
  • decision
  • initiation
  • initialization
  • i/o
Q17 | A box that can represent two different conditions.
  • rectangle
  • diamond
  • circle
  • parallelogram
Q18 | There should be certain set standards on the amount of details that should be provided in a flowchart.
  • true
  • false
Q19 | A detailed flowchart is called              
  • stack
  • macro
  • micro
  • union
Q20 | Which of the following is not an advantage of a flowchart?
  • better communication
  • efficient coding
  • systematic testing
  • improper documentation
Q21 | A flowchart that outlines the main segments of a program.
  • queue
  • macro
  • micro
  • union
Q22 | A                              is diagram that depicts the flow of a program.
  • algorithm
  • hash table
  • graph
  • flowchart
Q23 | Terminals are represented by diagonals in a flowchart.
  • true
  • false
Q24 | The operation represented by parallelograms.
  • input/output
  • assignment
  • comparison
  • conditions
Q25 | Which of the following is not a flowchart structure?
  • process
  • sequence
  • repetition
  • case