BASRA ISHIK BOYS’ SCHOOL COMPUTER LESSON WORKSHEET GRADE-7
***************************************************************************
2nd Monthly Exam’s Worksheet: Algorithm 0: Robot Restaurant Puzzler - Multiple Choice Questions
Instructions: Select the correct answer for each question.
1. What is the main goal of the Robot Restaurant Puzzler?
A) To cook food B) To serve customers efficiently C) To clean the restaurant D) To
manage finances
Answer: B) To serve customers efficiently
2. What do you need to consider when programming the robot's path?
A) The cost of food B) The layout of the restaurant C) Customer preferences D) Robot
maintenance
Answer: B) The layout of the restaurant
3. If the robot encounters an obstacle, what should it do?
A) Stop B) Go backward C) Find a new path D) Inform the
manager
Answer: C) Find a new path
4. Which symbol is typically used to represent the start of an algorithm in a flowchart?
A) Circle B) Square C) Triangle D) Rectangle
Answer: A) Circle
5. How can you calculate the shortest path for the robot?
A) Dijkstra’s algorithm B) A* algorithm C) Breadth-first search D) Both A
and B
Answer: D) Both A and B
6. What is a key feature of the Robot Restaurant Puzzler?
A) Cooking food automatically B) Routing the robot to avoid obstacles C) Serving food with a
human touch
D) Keeping track of inventory Answer: B) Routing the robot to avoid obstacles
7. What is the purpose of using conditionals in the algorithm?
A) To increase speed B) To determine the robot's actions based on different situations
C) To calculate the total cost of meals D) To summarize daily sales
Answer: B) To determine the robot's actions based on different situations
8. Which of the following is a potential challenge the robot might face?
A) Broken plates B) Customer dissatisfaction C) Moving obstacles D)
Cluttered kitchens Answer: C) Moving obstacles
9. What does the robot need to do when it reaches a table?
A) Wait for the server B) Ask for the customer's order C) Deliver food to the table D) Collect
payment
Answer: C) Deliver food to the table
10. What type of data structure might be useful for representing the restaurant layout?
A) List B) Dictionary C) Graph D) String Answer: C) Graph
11. How does the robot know its position in the restaurant?
A) Using GPS B) Through sensors C) By human input D) It does not know its
position
Answer: B) Through sensors
12. What should the robot do if it serves the wrong table?
A) Move to the next table B) Apologize to the customer C) Recalculate the route D) Return to
the kitchen
Answer: D) Return to the kitchen
13. If the robot has to navigate a tricky area, which algorithm is best suited for this?
A) Linear search B) Recursive algorithm C) Pathfinding algorithm D) Sorting
algorithm
Answer: C) Pathfinding algorithm
14. What does a flowchart typically represent?
A) Data analysis B) Numerical calculations C) The flow of an algorithm D)
Programming syntax
Answer: C) The flow of an algorithm
15. In the context of the Robot Restaurant Puzzler, what does "routing" refer to?
A) Cooking food B) Planning the robot's path C) Serving customers D) Cleaning the
restaurant
Answer: B) Planning the robot's path
16. What kind of sensors may the robot use to navigate?
A) Temperature and humidity sensors B) Proximity sensors and cameras C) Pressure
sensors
D) None of the above Answer: B) Pro
17. What happens if the robot encounters a customer?
A) It ignores them B) It should stop and wait C) It speeds up D) It runs away
Answer: B) It should stop and wait
18. How can the robot identify different tables?
A) By color coding B) Using a QR code C) Through positional coordinates
D) By customer names Answer: C) Through positional coordinates
19. What does an obstacle avoidance algorithm do?
A) Prevents the robot from moving B) Helps the robot navigate around obstacles
C) Increases robot speed D) Informs customers about their orders
Answer: B) Helps the robot navigate around obstacles
20. What role does a “goal” play in directing the robot?
A) It tells the robot where to start B) It identifies what needs to be done next
C) It is irrelevant to the algorithm D) It helps the robot avoid tables
Answer: B) It identifies what needs to be done next
21. Which of the following is a benefit of using algorithms in programming?
A) Increases complexity B) Provides error messages
C) Makes programs easier to understand and maintain D) Consumes more memory
Answer: C) Makes programs easier to understand and maintain
22. How can the robot determine the best route to a table?
A) Random guessing B) Using a map C) By frequent practice D) By using an optimization
algorithm
Answer: D) By using an optimization algorithm
23. If the robot needs to wait at a table, which control structure should it use?
A) For loop B) While loop C) If statement D) Try-except
Answer: B) While loop
24. What type of feedback should the robot give to a customer when serving food?
A) Silence B) Affirmative greetings, like "Enjoy your meal!"
C) Technical jargon D) Noise alerts
Answer: B) Affirmative greetings, like "Enjoy your meal!"
25. What is a key disadvantage of having the robot handle all restaurant tasks?
A) It can increase customer satisfaction B) It may lead to a lack of human touch
C) It can minimize errors D) It increases efficiency
Answer: B) It may lead to a lack of human touch
26. Which of the following scenarios could result in the robot taking a wrong turn?
A) Correctly programmed paths B) Inaccurate sensor readings
C) Clear restaurant layout D) Accurate customer orders
Answer: B) Inaccurate sensor readings
27. To implement decision-making, what must the robot evaluate?
A) Light levels B) Ambient temperature
C) Customer orders D) All of the above
Answer: C) Customer orders
28. What should the robot do if it detects an unexpected obstacle?
A) Continue moving B) Generate an error message
C) Stop and recalculate the route D) It should take an alternate route without stopping
Answer: C) Stop and recalculate the route
29. Which programming concept describes breaking a problem into smaller parts?
A) Recursion B) Abstraction C) Decomposition D) Iteration
Answer: C) Decomposition
30. What type of algorithm is best for optimizing delivery routes?
A) Brute force algorithm B) Dijkstra’s algorithm C) Fibonacci sequence D) Bubble sort
Answer: B) Dijkstra’s algorithm
31. In the context of the Robot Restaurant Puzzler, what does “processing power” refer to?
A) The strength of the robot’s chassis B) The ability of the robot to execute tasks
C) The speed of the restaurant's kitchen staff D) The navigational capacity of a manual car
Answer: B) The ability of the robot to execute tasks
32. What data type is likely used to store the current location of the robot?
A) String B) Integer C) Tuple D) Dictionary
Answer: C) Tuple
33. Which logical operator would you use to check if two conditions must both be true?
A) OR B) AND C) NOT D) ALL
Answer: B) AND
34. If the robot must prioritize some tables over others, how should this be managed?
A) Random selection B) Using a priority queue C) Serving the nearest table first
D) Ignoring preferences Answer: B) Using a priority queue
35. In programming, what does "debugging" refer to?
A) Writing new code B) Testing the robot's algorithms C) Finding and fixing errors in the code
D) Improving code efficiency Answer: C) Finding and fixing errors in the code
36. When the robot arrives at a table, what is the first action it should perform?
A) Serve food immediately B) Check for customer readiness
C) Take payment D) Notify the manager
Answer: B) Check for customer readiness
37. What should the robot do during a busy time in the restaurant?
A) Ignore the instructions B) Follow the same algorithm
C) Adapt its delivery method D) Move faster than usual
Answer: C) Adapt its delivery method
38. How important is customer feedback for improving the robot's actions?
A) Not important at all B) Moderately important
C) Extremely important D) Only necessary for managers
Answer: C) Extremely important
39. What is a flowchart used for in the context of programming?
A) To run code B) To visually represent the flow of control in an algorithm
C) To write lengthy documentation D) To test algorithms
Answer: B) To visually represent the flow of control in an algorithm
40. How does the robot determine where to go next?
A) By running randomly B) Based on the last served table
C) Using preset algorithms and conditions D) Following human instructions only
Answer: C) Using preset algorithms and conditions
41. If the robot needs to serve desserts last, what must be included in its algorithm?
A) A specific path for desserts B) Timing and priority rules for serving
C) Ignorance of dessert orders D) Sequentially serving desserts first
Answer: B) Timing and priority rules for serving
42. In which case is recursion useful?
A) When the problem requires iteration B) For solving problems that can be broken down into
smaller subproblems
C) When there is only a single variable involved D) For sorting simple lists
Answer: B) For solving problems that can be broken down into smaller subproblems
43. What happens if the robot runs out of battery?
A) It automatically finds a charger B) It stops working until charged
C) It continues to operate until it crashes D) It sends notifications to customers
Answer: B) It stops working until charged
44. What role does "sensors" play in the robot's operation?
A) They provide entertainment. B) They help the robot perceive its environment.
C) They store customer information. D) They cook food.
Answer: B) They help the robot perceive its environment.
45. If the robot must move between the kitchen and dining area, which type of movement algorithm
could be most effective?
A) Bubble sort B) Pathfinding algorithm C) Linear search D) Selection sort
Answer: B) Pathfinding algorithm
46. What kind of loop is best for repeating an action until a specific condition is met?
A) For loop B) While loop C) Do-while loop D) Infinite loop
Answer: B) While
47. How should the robot respond if a customer complains about their order?
A) Ignore the customer B) Return to the kitchen to fix the order C) Apologize and inform the manager
D) Offer a discount Answer: C) Apologize and inform the manager
48. Which of the following data structures might be used to manage tables and seating
arrangements?
A) List B) Set C) Dictionary D) All of the above
Answer: D) All of the above
49. In what scenario would the robot need to update its list of active orders?
A) At the beginning of the day B) When new orders come in or orders are completed
C) When the restaurant closes D) When a customer requests the bill
Answer: B) When new orders come in or orders are completed
50. How can programming logic aid in the robot’s operation?
A) It has no effect B) It can help streamline workflows C) It can cause confusion
D) It can replace human workers Answer: B) It can help streamline workflows
51. Why is it important for the robot to have battery level checks implemented in its algorithms?
A) To keep the robot visually appealing B) To ensure it operates within safe limits
C) It’s not necessary D) To increase speed
Answer: B) To ensure it operates within safe limits
52. What happens if two robots are trying to serve the same table at the same time?
A) One robot will power down B) They should both serve together
C) An algorithm for conflict resolution should be applied D) The robots ignore each other
Answer: C) An algorithm for conflict resolution should be applied
53. What does the term "algorithm efficiency" refer to?
A) The ability to use more steps B) The amount of time and resources needed to complete an
algorithm
C) The ability to ignore errors D) The speed of the hardware
Answer: B) The amount of time and resources needed to complete an algorithm
54. How can the robot remember where it has served food?
A) By using memory storage B) It cannot remember
C) By asking the manager D) By looking at the printed orders
Answer: A) By using memory storage
55. When developing the robot's operations, which factor is least important?
A) Customer preference B) Robot speed
C) Employee opinions D) Battery life
Answer: C) Employee opinions
56. How can the robot’s pathfinding be improved?
A) By reducing map complexity B) By adding more obstacles
C) By using more advanced algorithms D) By ignoring obstacles altogether
Answer: C) By using more advanced algorithms
57. What is a potential benefit of using multiple robots in the restaurant?
A) Increased competition between robots B) Faster service times
C) Decreased overall efficiency D) More customer complaints
Answer: B) Faster service times
58. How should the robot prioritize serving tables?
A) Randomly B) Based on table location and order time
C) By determining the size of the table D) By how busy the kitchen is
Answer: B) Based on table location and order time
59. Which of the following best describes the term "loop" in programming?
A) A single set of instructions B) A repeating sequence of instructions
C) A sequence of undefined instructions D) A method for exiting a program
Answer: B) A repeating sequence of instructions
60. What is the role of a “debugger” when programming the robot?
A) To provide new algorithm ideas B) To identify and fix errors in code
C) To increase robot speed D) To manage customer satisfaction
Answer: B) To identify and fix errors in code
61. If the robot has set rules for deliveries, what is this an example of?
A) Data structure B) Algorithm C) Programming variable
D) Logic error Answer: B) Algorithm
62. How can customer feedback be integrated into the robot's performance evaluation?
A) By ignoring complaints B) By adjusting routes based on satisfaction ratings
C) By changing the robot's design D) By reprogramming the hardware
Answer: B) By adjusting routes based on satisfaction ratings
63. What should the robot do after completing a delivery?
A) Stop functioning B) Notify the kitchen of completed orders
C) Calculate the total time taken D) Update its status and prepare for the next task
Answer: D) Update its status and prepare for the next task
64. Which type of data structure is best suited for fast lookups of currently active orders?
A) List B) Set C) Dictionary D) Array
Answer: C) Dictionary
65. What is the purpose of an "if-else" statement in the robot's programming?
A) To initialize variables B) To evaluate conditions and execute actions based on the result
C) To terminate the program D) To create loops
Answer: B) To evaluate conditions and execute actions based on the result
66. If the robot is low on battery, what should it prioritize?
A) Delivering the fastest orders first B) Returning to recharge
C) Continuing to serve customers D) Trying to finish all deliveries
Answer: B) Returning to recharge
67. How can advancements in AI improve the robot’s functionality?
A) By removing the need for any programming B) By enabling better decision-making and
adaptability
C) By slowing down the processing speed D) By increasing power consumption
Answer: B) By enabling better decision-making and adaptability
68. In robot programming, what does the term "condition" refer to?
A) A rule that cannot be changed B) A situation that determines the robot's actions
C) A command given by the chef D) A type of sensor
Answer: B) A situation that determines the robot's actions
69. Why is it important for robots to communicate with each other in a restaurant setting?
A) To create competition B) To avoid collisions and coordinate deliveries
C) To distract customers D) To show off capabilities
Answer: B) To avoid collisions and coordinate deliveries
70. How can the efficiency of the robot's operation be monitored?
• A) By keeping track of battery life only
• B) Through regular testing and logging of delivery times and errors
• C) By customer survey alone
• D) By comparing the robot to human waiters
• Answer: B) Through regular testing and logging of delivery times and errors
71. What is the primary programming paradigm used for the Robot Restaurant Puzzler?
• A) Procedural programming
• B) Object-oriented programming
• C) Logical programming
• D) Functional programming
• Answer: A) Procedural programming