sirayla calisan talimatlar toplami.
calisma alani
COBOL
COBOL icin sifirdan pratik ogrenme yolu
once tanim
COBOL nedir
COBOL kesin talimatlar yazmak icindir. Burada onu COBOL icin sifirdan pratik ogrenme yolu olarak ogreniyorsun. Baslangic modeli: girdi adimlardan gecer ve cikti olur.
main.cobcalistir cobc -x main.cob && ./mainaliskanlik COBOL icin kucuk bir parca ogren, minimal ornek yaz ve calistirdeger veridir. degisken bu veriyi tutan isimdir.
girdi alip sonuc ureten isimli kucuk is.
GnuCOBOL main.cob icindeki kodu calistirir.
ilk okunur kod
program ciktisi
entry point output syntax DISPLAYDISPLAY 42.
cikti 42dil soyu
COBOL aile agaci
COBOL nereden gelir, hangi diller yakindir ve sonra ne ogrenilir.
sifirdan
Soru bankasi
Once ara sonra calis
Bir asama sec veya bu dilin soru bankasinda ara ve alistirmaya gec.
COBOL soru 1
COBOL soru 1. deger yazdirma icin en uygun ifadeyi sec.
COBOL soru 2
COBOL soru 2. degeri adlandirma icin en uygun ifadeyi sec.
COBOL soru 3
COBOL soru 3. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
COBOL soru 4
COBOL soru 4. temel koleksiyon icin en uygun ifadeyi sec.
COBOL soru 5
COBOL soru 5. deger yazdirma icin en uygun ifadeyi sec.
COBOL soru 6
COBOL soru 6. degeri adlandirma icin en uygun ifadeyi sec.
COBOL soru 7
COBOL soru 7. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
COBOL soru 8
COBOL soru 8. temel koleksiyon icin en uygun ifadeyi sec.
COBOL soru 9
COBOL soru 9. deger yazdirma icin en uygun ifadeyi sec.
COBOL soru 10
COBOL soru 10. degeri adlandirma icin en uygun ifadeyi sec.
COBOL soru 11
COBOL soru 11. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
COBOL soru 12
COBOL soru 12. temel koleksiyon icin en uygun ifadeyi sec.
COBOL soru 13
COBOL soru 13. deger yazdirma icin en uygun ifadeyi sec.
COBOL soru 14
COBOL soru 14. degeri adlandirma icin en uygun ifadeyi sec.
COBOL soru 15
COBOL soru 15. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
COBOL soru 16
COBOL soru 16. temel koleksiyon icin en uygun ifadeyi sec.
COBOL soru 17
COBOL soru 17. deger yazdirma icin en uygun ifadeyi sec.
COBOL soru 18
COBOL soru 18. degeri adlandirma icin en uygun ifadeyi sec.
coktan secmeli
COBOL soru 1
COBOL soru 1. deger yazdirma icin en uygun ifadeyi sec.
DISPLAY 42.
referans
main.cob kaliplari
cobc -x main.cob && ./mainentry point output syntax DISPLAY
program ciktisi
DISPLAY 42.
- Run the smallest file first
- Print one known value
- Check the output before adding more code
variables assignment types PIC
degerler ve isimler
01 TOTAL PIC 99 VALUE 42. DISPLAY TOTAL.
- Give values readable names
- Keep one idea per line while learning
- Trace the value before changing it
function collection OCCURS
fonksiyonlar ve koleksiyonlar
ADD A TO B GIVING RESULT. 01 SCORES OCCURS 2 TIMES PIC 99. DISPLAY SCORES(1).
- Keep functions small
- Return useful values
- Use the common collection before reaching for frameworks