Logic Programming - M4 Quiz 2

Created
    English
  1. Other
  2. University
  3. AvatarRex Toledo
Best for asynchronous learning and homeworkAssign in student-paced mode
Best for live in-class or video conferencing lessonsStart teacher-led lesson
Preview as student

LOGIC PROGRAMMING

M4 - QUIZ 2

Name :

Course :

Score: __________________

Year & Section :

I. Identification

  1. Repetition and ____________________ are alternate names for a loop structure.

  2. A __________________ is the set of actions that occur within a loop.

  3. ________________ do follow those rules, and eliminate the problems caused by spaghetti code.

  4. A _______________ can contain any number of tasks, but there is no option to branch off and skip any of the tasks.

  5. The ___________ case or null branch is the branch of a decision in which no action is taken.

  6. A _____________ is a group of statements that executes as a single unit.

  7. The __________________ is an example of a housekeeping task.

  8. A _________________________ expression is one whose value can be only one of two opposing values, usually expressed as true and false or yes and no.

  9. A selection structure or ______________________ structure contains a conditional test, and, depending on the result, takes one of two courses of action before continuing with the next task.

  10. ____________________ code is the descriptive name for logically snarled programs.

  11. Each structure in structured programming is a sequence, selection, or _______________.

  12. A ___________________ program might contain more instructions than an unstructured one.

  13. Placing a structure within another structure is called ___________________ structures.

  14. Goto-less programming is a name to describe structured programming because structured programmers do not use a _______ statement.

  15. Attaching structures end to end is called __________________ structures.

  16. A priming input or ________________ is an added statement that gets the first input value in a program.

  17. Programs that use spaghetti code logic are _____________________.

  18. Mathematician _____________ is considered the founder of mathematical logic, and Boolean (true/false) expressions are named for him.

  19. The ________________ loop tests a condition before executing the loop body even once.

  20. All _______ problems can be solved using only three structures sequence, selection, and loop.