COBOL·Practice drills 5

Drill 21: Key term — Arithmetic and conditions

Identify the key term in the example and define it.

Beginner 5 min read Lesson 108 of 150 Challenge included
What you will be able to do
  • Identify the key term in the example and define it.

Practice task

Identify the key term in the example and define it.

math.cobCOBOL
IDENTIFICATION DIVISION.
PROGRAM-ID. MATH1.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-SCORE PIC 9(3) VALUE 84.
PROCEDURE DIVISION.
    IF WS-SCORE >= 80
        DISPLAY "PASS"
    ELSE
        DISPLAY "RETRY"
    END-IF.
    STOP RUN.
Your turn

Write your answer

Easy

Identify the key term in the example and define it.

TEXT · starter
Your answer…
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Lesson 108 of 150 · 0% of course