Why are posttest loops good for displaying a menu of items to the user?

What will be an ideal response?


Because the code within the loop in a posttest loop will always be processed once, creating a menu with a posttest loop is the best loop choice.  This is because even if the user selects to exit the menu, the menu must be displayed at least once.

Computer Science & Information Technology

You might also like to view...

Benny is a thief who tried to break into an Automated Teller Machine (ATM) using a screwdriver, but was only able to break five different keys on the numeric keypad and jam the card reader, at which point he heard Alice coming, so he hid. Alice walked up, put in her ATM card, successfully entered her 4-digit PIN, and took some cash. But she was not able to get her card back, so she drove off to

find help. Benny then went back to the ATM, and started entering numbers to try to discover Alice's PIN and steal money from her account. What is the worst-case number of PINs that Benny has to enter before correctly discovering Alice's PIN? What will be an ideal response?

Computer Science & Information Technology

Eric has asked you to help him build a new gaming computer so that he can play the newest games available. He also wants the computer to be VR-compatible. He has already purchased a high definition sound card, a new multi-core processor, an SSD hard drive, and 16GB of RAM.   What is missing from Eric’s game design build? 

A. Wireless network card B. Joystick port C. New monitor D. Video card

Computer Science & Information Technology

The physical parts of a computer are collectively referred to as ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A technician just completed a new external website and setup access rules in the firewall. After some testing, only users outside the interna l network can reach the site. The website responds to a ping from the internal network and resolves the proper public address. Which of the following could the technician do to fix this issue while causing internal users to route to the website using an internal address?

A. Configure NAT on the firewall B. Implement a split horizon DNS C. Place the server in the DMZ D. Adjust the proper internal ACL

Computer Science & Information Technology