What are the three basic logic structures used by computer programs? Describe each.

What will be an ideal response?


Sequence, selection, and repetition.You use the sequence structure each time you follow a set of step-by-step instructions, in order, from beginning to end.The selection structure, also called the decision structure, indicates that a decision (based on some condition) needs to be made, followed by an appropriate action derived from that decision.The repetition structure indicates that one or more instructions need to be repeated until some condition is met.

Computer Science & Information Technology

You might also like to view...

Describe what relationship types represent in an ER model and provide examples of unary, binary, ternary, and quaternary relationships.

What will be an ideal response?

Computer Science & Information Technology

What is contained within the body of an email message as a shortcut to a website?

A. spam filter B. attached image C. attachment D. embedded hyperlink

Computer Science & Information Technology

Which of the following has the most far-reaching effect for law enforcement concerning cybercrimes?

A) FERPA B) CAN-SPAM Act C) CFAA D) USA PATRIOT Act

Computer Science & Information Technology

__________ occurs as files are broken into small pieces that are stored in nonadjacent or noncontiguous clusters on the disk.

A. Fragmentation B. NTFS C. File allocation

Computer Science & Information Technology