COBOL Programming Question Bank

COBOL Programming Question Bank

  • Explain the Figurative constant with examples.
  • Explain the group and elementary group data items. Give some Examples
  • Explain the COMPUTE and MOVE statement with example.
  • Write a COBOL program to read and display the university address.
  • Write a COBOL program to calculate the Simple Interest from given P (principal amount), N (number of year) and R(Rate of Interest).(or)
  • Explain the IF statement with an example
  • Explain the READ and WRITE statement with an example.
  • A set of values, either positive or negative, terminated by a zero are to be input. Write a COBOL program to count the number of positive and number of negative values available in the input list.
  • How do we define a two dimensional array in COBOL? give an example.
  • Explain the SET and SEARCH verb.

Replies

  • Ankita Katdare
    Ankita Katdare
    • Explain the various DIVISIONS of COBOL.
    • Explain the editing and non-editing picture clause with an example.
    • Explain the ADD and DIVIDE statement with examples.(or)
    • Write a COBOL program to prepare to student mark list for 5 students with fields namely, Regno, name, mark1, mark2, mark3, and calculate the total and average mark from given three marks.
    • Explain the various form of the PERFORM statements with examples.
    • An input file consists of names, register number and marks in 3 subjects of a class students. write a COBOL program to sort the above file on register number in ascending order.
    • Explain the OPEN, CLOSE, and DELETE statements with examples.
    • Write a COBOL program to sort the given numbers in descending order.
    • A LINE SEQUENTIAL file with the following record layout is to be created.
    1. Field Picture
    2. Employee Name x(25)
    3. Employee code x(6)
    4. Employee address
    5. Street x(15)
    6. City x(10)
    7. Pincode x(7)
    • Write a cobol program that will create this file and enable data entry through form-filling. Assume a suitable form layout for this purpose.
  • Bhajan Singer Prachi Sharma
    Bhajan Singer Prachi Sharma
    • Write a COBOL program to prepare to student mark list for 5 students with fields namely, Regno, name, mark1, mark2, mark3, and calculate the total and average mark from given three marks.

You are reading an archived discussion.

Related Posts

Let's make a collection of difficult puzzles & their solutions here. 😉 Come up with puzzle questions whose answers can not be found through google search. CEans will try to...
You will get the flexibility in choosing the exam date (between 7th May and 26th May) of your choice as per your convenience. You will also get the choice of...
Are you a geek??? Are you the one who thinks robots are the future and is the panacea for all our problems??? Is code crunching your cup of tea????? Think...
Privacy monitor made from an old LCD Monitor
I wish CEan AbraKaDabra the coolest birthday ever! 😁 PS: You've already received the world's bestest gift 😉 (psst. secret!) Rock On!